A new user interface for you!

File python-pandocfilters.spec of Package python-pandocfilters

# spec file for package python-pandocfilters
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pandocfilters
Version:        1.4.1
Release:        0
License:        BSD-3-Clause
Summary:        Python module for writing pandoc filters
Url:            http://github.com/jgm/pandocfilters
Group:          Development/Languages/Python
Source:         https://pypi.io/packages/source/p/pandocfilters/pandocfilters-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  pandoc >= 1.16
Requires:       pandoc >= 1.16
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch


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
pandoc -t json -s | ./caps.py | pandoc -f json
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



%files %{python_files}
%doc examples/