Restore python2 subpackages
This commit is contained in:
parent
bc19f12ba8
commit
dd4ee29df9
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-pyasn1
|
Name: python-pyasn1
|
||||||
Version: 0.4.4
|
Version: 0.4.4
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: ASN.1 tools for Python
|
Summary: ASN.1 tools for Python
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -16,6 +16,26 @@ BuildArch: noarch
|
|||||||
This is an implementation of ASN.1 types and codecs in the Python programming
|
This is an implementation of ASN.1 types and codecs in the Python programming
|
||||||
language.
|
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
|
%package -n python3-pyasn1
|
||||||
Summary: ASN.1 tools for Python 3
|
Summary: ASN.1 tools for Python 3
|
||||||
%{?python_provide:%python_provide python3-pyasn1}
|
%{?python_provide:%python_provide python3-pyasn1}
|
||||||
@ -47,9 +67,11 @@ BuildRequires: python3-sphinx
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
pushd ../pyasn1-modules-%{modules_version}
|
pushd ../pyasn1-modules-%{modules_version}
|
||||||
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -59,9 +81,11 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%py2_install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
pushd ../pyasn1-modules-%{modules_version}
|
pushd ../pyasn1-modules-%{modules_version}
|
||||||
|
%py2_install
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -70,6 +94,16 @@ popd
|
|||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
|
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
|
%files -n python3-pyasn1
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
@ -85,6 +119,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
|
|||||||
%doc docs/build/html/*
|
%doc docs/build/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 16 2018 Rob Crittenden <rcritten@redhat.com> - 0.4.4-3
|
||||||
|
- Restore python2 subpackages
|
||||||
|
|
||||||
* Mon Oct 15 2018 Rob Crittenden <rcritten@redhat.com> - 0.4.4-2
|
* Mon Oct 15 2018 Rob Crittenden <rcritten@redhat.com> - 0.4.4-2
|
||||||
- Add back accidentally removed buildrequires
|
- Add back accidentally removed buildrequires
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user