114 Star 0 Fork 11

src-openEuler/python-pyasn1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pyasn1.spec 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
lyn 提交于 2024-01-11 16:53 . Update to 0.5.1
Name: python-pyasn1
Version: 0.5.1
Release: 1
Summary: ASN.1 library for Python
License: BSD-2-Clause
Source0: https://github.com/pyasn1/pyasn1/archive/v%{version}.tar.gz
URL: http://pyasn1.sourceforge.net/
BuildArch: noarch
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
in a universally understood, hardware agnostic way. Many industrial, security and
telephony applications heavily rely on ASN.1.
The pyasn1 library implements ASN.1 support in pure-Python.
%package -n python3-pyasn1
Summary: Pyasn1 in python 3
%{?python_provide:%python_provide python3-pyasn1}
%description -n python3-pyasn1
Pyasn1 in python 3.
%package help
Summary: Documentation for python-pyasn1
BuildRequires: python3-sphinx
Provides: python-pyasn1-doc
Obsoletes: python-pyasn1-doc
%description help
Documentation for python-pyasn1.
%prep
%autosetup -n pyasn1-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
cd %{py3dir}
%{__python3} setup.py build
cd -
%install
cd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
cd -
cd docs
PYTHONPATH="$RPM_BUILD_ROOT%{python_sitelib}:$PYTHONPATH" make html
rm -f build/html/.buildinfo
cd -
%check
cd %{py3dir}
PYTHONPATH="%{buildroot}%{python3_sitelib}:$PYTHONPATH" %{__python3} setup.py test
cd -
%files -n python3-pyasn1
%defattr(-,root,root,-)
%doc README.md
%license LICENSE.rst
%{python3_sitelib}/pyasn1
%{python3_sitelib}/pyasn1-%{version}-*.egg-info/
%files help
%license LICENSE.rst
%doc docs/build/html/*
%changelog
* Thu Jan 11 2024 liyanan <liyanan61@h-partners.com> - 0.5.1-1
- Update to 0.5.1
* Wed May 11 2022 wulei <wulei80@h-partners.com> - 0.4.8-4
- License compliance rectification
* 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
- Revise build requires
* 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
* Mon Oct 21 2019 Zaiwang Li <lizaiwang1@huawei.com> - 0.3.7-5
- Init Package
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-pyasn1.git
git@gitee.com:src-openeuler/python-pyasn1.git
src-openeuler
python-pyasn1
python-pyasn1
master

搜索帮助