%if 0%{?fedora} || 0%{?rhel} %global with_python3 1 %endif %global commit ebe84efc1a869da8d5689c706cdcf6ea864f0d9b %global pypi_name sphinxcontrib-websupport Name: python-%{pypi_name} Version: 1.0.1 Release: 8.20180316git%{?dist}.1 Summary: Sphinx API for Web Apps License: BSD URL: http://sphinx-doc.org/ Source0: https://github.com/sphinx-doc/sphinxcontrib-websupport/archive/%{commit}.tar.gz BuildArch: noarch %description sphinxcontrib-websupport provides a Python API to easily integrate Sphinx documentation into your Web application. %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python2-devel BuildRequires: python2-docutils BuildRequires: python2-jinja2 BuildRequires: python2-mock BuildRequires: python2-pytest BuildRequires: python2-setuptools BuildRequires: python2-six BuildRequires: python2-sphinx BuildRequires: python2-sqlalchemy BuildRequires: python2-whoosh Requires: python2-docutils Requires: python2-jinja2 Requires: python2-six Requires: python2-sphinx Requires: python2-sqlalchemy Requires: python2-whoosh %description -n python2-%{pypi_name} sphinxcontrib-websupport provides a Python API to easily integrate Sphinx documentation into your Web application. %if 0%{?with_python3} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-docutils BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-jinja2 BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: python%{python3_pkgversion}-sqlalchemy BuildRequires: python%{python3_pkgversion}-whoosh Requires: python%{python3_pkgversion}-docutils Requires: python%{python3_pkgversion}-jinja2 Requires: python%{python3_pkgversion}-six Requires: python%{python3_pkgversion}-sphinx Requires: python%{python3_pkgversion}-sqlalchemy Requires: python%{python3_pkgversion}-whoosh %description -n python%{python3_pkgversion}-%{pypi_name} sphinxcontrib-websupport provides a Python API to easily integrate Sphinx documentation into your Web application. %endif %prep %autosetup -n %{pypi_name}-%{commit} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %if 0%{?with_python3} %py3_build %endif %py2_build %install %if 0%{?with_python3} %py3_install %endif %py2_install %check PYTHONPATH=. py.test tests/ || %if 0%{?with_python3} PYTHONPATH=. py.test-3 tests/ || %endif %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/sphinxcontrib/websupport %{python2_sitelib}/sphinxcontrib_websupport-*.pth %{python2_sitelib}/sphinxcontrib_websupport-*.egg-info %if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/sphinxcontrib/websupport %{python3_sitelib}/sphinxcontrib_websupport-*.pth %{python3_sitelib}/sphinxcontrib_websupport-*.egg-info %endif %changelog * Sat Apr 25 2020 Jean-Marc Liger - 1.0.1-8.20180316git.1 - Enable python3 for COPR EL7 - Rename python3-%{pypi_name} to %{python3_pkgversion}-%{pypi_name} * Wed May 16 2018 Javier Peña - 1.0.1-8.20180316git - Update to commit ebe84efc1a869da8d5689c706cdcf6ea864f0d9b - Fix build with Sphinx 1.7 (bz#1578132) * Wed Feb 28 2018 Iryna Shcherbina - 1.0.1-7.20171013git - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.0.1-6.20171013git - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Dec 18 2017 Javier Peña - 1.0.1-5.20171013git - Fixed Source0 URL (bz#1526646) * Fri Oct 13 2017 Javier Peña - 1.0.1-4.20171013git - Updated to latest git commit to fix build in Rawhide * Wed Oct 11 2017 Troy Dawson - 1.0.1-3 - Cleanup spec file conditionals * Thu Jul 27 2017 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jun 30 2017 Javier Peña - 1.0.1-1 - Initial package.