python-pyasn1: Fixed build error

This commit is contained in:
gnaygnil 2020-01-16 14:15:36 +08:00
parent 8fc681417e
commit 22b3d75cf9
3 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,6 @@
Name: python-pyasn1
Version: 0.3.7
Release: 5
Release: 6
Summary: ASN.1 library for Python
License: BSD
Source0: https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz
@ -8,7 +8,7 @@ Source1: https://github.com/etingof/pyasn1-modules/archive/v0.1.5.tar.gz
URL: http://pyasn1.sourceforge.net/
BuildArch: noarch
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
BuildRequires: python-unversioned-command python2-sphinx
BuildRequires: python-unversioned-command python2-sphinx libffi6
%description
Abstract Syntax Notation One (ASN.1) is a technology for exchanging structured data
@ -18,7 +18,6 @@ The pyasn1 library implements ASN.1 support in pure-Python.
%package -n python2-pyasn1
Summary: Pyasn1 in python 2
Provides: python2-pyasn1-modules
Obsoletes: python2-pyasn1-modules
@ -32,7 +31,6 @@ Pyasn1 in python 2.
%package -n python3-pyasn1
Summary: Pyasn1 in python 3
Provides: python3-pyasn1-modules
Obsoletes: python3-pyasn1-modules
%{?python_provide:%python_provide python3-pyasn1}
@ -52,7 +50,6 @@ Documentation for python-pyasn1.
%prep
%autosetup -n pyasn1-%{version} -p1 -b1
rm -rf %{py3dir}
cp -a . %{py3dir}
cp -a ../pyasn1-modules-0.1.5 %{py3dir}-modules
@ -71,7 +68,6 @@ cd %{py3dir}-modules
cd -
%install
cd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
cd -
@ -119,6 +115,9 @@ cd -
%doc doc/build/html/*
%changelog
* Thu Jan 16 2020 Ling Yang <lingyang2@huawei.com> - 0.3.7-6
- Fixed build error
* Wed Nov 13 2019 dongjian <dongjian13@huawei.com> - 0.3.7-5
- Package init

Binary file not shown.

Binary file not shown.