From febba19876d68618479422934f8283c223722fb7 Mon Sep 17 00:00:00 2001 From: linker99 Date: Fri, 27 Oct 2023 21:18:03 +0800 Subject: [PATCH] Remove generated output/ directory when 'make clean' is called --- ...-output-directory-when-make-clean-is.patch | 26 +++++++++++++++++++ python-pygments.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 backport-Remove-generated-output-directory-when-make-clean-is.patch diff --git a/backport-Remove-generated-output-directory-when-make-clean-is.patch b/backport-Remove-generated-output-directory-when-make-clean-is.patch new file mode 100644 index 0000000..710c299 --- /dev/null +++ b/backport-Remove-generated-output-directory-when-make-clean-is.patch @@ -0,0 +1,26 @@ +From dac176fdef4d5f9c16a5ec8ecadb605cd78e6335 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?St=C3=A9phane=20Blondon?= +Date: Fri, 29 Nov 2019 16:15:47 +0100 +Subject: [PATCH] Remove generated output/ directory when 'make clean' is + called + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 61ee393e..13813adc 100644 +--- a/Makefile ++++ b/Makefile +@@ -24,7 +24,7 @@ check: + -i docs/build -i pygments/formatters/_mapping.py -i pygments/unistring.py + + clean: clean-pyc +- -rm -rf build ++ -rm -rf build tests/examplefiles/output + -rm -f codetags.html + + clean-pyc: +-- +2.27.0 + diff --git a/python-pygments.spec b/python-pygments.spec index 24dcd72..9890dc8 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: 4 +Release: 5 License: BSD URL: http://pygments.org/ Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz @@ -25,6 +25,7 @@ BuildArch: noarch 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 %description %{_description} @@ -85,6 +86,9 @@ cp -r doc/docs doc/reST %lang(en) %{_mandir}/man1/pygmentize.1* %changelog +* Thu Nov 3 2021 huangduirong - 2.5.2-5 +- Remove generated output/ directory when 'make clean' is called + * Sun Sep 26 2021 huangduirong - 2.5.2-4 - Infinite loop in get_tokens_unprocessed -- Gitee