diff --git a/python-numexpr.spec b/python-numexpr.spec index db3198f..3bae37c 100644 --- a/python-numexpr.spec +++ b/python-numexpr.spec @@ -1,23 +1,17 @@ -%global with_python3 1 %global module numexpr Summary: Fast numerical array expression evaluator for Python and NumPy Name: python-%{module} Version: 2.6.6 -Release: 2%{?dist} +Release: 3%{?dist} Source0: https://github.com/pydata/numexpr/archive/v%{version}.tar.gz#/%{module}-%{version}.tar.gz License: MIT URL: https://github.com/pydata/numexpr BuildRequires: gcc-c++ -BuildRequires: numpy >= 1.6 -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-numpy BuildRequires: python%{python3_pkgversion}-setuptools -%endif # with_python3 %global _description \ The numexpr package evaluates multiple-operator array expressions many \ @@ -29,16 +23,6 @@ compiler, i.e. it does not require a compiler at runtime. %description %_description -%package -n python2-%{module} -Summary: %{summary} -Requires: numpy >= 1.6 -%{?python_provide:%python_provide python2-%{module}} - -%description -n python2-%{module} %_description - -This is the version for Python 2. - -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-%{module} Summary: %{summary} Requires: python%{python3_pkgversion}-numpy >= 1.6 @@ -47,53 +31,35 @@ Requires: python%{python3_pkgversion}-numpy >= 1.6 %description -n python%{python3_pkgversion}-%{module} %_description This is the version for Python 3. -%endif # with_python3 %prep %setup -q -n %{module}-%{version} %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif # with_python3 %install -%py2_install -chmod 0755 %{buildroot}%{python2_sitearch}/%{module}/cpuinfo.py -sed -i "1s|/usr/bin/env python$|%{__python2}|" %{buildroot}%{python2_sitearch}/%{module}/cpuinfo.py -%if 0%{?with_python3} %py3_install chmod 0755 %{buildroot}%{python3_sitearch}/%{module}/cpuinfo.py sed -i "1s|/usr/bin/env python$|%{__python3}|" %{buildroot}%{python3_sitearch}/%{module}/cpuinfo.py -%endif # with_python3 %check -pushd build/lib.linux*%{python2_version} -%{__python2} -c 'import numexpr; numexpr.test()' -popd -%if 0%{?with_python3} pushd build/lib.linux*%{python3_version} PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -c 'import numexpr; numexpr.test()' popd -%endif # with_python3 -%files -n python2-%{module} -%license LICENSE.txt -%doc ANNOUNCE.rst RELEASE_NOTES.rst README.rst -%{python2_sitearch}/numexpr/ -%{python2_sitearch}/numexpr-%{version}-py*.egg-info/ - -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{module} %license LICENSE.txt %doc ANNOUNCE.rst RELEASE_NOTES.rst README.rst %{python3_sitearch}/numexpr/ %{python3_sitearch}/numexpr-%{version}-py*.egg-info -%endif # with_python3 %changelog +* Mon Jul 08 2019 Miro Hrončok - 2.6.6-3 +- Subpackage python2-numexpr has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Feb 02 2019 Fedora Release Engineering - 2.6.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild @@ -142,7 +108,6 @@ popd * Tue May 17 2016 Orion Poplawski - 2.5.2-2 - Update provides filter - Use %%python3_pkgversion for EPEL7 compatibility -- Drop %%py3dir * Tue Apr 12 2016 Zbigniew Jędrzejewski-Szmek - 2.5.2-1 - Update to latest version (#1305251)