[packages/python3-objgraph] - python-objgraph.spec updated to 3.6.2 for python 3.7+

qboosh qboosh at pld-linux.org
Thu Jun 26 21:09:33 CEST 2025


commit 93dd6c1c3b0c97898723f44ffcca71b296793695
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jun 26 21:10:57 2025 +0200

    - python-objgraph.spec updated to 3.6.2 for python 3.7+

 python-objgraph.spec => python3-objgraph.spec | 83 +++++----------------------
 1 file changed, 14 insertions(+), 69 deletions(-)
---
diff --git a/python-objgraph.spec b/python3-objgraph.spec
similarity index 50%
rename from python-objgraph.spec
rename to python3-objgraph.spec
index 651bd96..57de9e2 100644
--- a/python-objgraph.spec
+++ b/python3-objgraph.spec
@@ -2,49 +2,36 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define 	module	objgraph
 Summary:	Draws Python object reference graphs with graphviz
 Summary(pl.UTF-8):	Rysowanie referencji między obiektami przy uzyciu graphviza
-Name:		python-objgraph
-Version:	3.5.0
+Name:		python3-objgraph
+Version:	3.6.2
 Release:	1
 License:	MIT
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/objgraph/
 Source0:	https://files.pythonhosted.org/packages/source/o/objgraph/%{module}-%{version}.tar.gz
-# Source0-md5:	31ddfc309dd9ae41ddc50763737fdc6f
+# Source0-md5:	70a28869363564744f03b88dcbd16855
 URL:		https://mg.pov.lt/objgraph/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
 %if %{with tests}
-BuildRequires:	python-graphviz
-BuildRequires:	python-mock
-%endif
+BuildRequires:	graphviz
 %endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-modules >= 1:3.7
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-graphviz
 %endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
 %endif
-%if %{with tests}
-BuildRequires:	graphviz
-%endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# optional dependency
-%define		_noautoreq_pyegg	graphviz
-%define		_noautoreq_py3egg	graphviz
-
 %description
 Module that lets you visually explore Python object graphs and debug
 memory leaks.
@@ -53,20 +40,6 @@ memory leaks.
 Moduł do wizualizacji grafów pythonowych obiektów i diagnozowania
 wycieków pamięci.
 
-%package -n python3-%{module}
-Summary:	Draws Python object reference graphs with graphviz
-Summary(pl.UTF-8):	Rysowanie referencji między obiektami przy uzyciu graphviza
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.6
-
-%description -n python3-%{module}
-Module that lets you visually explore Python object graphs and debug
-memory leaks.
-
-%description -n python3-%{module} -l pl.UTF-8
-Moduł do wizualizacji grafów pythonowych obiektów i diagnozowania
-wycieków pamięci.
-
 %package apidocs
 Summary:	API documentation for Python objgraph module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona objgraph
@@ -82,58 +55,30 @@ Dokumentacja API modułu Pythona objgraph.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} tests.py
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 %{__python3} tests.py
 %endif
-%endif
 
 %if %{with doc}
-sphinx-build-2 -b html docs docs/_build/html
+sphinx-build-3 -b html docs docs/_build/html
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst LICENSE README.rst
-%{py_sitescriptdir}/%{module}.py*
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py3_sitescriptdir}/%{module}.py
-%{py3_sitescriptdir}/__pycache__/%{module}.*
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/objgraph.py
+%{py3_sitescriptdir}/__pycache__/objgraph.cpython-*.py[co]
+%{py3_sitescriptdir}/objgraph-%{version}-py*.egg-info
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-objgraph.git/commitdiff/93dd6c1c3b0c97898723f44ffcca71b296793695



More information about the pld-cvs-commit mailing list