From c8e85af97cd6f341e09de03fc73625868221299f Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Tue, 27 Oct 2020 22:00:56 +0100 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/python-pygments.git#987ed3b33f70aa31732cb10f814798672a38baab --- .gitignore | 1 + python-pygments.spec | 21 +++++++++++++-------- sources | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 644f54f..a26702b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ Pygments-1.3.1.tar.gz /Pygments-2.3.1.tar.gz /Pygments-2.4.2.tar.gz /Pygments-2.6.1.tar.gz +/Pygments-2.7.1.tar.gz diff --git a/python-pygments.spec b/python-pygments.spec index 42b92c4..1a18d46 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -3,8 +3,8 @@ %bcond_without tests Name: python-pygments -Version: 2.6.1 -Release: 4%{?dist} +Version: 2.7.1 +Release: 1%{?dist} Summary: Syntax highlighting engine written in Python License: BSD @@ -32,7 +32,7 @@ need to prettify source code. Highlights are: %package -n python%{python3_pkgversion}-pygments BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: pyproject-rpm-macros %if %{with tests} BuildRequires: python%{python3_pkgversion}-pytest %endif @@ -47,12 +47,16 @@ Summary: Syntax highlighting engine written in Python %prep %autosetup -p1 -n Pygments-%{version} +%generate_buildrequires +%pyproject_buildrequires + %build sed -i 's/\r//' LICENSE -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files pygments %if %{with docs} %{python3} setup.py build_sphinx @@ -69,11 +73,9 @@ make test PYTHON=%{python3} %endif -%files -n python%{python3_pkgversion}-pygments +%files -n python%{python3_pkgversion}-pygments -f %{pyproject_files} %doc AUTHORS CHANGES doc/reST %license LICENSE -%{python3_sitelib}/pygments/ -%{python3_sitelib}/Pygments-%{version}-py%{python3_version}.egg-info/ %{_bindir}/pygmentize %if %{with docs} %lang(en) %{_mandir}/man1/pygmentize.1* @@ -81,6 +83,9 @@ make test PYTHON=%{python3} %endif %changelog +* Mon Oct 12 2020 Tomas Hrnciar - 2.7.1-1 +- Update to 2.7.1 + * Wed Jul 29 2020 Fedora Release Engineering - 2.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index d362238..f86aff0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Pygments-2.6.1.tar.gz) = 0d793bb6eabe43645541347e44932ee50ccd4309f40e7a327422bcbe57d40a7cb8bbf2fb0911744ed6f316c6c08f4216462be88d79192a2ea004d6da51329932 +SHA512 (Pygments-2.7.1.tar.gz) = 95d1109cd53092fafa2f1d5c21a135c426700fc92e39bb22a27f47e63d10bdcb9e52593cd282339a3b501430ededbccea4f8d5970ba1171204579b964a6771c8