Mageia Bugzilla – Attachment 14456 Details for
Bug 32967
python3-asn1 :s a simple ASN.1 encoder and decoder for Python {PACKAGE REQUEST}
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
python-asn1.spec (text/x-matlab), 1.58 KB, created by
Kristoffer Grundström
on 2024-03-14 13:02:49 CET
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2024-03-14 13:02:49 CET
Size:
1.58 KB
patch
obsolete
>%global pypi_name asn1 > >Name: python-%{pypi_name} >Version: 2.6.0 >Release: 1%{?dist} >Summary: Simple ASN.1 encoder and decoder for Python >License: MIT >URL: https://github.com/andrivet/python-asn1 >Source: %{pypi_source} >BuildArch: noarch >BuildRequires: python3-devel >BuildRequires: sed >BuildRequires: python3dist(pytest) >BuildRequires: python3dist(sphinx) >BuildRequires: python3dist(sphinx-rtd-theme) > >%global _description %{expand: >Python-ASN1 is a simple ASN.1 encoder and decoder for Python with support for >BER (parser) and DER (parser and generator) encoding (except indefinite >lengths).} > >%description %_description > >%package -n python3-%{pypi_name} >Summary: %{summary} > >%description -n python3-%{pypi_name} %_description > >%package doc >Summary: Documentation for %{name} > >%description doc >This package contains additional documentation and examples for %{name}. > >%prep >%autosetup -p1 -n %{pypi_name}-%{version} > ># Drop unnecessary dependency >sed -i '/enum-compat/d' requirements.txt >sed -i 's/install_requires = .*/install_requires = []/' setup.py > ># Fix permissions >chmod -x examples/dump.py > >%generate_buildrequires >%pyproject_buildrequires > >%build >%pyproject_wheel > ># generate html docs >PYTHONPATH="${PWD}" sphinx-build-3 docs html >rm -r html/.{doctrees,buildinfo} > >%install >%pyproject_install >%pyproject_save_files %{pypi_name} > >%check >%pytest tests > >%files -n python3-%{pypi_name} -f %{pyproject_files} >%license LICENSE >%doc AUTHORS.rst CHANGELOG.rst README.rst > >%files doc >%license LICENSE >%doc examples html
%global pypi_name asn1 Name: python-%{pypi_name} Version: 2.6.0 Release: 1%{?dist} Summary: Simple ASN.1 encoder and decoder for Python License: MIT URL: https://github.com/andrivet/python-asn1 Source: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: sed BuildRequires: python3dist(pytest) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) %global _description %{expand: Python-ASN1 is a simple ASN.1 encoder and decoder for Python with support for BER (parser) and DER (parser and generator) encoding (except indefinite lengths).} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %package doc Summary: Documentation for %{name} %description doc This package contains additional documentation and examples for %{name}. %prep %autosetup -p1 -n %{pypi_name}-%{version} # Drop unnecessary dependency sed -i '/enum-compat/d' requirements.txt sed -i 's/install_requires = .*/install_requires = []/' setup.py # Fix permissions chmod -x examples/dump.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel # generate html docs PYTHONPATH="${PWD}" sphinx-build-3 docs html rm -r html/.{doctrees,buildinfo} %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pytest tests %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc AUTHORS.rst CHANGELOG.rst README.rst %files doc %license LICENSE %doc examples html
View Attachment As Raw
Actions:
View
Attachments on
bug 32967
: 14456