diff --git a/Pygments-2.14.0.tar.gz b/Pygments-2.15.1.tar.gz similarity index 37% rename from Pygments-2.14.0.tar.gz rename to Pygments-2.15.1.tar.gz index 32dfcc18b9ccd404f4af162623fc4620977e4d40..72ae7890c7d3f3f3db01df93152d63e67ab1dc6b 100644 Binary files a/Pygments-2.14.0.tar.gz and b/Pygments-2.15.1.tar.gz differ diff --git a/python-pygments.spec b/python-pygments.spec index 60e3c1d1992f86c08b33ca2d3d9798507c3d8422..9ca878824649be909d4f85e1a90310125925a5c6 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -4,7 +4,7 @@ %bcond_without tests Name: python-pygments -Version: 2.14.0 +Version: 2.15.1 Release: %{anolis_release}%{?dist} Summary: Syntax highlighting engine written in Python @@ -14,18 +14,17 @@ Source0: %{pypi_source Pygments} BuildArch: noarch -BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %if %{with tests} -BuildRequires: python%{python3_pkgversion}-pytest -BuildRequires: python%{python3_pkgversion}-lxml +BuildRequires: python3-pytest +BuildRequires: python3-lxml %endif %if %{with docs} -BuildRequires: python%{python3_pkgversion}-sphinx -%endif -%if %{with docs} || %{with tests} -BuildRequires: python%{python3_pkgversion}-wcag-contrast-ratio BuildRequires: make +BuildRequires: python3-sphinx +# the sphinx config imports tests.contrast.test_contrasts: +BuildRequires: python3-wcag-contrast-ratio %endif @@ -46,11 +45,11 @@ Highlights are: %description %_description -%package -n python%{python3_pkgversion}-pygments +%package -n python3-pygments Summary: %{summary} Provides: pygmentize = %{version}-%{release} -%description -n python%{python3_pkgversion}-pygments %_description +%description -n python3-pygments %_description %prep @@ -69,22 +68,21 @@ Provides: pygmentize = %{version}-%{release} %pyproject_install %pyproject_save_files pygments +install -m0644 doc/pygmentize.1 -Dt %{buildroot}%{_mandir}/man1/ + %if %{with docs} %make_build -C doc html rm doc/_build/html/.buildinfo rm -rf doc/_build/html/_sources -install doc/pygmentize.1 -Dt %{buildroot}%{_mandir}/man1/ -chmod -x %{buildroot}%{_mandir}/man1/*.1 %endif %if %{with tests} %check -make test PYTHON=%{python3} +%pytest --ignore tests/contrast/test_contrasts.py %endif - -%files -n python%{python3_pkgversion}-pygments -f %{pyproject_files} +%files -n python3-pygments -f %{pyproject_files} %doc AUTHORS CHANGES %license LICENSE %{_bindir}/pygmentize @@ -95,5 +93,8 @@ make test PYTHON=%{python3} %changelog +* Sat Jul 22 2023 Funda Wang - 2.15.1-1 +- New version 2.15.1 + * Sat Jan 21 2023 Funda Wang - 2.14.0-1 - Import package for anolis 23