2017-03-31 07:09:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pandocfilters
|
|
|
|
#
|
2017-04-03 17:53:48 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-03-31 07:09:09 +02:00
|
|
|
#
|
|
|
|
# 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
|
2017-04-03 17:53:48 +02:00
|
|
|
Version: 1.4.1
|
2017-03-31 07:09:09 +02:00
|
|
|
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,-)
|
2017-04-03 17:53:48 +02:00
|
|
|
%doc LICENSE README README.rst
|
|
|
|
%doc examples/
|
2017-03-31 07:09:09 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|