Remove Python 2 subpackage.

epel9
Elliott Sales de Andrade 6 years ago
parent e23c5ba9ab
commit 56da7ae038

@ -2,7 +2,7 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.0.4 Version: 2.0.4
Release: 1%{?dist} Release: 2%{?dist}
Summary: Pure Python sorted container types Summary: Pure Python sorted container types
License: ASL 2.0 License: ASL 2.0
@ -18,19 +18,6 @@ pure-Python, and fast as C-extensions.
%description %{_description} %description %{_description}
%package -n python2-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
BuildRequires: python2-pytest
BuildRequires: python2-matplotlib
BuildRequires: python2-numpy
BuildRequires: python2-scipy
%description -n python2-%{srcname} %{_description}
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}} %{?python_provide:%python_provide python3-%{srcname}}
@ -60,7 +47,6 @@ Documentation for %{srcname} package.
%build %build
%py2_build
%py3_build %py3_build
pushd docs pushd docs
@ -70,26 +56,16 @@ popd
%install %install
%py2_install
%py3_install %py3_install
%check %check
pushd tests pushd tests
PYTHONPATH="%{buildroot}%{python2_sitelib}" \
pytest-2
PYTHONPATH="%{buildroot}%{python3_sitelib}" \ PYTHONPATH="%{buildroot}%{python3_sitelib}" \
pytest-%{python3_version} pytest-%{python3_version}
popd popd
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{srcname}
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info
%files -n python3-%{srcname} %files -n python3-%{srcname}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
@ -103,6 +79,9 @@ popd
%changelog %changelog
* Wed Oct 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.4-2
- Drop Python 2 subpackage.
* Thu Aug 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.4-1 * Thu Aug 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.4-1
- Update to latest version. - Update to latest version.

Loading…
Cancel
Save