## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} # Created by pyp2rpm-3.3.7 %global pypi_name crcmod %global pypi_version 1.7 %global common_description %{expand: The software in this package is a Python module for generating objects that compute the Cyclic Redundancy Check (CRC).} Name: python-%{pypi_name} Version: %{pypi_version} Release: %autorelease Summary: CRC Generator License: MIT URL: http://crcmod.sourceforge.net/ Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3-docs BuildRequires: sed BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_description} %package -n python-%{pypi_name}-doc Summary: crcmod documentation BuildArch: noarch %description -n python-%{pypi_name}-doc Documentation for crcmod %prep %autosetup -n %{pypi_name}-%{pypi_version} # Use local intersphinx inventory sed -r \ -e 's|http://docs.python.org|%{_docdir}/python3-docs/html|' \ -i docs/source/conf.py %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check for test in test/*; do PYTHONPATH="%{buildroot}%{python3_sitearch}" %python3 $test done %files -n python3-%{pypi_name} %license LICENSE %{python3_sitearch}/%{pypi_name} %{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %files -n python-%{pypi_name}-doc %doc html %license LICENSE %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.7-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.7-11 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 1.7-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.7-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Jul 26 2021 Davide Cavalca - 1.7-2 - Make doc subpackage noarch * Sun Jul 25 2021 Davide Cavalca - 1.7-1 - Initial import; Fixes RHBZ#1575942 ## END: Generated by rpmautospec