From 689d498e627588ae63c4f0d84ebaf8b3362255b2ac7870e4858bce7e10336305 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Oct 2021 19:49:09 +0000 Subject: [PATCH 1/2] Accepting request 927317 from home:dimstar:Factory - Mark exampls/*.py non-executable. OBS-URL: https://build.opensuse.org/request/show/927317 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pandocfilters?expand=0&rev=12 --- python-pandocfilters.changes | 5 +++++ python-pandocfilters.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-pandocfilters.changes b/python-pandocfilters.changes index 551fe04..21d54c3 100644 --- a/python-pandocfilters.changes +++ b/python-pandocfilters.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 25 14:02:31 UTC 2021 - Dominique Leuenberger + +- Mark exampls/*.py non-executable. + ------------------------------------------------------------------- Thu Mar 4 21:06:04 UTC 2021 - Dirk Müller diff --git a/python-pandocfilters.spec b/python-pandocfilters.spec index e2f7535..7935a0c 100644 --- a/python-pandocfilters.spec +++ b/python-pandocfilters.spec @@ -33,8 +33,8 @@ BuildArch: noarch %python_subpackages %description -Pandoc filters are pipes that read a JSON serialization of the -Pandoc AST from stdin, transform it in some way, and write it +Pandoc filters are pipes that read a JSON serialization of the +Pandoc AST from stdin, transform it in some way, and write it to stdout. They can be used with pandoc (>= 1.12) either using pipes. pandoc -t json -s | ./caps.py | pandoc -f json @@ -44,6 +44,8 @@ or using the --filter (or -F) command-line option. %setup -q -n pandocfilters-%{version} # Fix usr/bin/env call in example sed -i 's/^#\!\/.*//g' examples/*.py +# Fix: spurious-executable-perm (Badness: 50) +chmod a-x examples/*.py %build %python_build @@ -53,7 +55,7 @@ sed -i 's/^#\!\/.*//g' examples/*.py %files %{python_files} %defattr(-,root,root,-) -%doc README README.rst +%doc README README.rst %doc examples/ %license LICENSE %{python_sitelib}/* From bdba56a68a745bc88e8801280177fed826d4686f940268171ca88d27952e1482 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Oct 2021 19:55:31 +0000 Subject: [PATCH 2/2] - Making rpmlint more happy. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pandocfilters?expand=0&rev=13 --- python-pandocfilters.changes | 5 +++++ python-pandocfilters.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-pandocfilters.changes b/python-pandocfilters.changes index 21d54c3..7868c5a 100644 --- a/python-pandocfilters.changes +++ b/python-pandocfilters.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 25 19:55:22 UTC 2021 - Matej Cepl + +- Making rpmlint more happy. + ------------------------------------------------------------------- Mon Oct 25 14:02:31 UTC 2021 - Dominique Leuenberger diff --git a/python-pandocfilters.spec b/python-pandocfilters.spec index 7935a0c..84c5858 100644 --- a/python-pandocfilters.spec +++ b/python-pandocfilters.spec @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: http://github.com/jgm/pandocfilters Source: https://pypi.io/packages/source/p/pandocfilters/pandocfilters-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Recommends: pandoc >= 1.16 BuildArch: noarch @@ -52,10 +53,11 @@ chmod a-x examples/*.py %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %defattr(-,root,root,-) -%doc README README.rst +%doc README.rst %doc examples/ %license LICENSE %{python_sitelib}/*