# Created by pyp2rpm-3.2.2 %global pypi_name Pallets-Sphinx-Themes Name: python-%{pypi_name} Version: 1.0.0 Release: 1%{?dist} Summary: Sphinx themes for Pallets and related projects License: BSD URL: https://github.com/pallets/pallets-sphinx-themes/ Source0: https://files.pythonhosted.org/packages/source/P/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: sphinx Requires: sphinx %description Pallets Sphinx Themes Themes for the Pallets projects. %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-sphinx Requires: python-setuptools %description -n python2-%{pypi_name} Pallets Sphinx Themes Themes for the Pallets projects. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-sphinx Requires: python3-setuptools %description -n python3-%{pypi_name} Pallets Sphinx Themes Themes for the Pallets projects. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/pallets_sphinx_themes %{python2_sitelib}/Pallets_Sphinx_Themes-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/pallets_sphinx_themes %{python3_sitelib}/Pallets_Sphinx_Themes-%{version}-py?.?.egg-info %changelog * Sat Apr 28 2018 Rick Elrod - 1.0.0-1 - Initial package.