|
rdobuilder |
2659dc |
%global module pyasn1
|
|
rdobuilder |
2659dc |
%global main_dist %{module}_lextudio
|
|
rdobuilder |
2659dc |
%global modules %{module}_modules
|
|
rdobuilder |
2659dc |
%global modules_dist %{modules}_lextudio
|
|
rdobuilder |
2659dc |
%global modules_version 0.2.9
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
Name: python-pyasn1-lextudio
|
|
rdobuilder |
2659dc |
Version: 1.1.2
|
|
rdobuilder |
2659dc |
Release: 0.1%{?dist}
|
|
rdobuilder |
2659dc |
Summary: ASN.1 tools for Python
|
|
rdobuilder |
2659dc |
License: BSD-2-Clause
|
|
rdobuilder |
2659dc |
Source0: %{pypi_source pyasn1_lextudio}
|
|
rdobuilder |
2659dc |
Source1: %{pypi_source pyasn1_modules_lextudio %{modules_version}}
|
|
rdobuilder |
2659dc |
URL: https://github.com/lextudio/pyasn1
|
|
rdobuilder |
2659dc |
BuildArch: noarch
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%description
|
|
rdobuilder |
2659dc |
This is an implementation of ASN.1 types and codecs in the Python programming
|
|
rdobuilder |
2659dc |
language.
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%package -n python3-pyasn1-lextudio
|
|
rdobuilder |
2659dc |
Summary: ASN.1 tools for Python 3
|
|
rdobuilder |
2659dc |
Conflicts: python3-pyasn1
|
|
rdobuilder |
2659dc |
BuildRequires: python3-devel
|
|
rdobuilder |
2659dc |
BuildRequires: python3-setuptools
|
|
rdobuilder |
2659dc |
%{?python_provide:%python_provide python3-pyasn1-lextudio}
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%description -n python3-pyasn1-lextudio
|
|
rdobuilder |
2659dc |
This is an implementation of ASN.1 types and codecs in the Python 3 programming
|
|
rdobuilder |
2659dc |
language.
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%package -n python3-pyasn1-modules-lextudio
|
|
rdobuilder |
2659dc |
Summary: Modules for pyasn1
|
|
rdobuilder |
2659dc |
Requires: python3-pyasn1-lextudio == %{version}
|
|
rdobuilder |
2659dc |
Conflicts: python3-pyasn1-modules
|
|
rdobuilder |
2659dc |
%{?python_provide:%python_provide python3-pyasn1-modules-lextudio}
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%description -n python3-pyasn1-modules-lextudio
|
|
rdobuilder |
2659dc |
ASN.1 types modules for python3-pyasn1-lextudio
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%if 0%{?with_doc}
|
|
rdobuilder |
2659dc |
%package doc
|
|
rdobuilder |
2659dc |
Summary: Documentation for pyasn1-lextudio
|
|
rdobuilder |
2659dc |
BuildRequires: make
|
|
rdobuilder |
2659dc |
BuildRequires: python3-sphinx
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%description doc
|
|
rdobuilder |
2659dc |
%{summary}.
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%endif
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%prep
|
|
rdobuilder |
2659dc |
%setup -n %{main_dist}-%{version} -q -b1
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%build
|
|
rdobuilder |
2659dc |
%py3_build
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
pushd ../%{modules_dist}-%{modules_version}
|
|
rdobuilder |
2659dc |
%py3_build
|
|
rdobuilder |
2659dc |
popd
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%if 0%{?with_docs}
|
|
rdobuilder |
2659dc |
pushd docs
|
|
rdobuilder |
2659dc |
PYTHONPATH=%{buildroot}%{python3_sitelib} make SPHINXBUILD=sphinx-build-3 html
|
|
rdobuilder |
2659dc |
popd
|
|
rdobuilder |
2659dc |
%endif
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%install
|
|
rdobuilder |
2659dc |
%py3_install
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
pushd ../%{modules_dist}-%{modules_version}
|
|
rdobuilder |
2659dc |
%py3_install
|
|
rdobuilder |
2659dc |
popd
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%check
|
|
rdobuilder |
2659dc |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%files -n python3-pyasn1-lextudio
|
|
rdobuilder |
2659dc |
%doc README.md
|
|
rdobuilder |
2659dc |
%license LICENSE.rst
|
|
rdobuilder |
2659dc |
%{python3_sitelib}/%{module}
|
|
rdobuilder |
2659dc |
%{python3_sitelib}/%{main_dist}-%{version}-*.egg-info/
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%files -n python3-pyasn1-modules-lextudio
|
|
rdobuilder |
2659dc |
%{python3_sitelib}/%{modules}/
|
|
rdobuilder |
2659dc |
%{python3_sitelib}/%{modules_dist}-%{modules_version}-*.egg-info/
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%if 0%{?with_docs}
|
|
rdobuilder |
2659dc |
%files doc
|
|
rdobuilder |
2659dc |
%license LICENSE.rst
|
|
rdobuilder |
2659dc |
%doc docs/build/html/*
|
|
rdobuilder |
2659dc |
%endif
|
|
rdobuilder |
2659dc |
|
|
rdobuilder |
2659dc |
%changelog
|
|
rdobuilder |
2659dc |
* Thu Feb 22 2024 Lon Hohberger <lon@redhat.com> - 1.1.2-1
|
|
rdobuilder |
2659dc |
- Initial packaging of pyasn1-lextudio
|