From a7cb54b257a848a66675d4bf517e37662eee240f Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Nov 17 2016 00:48:02 +0000 Subject: Spec file modernization, fix ownership of __pycache__ --- diff --git a/python-pandocfilters.spec b/python-pandocfilters.spec index f09f385..ce7c51f 100644 --- a/python-pandocfilters.spec +++ b/python-pandocfilters.spec @@ -1,6 +1,6 @@ Name: python-pandocfilters Version: 1.2.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Python module for writing pandoc filters License: BSD @@ -9,49 +9,58 @@ Source0: https://github.com/jgm/pandocfilters/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python3-devel %global _docdir_fmt %{name} -%description -This package provides a few utility functions which make it easier to +%global _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. +%description %_description -%package -n python3-pandocfilters +%package -n python2-pandocfilters Summary: Python module for writing pandoc filters -BuildRequires: python3-devel +%{?python_provide:%python_provide python2-pandocfilters} -%description -n python3-pandocfilters -This package provides a few utility functions which make it easier to -write pandoc filters in Python. +%description -n python2-pandocfilters %_description -This is the version for Python 3. +%package -n python3-pandocfilters +Summary: Python module for writing pandoc filters +%{?python_provide:%python_provide python3-pandocfilters} + +%description -n python3-pandocfilters %_description %prep %autosetup -n pandocfilters-%{version} %build -%{__python2} setup.py build -%{__python3} setup.py build +%py2_build +%py2_build %install -%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%py2_install +%py3_install -%files +%files -n python2-pandocfilters %license LICENSE %doc README %doc examples/ -%{python2_sitelib}/* +%{python2_sitelib}/pandocfilters.py* +%{python2_sitelib}/pandocfilters-%{version}-py%{python2_version}.egg-info %files -n python3-pandocfilters %license LICENSE %doc README %doc examples/ -%{python3_sitelib}/* +%{python3_sitelib}/pandocfilters.py +%{python3_sitelib}/pandocfilters-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/__pycache__/* %changelog +* Thu Nov 17 2016 Zbigniew Jędrzejewski-Szmek - 1.2.4-5 +- Spec file modernization, fix ownership of __pycache__ + * Tue Jul 19 2016 Fedora Release Engineering - 1.2.4-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages