diff --git a/backport-Use-wildcards-to-include-the-pygments-module.patch b/backport-Use-wildcards-to-include-the-pygments-module.patch new file mode 100644 index 0000000000000000000000000000000000000000..264b1789990971e8e39cd9aedda3db2668a74371 --- /dev/null +++ b/backport-Use-wildcards-to-include-the-pygments-module.patch @@ -0,0 +1,26 @@ +From 01f05b4dc5155745d401f31545fc1a089e8a3710 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= +Date: Fri, 29 Nov 2019 20:21:03 +0100 +Subject: [PATCH] Use wildcards to include the pygments module. + +This should fix PR#1316 properly. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index d4555e3f..9c245215 100755 +--- a/setup.py ++++ b/setup.py +@@ -35,7 +35,7 @@ setup( + description = 'Pygments is a syntax highlighting package written in Python.', + long_description = __doc__, + keywords = 'syntax highlighting', +- packages = find_packages(exclude=['tests']), ++ packages = find_packages(include=['pygments', 'pygments.*']), + entry_points = { + 'console_scripts': ['pygmentize = pygments.cmdline:main'], + }, +-- +2.42.0.windows.2 + diff --git a/python-pygments.spec b/python-pygments.spec index 9890dc8d9c49552da6c9d9eb9bd5edda83920205..aab806ef78dc86ba763a52f3ad5c984254452e24 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -16,7 +16,7 @@ need to prettify source code. Highlights are: \ Name: python-pygments Summary: Syntax highlighting engine written in Python Version: 2.5.2 -Release: 5 +Release: 6 License: BSD URL: http://pygments.org/ Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz @@ -26,6 +26,7 @@ Patch6000: backport-CVE-2021-20270.patch Patch6001: backport-CVE-2021-27291.patch Patch6002: backport-weed-out-more-backtracking-string-regexes.patch Patch6003: backport-Remove-generated-output-directory-when-make-clean-is.patch +Patch6004: backport-Use-wildcards-to-include-the-pygments-module.patch %description %{_description} @@ -86,6 +87,9 @@ cp -r doc/docs doc/reST %lang(en) %{_mandir}/man1/pygmentize.1* %changelog +* Wed Dec 27 2023 fandehui - 2.5.2-6 +- Use wildcards to include the pygments module + * Thu Nov 3 2021 huangduirong - 2.5.2-5 - Remove generated output/ directory when 'make clean' is called