Dirk Mueller
52f1754d8c
* Don't raise an error if the directory used to store images already exists (#104, Augusto Zanellato). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pandocfilters?expand=0&rev=18
60 lines
1.8 KiB
RPMSpec
60 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-pandocfilters
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pandocfilters
|
|
Version: 1.5.1
|
|
Release: 0
|
|
Summary: Python module for writing pandoc filters
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://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
|
|
|
|
%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
|
|
to stdout. They can be used with pandoc (>= 1.12) either using
|
|
pipes.
|
|
pandoc -t json -s | ./caps.py | pandoc -f json
|
|
or using the --filter (or -F) command-line option.
|
|
|
|
%prep
|
|
%setup -q -n pandocfilters-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|