diff --git a/.gitignore b/.gitignore index c29ae42..02bca43 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /yappi-1.0.tar.gz +/yappi-1.2.5.tar.gz diff --git a/python-yappi.spec b/python-yappi.spec index c789061..4bb9fcc 100644 --- a/python-yappi.spec +++ b/python-yappi.spec @@ -1,22 +1,8 @@ %global srcname yappi -# python3 is enabled in any fedora and rhel>7 -%if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 -%else -%global with_python3 0 -%endif - -# python2 is disabled only in fedora >= 30 -%if 0%{?fedora} >= 30 -%global with_python2 0 -%else -%global with_python2 1 -%endif - Name: python-%{srcname} -Version: 1.0 -Release: 8%{?dist} +Version: 1.2.5 +Release: 1%{?dist} Summary: Yet Another Python Profiler, supports Multithread/CPU time profiling License: MIT @@ -30,22 +16,6 @@ BuildRequires: gcc Yappi, Yet Another Python Profiler, provides multithreading and cpu-time support to profile python programs. -%if 0%{?with_python2} -%package -n python2-%{srcname} -Summary: Yet Another Python Profiler, supports Multithread/CPU time profiling. -%{?python_provide:%python_provide python2-%{srcname}} - -# Previously bundled things: -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%description -n python2-%{srcname} -Yappi, Yet Another Python Profiler, provides multithreading and cpu-time -support to profile python programs. - -%endif - -%if 0%{?with_python3} %package -n python3-%{srcname} Summary: Yet Another Python Profiler, supports Multithread/CPU time profiling. @@ -56,61 +26,24 @@ BuildRequires: python3-setuptools Yappi, Yet Another Python Profiler, provides multithreading and cpu-time support to profile python programs. -%endif - %prep %autosetup -n %{srcname}-%{version} -S git %build -%if 0%{?with_python2} -%py2_build -%endif -%if 0%{?with_python3} %py3_build -%endif %install -%if 0%{?with_python2} -%py2_install -mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python2_version} -ln -s %{srcname}-%{python2_version} %{buildroot}%{_bindir}/%{srcname}-2 -ln -s %{srcname}-2 %{buildroot}%{_bindir}/%{srcname} -%endif -%if 0%{?with_python3} -rm -f %{buildroot}%{_bindir}/%{srcname} %py3_install mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python3_version} ln -s %{srcname}-%{python3_version} %{buildroot}%{_bindir}/%{srcname}-3 ln -s %{srcname}-3 %{buildroot}%{_bindir}/%{srcname} -%endif %check -%if 0%{?with_python2} -export PYTHONPATH=%{buildroot}/%{python2_sitearch} -%{__python2} tests/test_functionality.py -%{__python2} tests/test_hooks.py -%endif -%if 0%{?with_python3} +export PATH=$PATH:%{buildroot}/usr/bin export PYTHONPATH=%{buildroot}/%{python3_sitearch} %{__python3} tests/test_functionality.py %{__python3} tests/test_hooks.py -%endif -%if 0%{?with_python2} -%files -n python2-%{srcname} -%license LICENSE -%doc README.md -%{python2_sitearch}/%{srcname}.py* -%{python2_sitearch}/_%{srcname}.so -%{python2_sitearch}/%{srcname}-*.egg-info -%{_bindir}/%{srcname}-2* -%if 0%{?with_python3} == 0 -%{_bindir}/%{srcname} -%endif -%endif - - -%if 0%{?with_python3} %files -n python3-%{srcname} %license LICENSE %doc README.md @@ -120,9 +53,12 @@ export PYTHONPATH=%{buildroot}/%{python3_sitearch} %{python3_sitearch}/%{srcname}-*.egg-info %{_bindir}/%{srcname} %{_bindir}/%{srcname}-3* -%endif %changelog +* Fri Aug 28 2020 Alfredo Moralejo - 1.2.5-1 +- Update to 1.2.5 version +- Removed python2 subpackage + * Sat Aug 01 2020 Fedora Release Engineering - 1.0-8 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index ff1dac8..b44c46a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (yappi-1.0.tar.gz) = d743c471ee3797b9f3b24c831fcb4ddf2cec7c13c56e567c0618eeada9a534ca0b114929da623a2c67142c61f3c38b024b25ba5e32883113148f4377f7574905 +SHA512 (yappi-1.2.5.tar.gz) = 2367104c364ddd4e50176a853d01bfcd21ad425408836fe0c72628f21cf62fa1e3ca2947d3c4568f3d2afaa5df4184a0aac92b6e5455f6483c035525c38e748d