diff --git a/python-pyasn1-modules.spec b/python-pyasn1-modules.spec index b21d92c1ad3df38af91faa2ac3c2b32c35235a0d..c6bdc1f8865c1e7f9da396c97c76b89c0a4219f3 100644 --- a/python-pyasn1-modules.spec +++ b/python-pyasn1-modules.spec @@ -1,8 +1,7 @@ %global _empty_manifest_terminate_build 0 -%bcond_without python2 Name: python-pyasn1-modules Version: 0.2.8 -Release: 3 +Release: 4 Summary: A collection of ASN.1-based protocols modules. License: BSD-2-Clause URL: https://github.com/etingof/pyasn1-modules @@ -14,19 +13,6 @@ 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 @@ -46,15 +32,9 @@ 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 @@ -82,11 +62,6 @@ 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}/* @@ -94,6 +69,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed Jan 26 2022 zhangy1317 - 0.2.8-4 +- Remove python2 + * Tue Dec 7 yaoxin - 0.2.8-3 - %bcond_without python2 to fix rpmbuild error