## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; 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 puzpy Name: python-%{srcname} # The latest GitHub tag is 0.2.4, while the version on pypi is 0.2.5; the # latter includes an fixup commit and doesn't include tests. For this reason, # we use the GitHub tarball and add the fixup commit here, but keep the version # as 0.2.4, as it was never actually bumped in GitHub (see issue #27). Version: 0.2.4 Release: %autorelease Summary: Python crossword puzzle library License: MIT URL: https://github.com/alexdej/puzpy Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz # Missing test files Source1: %{url}/raw/28e22b5efe90f2f144919e3c690d51cb38389227/testfiles/nyt_v1_4.puz Source2: %{url}/raw/28e22b5efe90f2f144919e3c690d51cb38389227/testfiles/unicode.puz # Fixup commit Patch: %{url}/commit/6109ad5a54359262010d01f2e0175d928bd70962.patch # Backport of 2813e095e267b3487e7fecf44981e4f179aeb9ed Patch: puzpy-fix-tests.patch # Add clue index for mapping help Patch: %{url}/commit/3ed6e8e4a631b423186a70ae7e35e5a4be7a86b3.patch # fixes for diagramless puzzles Patch: %{url}/commit/0b04589346cf0b54556bf267c03479b258ebc929.patch # add support for reading/writing utf-8 with v2 files # Backport of ae71d58fc3b9646d6db9199de3dc634c1e90435e Patch: puzpy-utf-8.patch # Fix typo in Markup.is_markup_square(), add to unit test Patch: %{url}/commit/28e22b5efe90f2f144919e3c690d51cb38389227.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Implementation of .puz crossword puzzle file parser based on the .puz file format documentation.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} # Add missing test artifacts cp -p %SOURCE1 %SOURCE2 testfiles %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %check %tox %files -n python3-%{srcname} %doc CHANGELOG.rst README.rst %pycached %{python3_sitelib}/puz.py %{python3_sitelib}/%{srcname}-%{version}.dist-info %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.2.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.2.4-8 - Rebuilt for Python 3.13 * Fri May 24 2024 Davide Cavalca - 0.2.4-7 - Backport UTF-8 support * Fri Jan 26 2024 Fedora Release Engineering - 0.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.2.4-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Oct 26 2022 Davide Cavalca - 0.2.4-1 - Initial import; Fixes: RHBZ#2137747 ## END: Generated by rpmautospec