## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 # tests are enabled by default %bcond_without tests %global srcname pem %global forgeurl https://github.com/hynek/pem Version: 23.1.0 %global tag %{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Easy PEM file parsing License: Apache-2.0 URL: %forgeurl Source0: %forgesource BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(certifi) BuildRequires: python3dist(cryptography) BuildRequires: python3dist(pretend) BuildRequires: python3dist(pyopenssl) BuildRequires: python3dist(pytest) BuildRequires: python3dist(service-identity) BuildRequires: python3dist(twisted) %endif %global _description %{expand: pem is an MIT-licensed Python module for parsing and splitting of PEM files, i.e. Base64-encoded DER keys and certificates.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %forgesetup %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files pem %check %pyproject_check_import %if %{with tests} %pytest %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG.md %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 23.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 23.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 23.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 06 2023 Major Hayden - 23.1.0-1 - Update to 23.1.0 rhbz#2216433 * Thu Jun 29 2023 Python Maint - 21.2.0-8 - Rebuilt for Python 3.12 * Wed Feb 22 2023 Major Hayden - 21.2.0-7 - Set SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 21.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 21.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 21.2.0-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 21.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 09 2021 Major Hayden - 21.2.0-2 - Move to rpmautospec * Tue Aug 24 2021 Major Hayden - 21.2.0-1 - Initial import (#1996868) ## END: Generated by rpmautospec