1
0

Accepting request 483968 from home:TheBlackCat:branches:devel:languages:python

Needed by recent versions of the jupyter suite

OBS-URL: https://build.opensuse.org/request/show/483968
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pandocfilters?expand=0&rev=1
This commit is contained in:
Todd R
2017-03-31 05:09:09 +00:00
committed by Git OBS Bridge
commit f603be74d7
5 changed files with 92 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e4092fc37534560702e13c4b437cf02590ee27da53c922bda8eb2c43d38a71e
size 13749

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Mar 31 03:40:09 UTC 2017 - toddrme2178@gmail.com
- Initial version

61
python-pandocfilters.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python-pandocfilters
#
# Copyright (c) 2016 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.0
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.rst examples
%{python_sitelib}/*
%changelog