# Created by pyp2rpm-3.2.2 %global pypi_name podcastparser Name: python-podcastparser Version: 0.6.4 Release: %mkrel 1 Group: Development/Python Summary: Simplified, fast RSS parser License: ISC License URL: http://gpodder.org/podcastparser/ Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python2) BuildRequires: python2dist(setuptools) BuildRequires: python2dist(sphinx) BuildRequires: pkgconfig(python3) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) %description podcastparser: Simple, fast and efficient podcast parser The podcast parser project is a library from the gPodder project to provide an easy and reliable way of parsing RSS- and Atom-based podcast feeds in Python.* Web: %package -n python2-%{pypi_name} Summary: Simplified, fast RSS parser Group: Development/Python Obsoletes: python-podcastparser < 0.6.1-2 Provides: python-podcastparser = %{version}-%{release} %description -n python2-%{pypi_name} podcastparser: Simple, fast and efficient podcast parser The podcast parser project is a library from the gPodder project to provide an easy and reliable way of parsing RSS- and Atom-based podcast feeds in Python.* Web: %package -n python3-%{pypi_name} Summary: Simplified, fast RSS parser Group: Development/Python %description -n python3-%{pypi_name} podcastparser: Simple, fast and efficient podcast parser The podcast parser project is a library from the gPodder project to provide an easy and reliable way of parsing RSS- and Atom-based podcast feeds in Python.* Web: %prep %setup -q -n %{pypi_name}-%{version} # generate html docs sphinx-build doc html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' # generate html docs sphinx-build-3 doc html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %build %py2_build pushd %{py3dir} %py3_build popd %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install (and we want the python2 version # to be the default for now). pushd %{py3dir} %py3_install popd %py2_install %files -n python2-%{pypi_name} %doc html README.md %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %doc html README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed Jan 09 2019 shlomif <shlomif> 0.6.4-1.mga7 + Revision: 1353787 - Rebuild for python3 3.7 * Thu Sep 20 2018 umeabot <umeabot> 0.6.1-3.mga7 + Revision: 1289676 - Mageia 7 Mass Rebuild * Tue Jun 12 2018 daviddavid <daviddavid> 0.6.1-2.mga7 + Revision: 1236445 - rename python-podcastparser to python2-podcastparser - use new python macros * Fri Oct 13 2017 shlomif <shlomif> 0.6.1-1.mga7 + Revision: 1171535 - import from pyp2rpm