File project.diff of Package python-pyprof2calltree

--- python-pyprof2calltree.changes.orig
+++ python-pyprof2calltree.changes
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+Wed Apr 10 12:19:43 CEST 2024 - ro@suse.de
+
+- update to 1.4.5
+  #53: Remove deprecated eggsecutable script
+  #52: Remove use of deprecated setuptools test command
+  #51: Add testing and support for Python 3.8 
+
+-------------------------------------------------------------------
 Tue Jul  1 10:08:31 UTC 2014 - hpj@urpla.net
 
 - don't require, just recommend kcachegrind
--- python-pyprof2calltree.spec.orig
+++ python-pyprof2calltree.spec
@@ -17,22 +17,18 @@
 
 
 Name:           python-pyprof2calltree
-Version:        1.3.1
+Version:        1.4.5
 Release:        0
 License:        BSD
 Summary:        Help visualize profiling data from cProfile with kcachegrind and qcachegrind
 Url:            http://github.com/pwaller/pyprof2calltree/
 Group:          Development/Languages/Python
-Source:         https://pypi.python.org/packages/source/p/pyprof2calltree/pyprof2calltree-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source:         https://github.com/pwaller/pyprof2calltree/archive/refs/tags/v%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 Recommends:	kcachegrind
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Script to help visualize profiling data collected with the cProfile
@@ -42,15 +38,22 @@ python module with the kcachegrind graph
 %setup -q -n pyprof2calltree-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/pyprof2calltree
 
-%files
-%defattr(-,root,root,-)
-%doc README.txt
-%{_bindir}/pyprof2calltree
+%post
+%{python_install_alternative pyprof2calltree}
+
+%preun
+%{python_uninstall_alternative pyprof2calltree}
+
+%files %{python_files}
+%doc README.rst
+%license LICENSE
+%python_alternative %{_bindir}/pyprof2calltree
 %{python_sitelib}/*
 
 %changelog
openSUSE Build Service is sponsored by