# Created by pyp2rpm-1.1.1 %global pypi_name Flask-RSTPages Name: python-flask-rstpages Version: 0.3 Release: 15%{?dist} Summary: Adds support for reStructuredText to a Flask application License: BSD URL: http://flask-rstpages.readthedocs.org/ Source0: https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-flask BuildRequires: python3-sphinx %global _description\ Flask-RSTPages adds support for reStructuredText\ to your Flask application. %description %_description %package -n python3-flask-rstpages Summary: Adds support for reStructuredText to a Flask application Requires: python3-flask Requires: python3-pygments Requires: python3-docutils %description -n python3-flask-rstpages Flask-RSTPages adds support for reStructuredText to your Flask application. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # generate html docs sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' # generate html docs sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %build pushd %{py3dir} %{__python3} setup.py 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} %{__python3} setup.py install --skip-build --root %{buildroot} popd %files -n python3-flask-rstpages %doc html LICENSE %{python3_sitelib}/flask_rstpages %{python3_sitelib}/Flask_RSTPages-%{version}-py?.?.egg-info %changelog * Sat Jul 14 2018 Fedora Release Engineering - 0.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.3-14 - Rebuilt for Python 3.7 * Mon Feb 12 2018 Iryna Shcherbina - 0.3-13 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.3-11 - Python 2 binary package renamed to python2-flask-rstpages See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.3-8 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.3-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Nov 24 2014 Richard Marko - 0.3-3 - Add conditionals for EPEL * Thu Oct 16 2014 Richard Marko - 0.3-2 - Corrected packaging errors. * Wed Oct 01 2014 Richard Marko - 0.3-1 - Initial package.