Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
d7eaa620ef !8 delete python2 dependency
From: @weiwei_150212
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-31 10:00:26 +08:00
jinzhimin369
83739b2941 remove python2 2020-10-30 10:37:00 +08:00
openeuler-ci-bot
c42869600d !7 delete duplicate pyasn1-modules
From: @xiezhipeng1
Reviewed-by: @licihua
Signed-off-by: @licihua
2020-10-15 20:16:34 +08:00
Zhipeng Xie
0a90957ac1 delete duplicate pyasn1-modules
It has been provided by
https://gitee.com/src-openeuler/python-pyasn1-modules

Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
2020-10-15 08:11:46 -04:00
openeuler-ci-bot
d0505badad !6 upgrade to v0.4.8
From: @xiezhipeng1
Reviewed-by: @licihua
Signed-off-by: @licihua
2020-10-15 19:20:14 +08:00
Zhipeng Xie
8fd03fb5ad upgrade to v0.4.8
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
2020-10-15 07:12:09 -04:00
openeuler-ci-bot
826e81b44a !5 add yaml
Merge pull request !5 from cuibb1/master
2020-05-12 16:42:45 +08:00
root
2b2ef6f535 yaml 2020-05-12 16:24:51 +08:00
openeuler-ci-bot
c9006a2bf5 !4 python-pyasn1
Merge pull request !4 from syyhao/init
2020-02-20 18:17:50 +08:00
openeuler-basic
08727179bb change build requires of python2-sphinx to python3-sphinx 2020-02-20 18:08:57 +08:00
openeuler-ci-bot
42a3c89baf !3 python-pyasn1
Merge pull request !3 from syyhao/init
2020-01-21 01:15:19 +08:00
5 changed files with 24 additions and 55 deletions

View File

@ -1,14 +1,13 @@
Name: python-pyasn1 Name: python-pyasn1
Version: 0.3.7 Version: 0.4.8
Release: 7 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
Source1: https://github.com/etingof/pyasn1-modules/archive/v0.1.5.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 python2-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
@ -16,32 +15,16 @@ 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
Provides: python2-pyasn1-modules
Obsoletes: python2-pyasn1-modules
%{?python_provide:%python_provide python2-pyasn1}
%{!?python_provide:Provides: python-pyasn1}
%{?python_provide:%python_provide python2-pyasn1-modules}
%{!?python_provide:Provides: python-pyasn1-modules}
%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
Provides: python3-pyasn1-modules
Obsoletes: python3-pyasn1-modules
%{?python_provide:%python_provide python3-pyasn1} %{?python_provide:%python_provide python3-pyasn1}
%{?python_provide:%python_provide python3-modules}
%description -n python3-pyasn1 %description -n python3-pyasn1
Pyasn1 in python 3. Pyasn1 in python 3.
%package help %package help
Summary: Documentation for python-pyasn1 Summary: Documentation for python-pyasn1
BuildRequires: python2-sphinx BuildRequires: python3-sphinx
Provides: python-pyasn1-doc Provides: python-pyasn1-doc
Obsoletes: python-pyasn1-doc Obsoletes: python-pyasn1-doc
@ -49,72 +32,54 @@ Obsoletes: python-pyasn1-doc
Documentation for python-pyasn1. Documentation for python-pyasn1.
%prep %prep
%autosetup -n pyasn1-%{version} -p1 -b1 %autosetup -n pyasn1-%{version}
rm -rf %{py3dir} rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
cp -a ../pyasn1-modules-0.1.5 %{py3dir}-modules
%build %build
%{__python} setup.py build
cd ../pyasn1-modules-0.1.5
%{__python} setup.py build
cd -
cd %{py3dir} cd %{py3dir}
%{__python3} setup.py build %{__python3} setup.py build
cd - cd -
cd %{py3dir}-modules
%{__python3} setup.py build
cd -
%install %install
cd %{py3dir} cd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot} %{__python3} setup.py install --skip-build --root %{buildroot}
cd - cd -
cd %{py3dir}-modules cd docs
%{__python3} setup.py install --skip-build --root %{buildroot}
cd -
%{__python} setup.py install --skip-build --root %{buildroot}
cd ../pyasn1-modules-0.1.5
%{__python} setup.py install --skip-build --root %{buildroot}
cd -
cd doc
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/
%{python_sitelib}/pyasn1_modules/
%{python_sitelib}/pyasn1_modules-0.1.5-*.egg-info/
%files -n python3-pyasn1 %files -n python3-pyasn1
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.md %doc README.md
%license LICENSE.rst %license LICENSE.rst
%{python3_sitelib}/pyasn1 %{python3_sitelib}/pyasn1
%{python3_sitelib}/pyasn1-%{version}-*.egg-info/ %{python3_sitelib}/pyasn1-%{version}-*.egg-info/
%{python3_sitelib}/pyasn1_modules/
%{python3_sitelib}/pyasn1_modules-0.1.5-*.egg-info/
%files help %files help
%license LICENSE.rst %license LICENSE.rst
%doc doc/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
- delete duplicate pyasn1-modules
* Thu Oct 15 2020 Zhipeng Xie<xiezhipeng1@huawei.com> - 0.4.8-1
- upgrade to v0.4.8
* Thu Feb 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.3.7-8
- Revise build requires of python-sphinx
* Tue Jan 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.3.7-7 * Tue Jan 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.3.7-7
- Revise build requires - Revise build requires

4
python-pyasn1.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: etingof/pyasn1
tag_prefix: ^v
seperator: .

Binary file not shown.

Binary file not shown.

BIN
v0.4.8.tar.gz Normal file

Binary file not shown.