[packages/python3-gprof2dot] - python-gprof2dot.spec updated to 2025.4.14 for python 3.8+
qboosh
qboosh at pld-linux.org
Sun Feb 22 21:05:27 CET 2026
commit 2ec336cd9e90f2c68f8ad2099763689de9f5949a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 22 21:05:28 2026 +0100
- python-gprof2dot.spec updated to 2025.4.14 for python 3.8+
python-gprof2dot.spec => python3-gprof2dot.spec | 39 ++++++++++++++++---------
1 file changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/python-gprof2dot.spec b/python3-gprof2dot.spec
similarity index 54%
rename from python-gprof2dot.spec
rename to python3-gprof2dot.spec
index 480fd53..502da5a 100644
--- a/python-gprof2dot.spec
+++ b/python3-gprof2dot.spec
@@ -1,19 +1,27 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (files missing in sdist)
+
%define module gprof2dot
Summary: Generate a dot graph from the output of several profiles
Summary(pl.UTF-8): Generowanie grafu dot z wyjścia różnych profilowań
-Name: python-%{module}
-Version: 2022.7.29
+Name: python3-%{module}
+Version: 2025.4.14
Release: 1
License: LGPL v3+
Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/source/g/gprof2dot/%{module}-%{version}.tar.gz
-# Source0-md5: e5cc9688e03be98748901fc513175573
+# Source0-md5: 6ab489c204d22a5b7b739aaf66f030c4
URL: https://pypi.org/project/gprof2dot/
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with tests}
+BuildRequires: graphviz
+%endif
Requires: graphviz
+Requires: python3-modules >= 1:3.8
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,16 +35,19 @@ Generowanie grafu dot z wyjścia różnych profilowań.
%setup -q -n %{module}-%{version}
%build
-%py_build
+%py3_build
+
+%if %{with tests}
+%{__python3} tests/test.py
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-%py_install
-
-%py_postclean
+%py3_install
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/gprof2dot{,-2}
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/gprof2dot{,-3}
+ln -sf gprof2dot-3 $RPM_BUILD_ROOT%{_bindir}/gprof2dot
%clean
rm -rf $RPM_BUILD_ROOT
@@ -44,6 +55,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md
-%attr(755, root,root) %{_bindir}/gprof2dot-2
-%{py_sitescriptdir}/gprof2dot.py[co]
-%{py_sitescriptdir}/gprof2dot-%{version}-py*.egg-info
+%attr(755, root,root) %{_bindir}/gprof2dot-3
+%{_bindir}/gprof2dot
+%{py3_sitescriptdir}/gprof2dot.py
+%{py3_sitescriptdir}/__pycache__/gprof2dot.cpython-*.py[co]
+%{py3_sitescriptdir}/gprof2dot-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-gprof2dot.git/commitdiff/2ec336cd9e90f2c68f8ad2099763689de9f5949a
More information about the pld-cvs-commit
mailing list