A new user interface for you! Read more...

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

%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}
# Fix usr/bin/env call in example
sed -i 's/^#\!\/.*//g' examples/*.py

%build
%python_build

%install
%python_install

%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README README.rst 
%doc examples/
%{python_sitelib}/*

%changelog