## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; 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 _description %{expand: Pygments lexers for Git output and files.} Name: python-pygments-git Version: 1.6.0 Release: %{autorelease} Summary: Pygments lexers for Git output and files License: MIT URL: https://github.com/adamchainz/pygments-git Source0: %{url}/archive/%{version}/pygments-git-%{version}.tar.gz BuildArch: noarch %description %_description %package -n python3-pygments-git Summary: %{summary} BuildRequires: python3-devel %description -n python3-pygments-git %_description %prep %autosetup -n pygments-git-%{version} # Comment out to remove /usr/bin/env shebangs # Can use something similar to correct/remove /usr/bin/python shebangs also # find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' # we use the template because we don't want the strict versioning sed -i "s|-r requirements/{envname}.txt|-r requirements/requirements.in|" tox.ini %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pygments_git %check %pyproject_check_import %tox %files -n python3-pygments-git -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.6.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.6.0-7 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Sep 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.6.0-4 - chore: upload sources (fixes rh#2229721) * Thu Sep 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.6.0-3 - feat: use GH tar and enable tox tests * Thu Sep 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.6.0-2 - feat: ready for review * Thu Sep 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.6.0-1 - init ## END: Generated by rpmautospec