Remove python2 subpackages in F-32

Resolves: #1764573
This commit is contained in:
Rob Crittenden 2019-10-23 15:08:28 -04:00
parent dca7696f4d
commit ee1137b2b4

View File

@ -3,7 +3,7 @@
Name: python-pyasn1
Version: 0.4.6
Release: 2%{?dist}
Release: 3%{?dist}
Summary: ASN.1 tools for Python
License: BSD
Source0: https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz
@ -15,26 +15,6 @@ BuildArch: noarch
This is an implementation of ASN.1 types and codecs in the Python programming
language.
%package -n python2-pyasn1
Summary: ASN.1 tools for Python 2
%{?python_provide:%python_provide python2-pyasn1}
%{!?python_provide:Provides: python-pyasn1}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description -n python2-pyasn1
This is an implementation of ASN.1 types and codecs in the Python 2 programming
language.
%package -n python2-pyasn1-modules
Summary: Modules for pyasn1
Requires: python2-pyasn1 >= %{version}-%{release}
%{?python_provide:%python_provide python2-pyasn1-modules}
%{!?python_provide:Provides: python-pyasn1-modules}
%description -n python2-pyasn1-modules
ASN.1 types modules for python-pyasn1.
%package -n python3-pyasn1
Summary: ASN.1 tools for Python 3
%{?python_provide:%python_provide python3-pyasn1}
@ -66,11 +46,9 @@ BuildRequires: python3-sphinx
%build
%py2_build
%py3_build
pushd ../pyasn1-modules-%{modules_version}
%py2_build
%py3_build
popd
@ -80,11 +58,9 @@ popd
%install
%py2_install
%py3_install
pushd ../pyasn1-modules-%{modules_version}
%py2_install
%py3_install
popd
@ -93,16 +69,6 @@ popd
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
%files -n python2-pyasn1
%doc README.md
%license LICENSE.rst
%{python2_sitelib}/%{module}
%{python2_sitelib}/%{module}-%{version}-*.egg-info/
%files -n python2-pyasn1-modules
%{python2_sitelib}/%{module}_modules/
%{python2_sitelib}/%{module}_modules-%{modules_version}-*.egg-info/
%files -n python3-pyasn1
%doc README.md
%license LICENSE.rst
@ -118,6 +84,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
%doc docs/build/html/*
%changelog
* Wed Oct 23 2019 Rob Crittenden <rcritten@redhat.com> - 0.4.6-3
- Remove python2 subpackages (#1764573)
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.6-2
- Rebuilt for Python 3.8.0rc1 (#1748018)