Accepting request 927363 from devel:languages:python
- Making rpmlint more happy. - Mark exampls/*.py non-executable. OBS-URL: https://build.opensuse.org/request/show/927363 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pandocfilters?expand=0&rev=6
This commit is contained in:
commit
ada2f442ca
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 25 19:55:22 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Making rpmlint more happy.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 25 14:02:31 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Mark exampls/*.py non-executable.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 4 21:06:04 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -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
|
||||
@ -33,8 +34,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,16 +45,19 @@ 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
|
||||
|
||||
%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}/*
|
||||
|
Loading…
Reference in New Issue
Block a user