## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 mathics-pygments Name: python-%{srcname} Version: 1.0.2 Release: %autorelease Summary: Mathematica/Wolfram Language Lexer for Pygments License: MIT URL: http://github.com/Mathics3/mathics-pygments # PyPI source tarball is misnamed Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz # Compatibility with pytest 8 Patch: https://github.com/Mathics3/mathics-pygments/pull/5.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This is package provides a lexer and highlighter for Mathematica/Wolfram Language source code using the pygments engine.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files mathics_pygments %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md CHANGES.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.0.2-8 - Rebuilt for Python 3.13 * Fri Apr 19 2024 Tomáš Hrnčiar - 1.0.2-7 - Backport upstream patch needed for compatibility with pytest 8 * Fri Jan 26 2024 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 1.0.2-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 09 2023 Davide Cavalca - 1.0.2-1 - Initial import; Fixes: RHBZ#2158955 ## END: Generated by rpmautospec