From 9ca0b48d80a45bacae9c7a240a5b13c33b7658eb Mon Sep 17 00:00:00 2001 From: zhaojf Date: Fri, 28 Jan 2022 05:45:18 +0000 Subject: [PATCH] update python-pyasn1.spec. --- python-pyasn1.spec | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/python-pyasn1.spec b/python-pyasn1.spec index f0f2da8..ee50131 100644 --- a/python-pyasn1.spec +++ b/python-pyasn1.spec @@ -1,13 +1,13 @@ Name: python-pyasn1 Version: 0.4.8 -Release: 1 +Release: 2 Summary: ASN.1 library for Python License: BSD Source0: https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz URL: http://pyasn1.sourceforge.net/ BuildArch: noarch -BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools -BuildRequires: python-unversioned-command python3-sphinx libffi +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-unversioned-command python3-sphinx libffi %description Abstract Syntax Notation One (ASN.1) is a technology for exchanging structured data @@ -15,15 +15,6 @@ in a universally understood, hardware agnostic way. Many industrial, security an telephony applications heavily rely on ASN.1. The pyasn1 library implements ASN.1 support in pure-Python. -%package -n python2-pyasn1 -Summary: Pyasn1 in python 2 - -%{?python_provide:%python_provide python2-pyasn1} -%{!?python_provide:Provides: python-pyasn1} - -%description -n python2-pyasn1 -Pyasn1 in python 2. - %package -n python3-pyasn1 Summary: Pyasn1 in python 3 %{?python_provide:%python_provide python3-pyasn1} @@ -46,8 +37,6 @@ rm -rf %{py3dir} cp -a . %{py3dir} %build -%{__python} setup.py build - cd %{py3dir} %{__python3} setup.py build cd - @@ -65,18 +54,10 @@ rm -f build/html/.buildinfo cd - %check -PYTHONPATH="%{buildroot}%{python_sitelib}:$PYTHONPATH" %{__python2} setup.py test cd %{py3dir} PYTHONPATH="%{buildroot}%{python3_sitelib}:$PYTHONPATH" %{__python3} setup.py test cd - -%files -n python2-pyasn1 -%defattr(-,root,root,-) -%doc README.md -%license LICENSE.rst -%{python_sitelib}/pyasn1 -%{python_sitelib}/pyasn1-%{version}-*.egg-info/ - %files -n python3-pyasn1 %defattr(-,root,root,-) %doc README.md @@ -89,6 +70,9 @@ cd - %doc docs/build/html/* %changelog +* Tue Jan 28 2022 zhaojunfeng - 0.4.8-2 +- remove python2 + * Tue Jul 13 2021 shangyibin - 0.4.8-1 - update to python-pyasn1 v0.4.8 delete duplicate pyasn1_modules -- Gitee