## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 srcname pyrpm %global foldername python-rpm-spec %global common_description %{expand: Python-rpm-spec is a Python module for parsing RPM spec files. RPMs are build from a package's sources along with a spec file. The spec file controls how the RPM is built. This module allows you to parse spec files and gives you simple access to various bits of information that is contained in the spec file.} Name: python-%{srcname} Version: 0.12 Release: %autorelease Summary: Python module for parsing RPM spec files License: MIT URL: https://github.com/bkircher/python-rpm-spec Source0: %url/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %description %{common_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{common_description} %prep %autosetup -p1 -n %{foldername}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc AUTHORS CHANGELOG.md README.md examples/ %changelog * Sat Jul 16 2022 Robert-André Mauchin - 0.12-1 - Update to 0.12 - Close: rhbz#2106801 * Thu Jun 23 2022 Robert-André Mauchin - 0.11-4 - Update to new Python guidelines * Mon Jun 13 2022 Python Maint - 0.11-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Dec 18 2021 Robert-André Mauchin - 0.11-1 - Update to 0.11 Close: rhbz#1990245 * Fri Jul 23 2021 Fedora Release Engineering - 0.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.10-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Nov 14 17:34:08 CET 2020 Robert-André Mauchin - 0.10-1 - Update to 0.10 - Close: rhbz#1880923 * Wed Jul 29 2020 Fedora Release Engineering - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 19 23:43:38 CEST 2020 Robert-André Mauchin - 0.9-1 - Update to 0.9 (#1830524) * Tue May 26 2020 Miro Hrončok - 0.8-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.8-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.8-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 27 00:01:23 CET 2019 Robert-André Mauchin - 0.8-1 - Initial package