Name: python-pandocfilters Version: 1.2.4 Release: 1%{?dist} Summary: Python module for writing pandoc filters License: BSD URL: https://github.com/jgm/pandocfilters Source0: https://github.com/jgm/pandocfilters/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel %global _docdir_fmt %{name} %description This package provides a few utility functions which make it easier to write pandoc filters in Python. This is the version for Python 2. %package -n python3-pandocfilters Summary: Python module for writing pandoc filters BuildRequires: python3-devel %description -n python3-pandocfilters This package provides a few utility functions which make it easier to write pandoc filters in Python. This is the version for Python 3. %prep %autosetup -n pandocfilters-%{version} %build %{__python2} setup.py build %{__python3} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files %license LICENSE %doc README %doc examples/ %{python2_sitelib}/* %files -n python3-pandocfilters %license LICENSE %doc README %doc examples/ %{python3_sitelib}/* %changelog * Sat Jun 27 2015 Zbigniew Jędrzejewski-Szmek - 1.2.4-1 - Initial packaging