!3 [sync] PR-2: 添加python2-pyasn1-modules
From: @openeuler-sync-bot Reviewed-by: @huangtianhua,@yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
0736199d68
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-pyasn1-modules
|
Name: python-pyasn1-modules
|
||||||
Version: 0.2.8
|
Version: 0.2.8
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A collection of ASN.1-based protocols modules.
|
Summary: A collection of ASN.1-based protocols modules.
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/etingof/pyasn1-modules
|
URL: https://github.com/etingof/pyasn1-modules
|
||||||
@ -13,11 +13,25 @@ Requires: python3-pyasn1
|
|||||||
%description
|
%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.).
|
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
|
%package -n python3-pyasn1-modules
|
||||||
Summary: A collection of ASN.1-based protocols modules.
|
Summary: A collection of ASN.1-based protocols modules.
|
||||||
Provides: python-pyasn1-modules
|
Provides: python-pyasn1-modules
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
%description -n python3-pyasn1-modules
|
%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.).
|
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
|
%autosetup -n pyasn1-modules-0.2.8
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with_python2}
|
||||||
|
%py2_build
|
||||||
|
%endif
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{with_python2}
|
||||||
|
%py2_install
|
||||||
|
%endif
|
||||||
%py3_install
|
%py3_install
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
@ -61,6 +81,11 @@ popd
|
|||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
mv %{buildroot}/doclist.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
|
%files -n python3-pyasn1-modules -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
@ -68,5 +93,8 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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>
|
* Fri Oct 09 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||||
- Package Spec generated
|
- Package Spec generated
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user