!8 delete python2 dependency
From: @weiwei_150212 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
d7eaa620ef
@ -1,13 +1,13 @@
|
|||||||
Name: python-pyasn1
|
Name: python-pyasn1
|
||||||
Version: 0.4.8
|
Version: 0.4.8
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: ASN.1 library for Python
|
Summary: ASN.1 library for Python
|
||||||
License: BSD
|
License: BSD
|
||||||
Source0: https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz
|
Source0: https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz
|
||||||
URL: http://pyasn1.sourceforge.net/
|
URL: http://pyasn1.sourceforge.net/
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
BuildRequires: python-unversioned-command python3-sphinx libffi
|
BuildRequires: python3-unversioned-command python3-sphinx libffi
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Abstract Syntax Notation One (ASN.1) is a technology for exchanging structured data
|
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.
|
telephony applications heavily rely on ASN.1.
|
||||||
The pyasn1 library implements ASN.1 support in pure-Python.
|
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
|
%package -n python3-pyasn1
|
||||||
Summary: Pyasn1 in python 3
|
Summary: Pyasn1 in python 3
|
||||||
%{?python_provide:%python_provide python3-pyasn1}
|
%{?python_provide:%python_provide python3-pyasn1}
|
||||||
@ -46,8 +37,6 @@ rm -rf %{py3dir}
|
|||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
|
||||||
|
|
||||||
cd %{py3dir}
|
cd %{py3dir}
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
cd -
|
cd -
|
||||||
@ -57,26 +46,16 @@ cd %{py3dir}
|
|||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
cd docs
|
cd docs
|
||||||
PYTHONPATH="$RPM_BUILD_ROOT%{python_sitelib}:$PYTHONPATH" make html
|
PYTHONPATH="$RPM_BUILD_ROOT%{python_sitelib}:$PYTHONPATH" make html
|
||||||
rm -f build/html/.buildinfo
|
rm -f build/html/.buildinfo
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%check
|
%check
|
||||||
PYTHONPATH="%{buildroot}%{python_sitelib}:$PYTHONPATH" %{__python2} setup.py test
|
|
||||||
cd %{py3dir}
|
cd %{py3dir}
|
||||||
PYTHONPATH="%{buildroot}%{python3_sitelib}:$PYTHONPATH" %{__python3} setup.py test
|
PYTHONPATH="%{buildroot}%{python3_sitelib}:$PYTHONPATH" %{__python3} setup.py test
|
||||||
cd -
|
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
|
%files -n python3-pyasn1
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.md
|
%doc README.md
|
||||||
@ -89,6 +68,9 @@ cd -
|
|||||||
%doc docs/build/html/*
|
%doc docs/build/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 tianwei<tianwei12@huawei.com> - 0.4.8-3
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Thu Oct 15 2020 Zhipeng Xie<xiezhipeng1@huawei.com> - 0.4.8-2
|
* Thu Oct 15 2020 Zhipeng Xie<xiezhipeng1@huawei.com> - 0.4.8-2
|
||||||
- delete duplicate pyasn1-modules
|
- delete duplicate pyasn1-modules
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user