diff --git a/python-pyasn1.spec b/python-pyasn1.spec new file mode 100644 index 0000000000000000000000000000000000000000..e74b64b511dd7219c1ca9c3f57af44b0eecc2cf4 --- /dev/null +++ b/python-pyasn1.spec @@ -0,0 +1,88 @@ +%define anolis_release 1 + +%global module pyasn1 +%global modules_version 0.2.8 + +Name: python-pyasn1 +Version: 0.4.8 +Release: %{anolis_release}%{dist} +Summary: ASN.1 tools for Python +License: BSD +Source0: https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz +Source1: https://github.com/etingof/pyasn1-modules/archive/v%{modules_version}.tar.gz +URL: https://github.com/etingof/pyasn1 +BuildArch: noarch + +%description +This is an implementation of ASN.1 types and codecs in the Python programming +language. + +%package -n python3-pyasn1 +Summary: ASN.1 tools for Python 3 +%{?python_provide:%python_provide python3-pyasn1} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-pyasn1 +This is an implementation of ASN.1 types and codecs in the Python 3 programming +language. + +%package -n python3-pyasn1-modules +Summary: Modules for pyasn1 +Requires: python3-pyasn1 >= 0.4.7, python3-pyasn1 < 0.6.0 +%{?python_provide:%python_provide python3-modules} + +%description -n python3-pyasn1-modules +ASN.1 types modules for python3-pyasn1. + +%package -n python3-pyasn1-doc +Summary: Documentation for pyasn1 +BuildRequires: make +BuildRequires: python3-sphinx +Requires: python3-pyasn1 = %{EVR} + +%description -n python3-pyasn1-doc +%{summary}. + +%prep +%setup -n %{module}-%{version} -q -b1 + +%build +%py3_build + +pushd ../pyasn1-modules-%{modules_version} +%py3_build +popd + +pushd docs +PYTHONPATH=%{buildroot}%{python3_sitelib} make SPHINXBUILD=sphinx-build-3 html +popd + +%install +%py3_install + +pushd ../pyasn1-modules-%{modules_version} +%py3_install +popd + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test + +%generate_compatibility_deps + +%files -n python3-pyasn1 +%license LICENSE.rst +%{python3_sitelib}/%{module} +%{python3_sitelib}/%{module}-%{version}-*.egg-info/ + +%files -n python3-pyasn1-modules +%{python3_sitelib}/%{module}_modules/ +%{python3_sitelib}/%{module}_modules-%{modules_version}-*.egg-info/ + +%files -n python3-pyasn1-doc +%license LICENSE.rst README.md +%doc docs/build/html/* + +%changelog +* Wed Mar 29 2023 yuanhui - 0.4.8-1 +- Init package from upstream diff --git a/v0.2.8.tar.gz b/v0.2.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7fdf8a227a2262e60c779f434d1f24c8991808e7 Binary files /dev/null and b/v0.2.8.tar.gz differ diff --git a/v0.4.8.tar.gz b/v0.4.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a4876e0983219ff28ccd48e0863c761937f10e02 Binary files /dev/null and b/v0.4.8.tar.gz differ