add python2-pyasn1-modules for openstack
(cherry picked from commit 8fb2a2662d9f3563af9d159bd86d61953b8eb4f8)
This commit is contained in:
parent
12d0ebd70d
commit
d6aaed9e25
@ -1,7 +1,7 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-pyasn1-modules
|
||||
Version: 0.2.8
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A collection of ASN.1-based protocols modules.
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/etingof/pyasn1-modules
|
||||
@ -13,11 +13,25 @@ Requires: python3-pyasn1
|
||||
%description
|
||||
A collection of ASN.1 modules expressed in form of pyasn1 classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various data structures (X.509, PKCS etc.).
|
||||
|
||||
%if %{with_python2}
|
||||
%package -n python2-pyasn1-modules
|
||||
Summary:A collection of ASN.1-based protocols modules.
|
||||
Provides:python-pyasn1-modules
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
Requires: python2-pyasn1
|
||||
|
||||
%description -n python2-pyasn1-modules
|
||||
A collection of ASN.1 modules expressed in form of pyasn1 classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and v
|
||||
arious data structures (X.509, PKCS etc.).
|
||||
%endif
|
||||
|
||||
%package -n python3-pyasn1-modules
|
||||
Summary: A collection of ASN.1-based protocols modules.
|
||||
Provides: python-pyasn1-modules
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description -n python3-pyasn1-modules
|
||||
A collection of ASN.1 modules expressed in form of pyasn1 classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various data structures (X.509, PKCS etc.).
|
||||
|
||||
@ -31,9 +45,15 @@ A collection of ASN.1 modules expressed in form of pyasn1 classes. Includes prot
|
||||
%autosetup -n pyasn1-modules-0.2.8
|
||||
|
||||
%build
|
||||
%if %{with_python2}
|
||||
%py2_build
|
||||
%endif
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%if %{with_python2}
|
||||
%py2_install
|
||||
%endif
|
||||
%py3_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
@ -61,6 +81,11 @@ popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%if %{with_python2}
|
||||
%files -n python2-pyasn1-modules -f filelist.lst
|
||||
%dir %{python2_sitelib}/*
|
||||
%endif
|
||||
|
||||
%files -n python3-pyasn1-modules -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
@ -68,5 +93,8 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Aug 26 2021 shixuantong <shixuantong@huawei.com> - 0.2.8-2
|
||||
- add python2-pyasn1-modules for openstack
|
||||
|
||||
* Fri Oct 09 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user