%{?python_enable_dependency_generator} %if 0%{?fedora} || 0%{?rhel} > 7 %bcond_with python2 %bcond_without python3 %else %bcond_without python2 %bcond_with python3 %endif %global pypi_name sphinxcontrib-seqdiag Name: python-%{pypi_name} Version: 0.8.4 Release: 20%{?dist} Summary: Sphinx "seqdiag" extension License: BSD URL: http://github.com/blockdiag/sphinxcontrib-seqdiag Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %if %{with python2} %package -n python2-%{pypi_name} Summary: Sphinx "seqdiag" extension %{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python2-devel BuildRequires: python2-setuptools Requires: python2-blockdiag >= 1.5.0 Requires: python2-seqdiag >= 0.9.3 Requires: python2-sphinx >= 0.6 %description -n python2-%{pypi_name} A sphinx extension for embedding sequence diagram using seqdiag_. %endif %if %{with python3} %package -n python3-%{pypi_name} Summary: Sphinx "seqdiag" extension BuildRequires: python3-setuptools BuildRequires: python3-devel Requires: python3-blockdiag >= 1.5.0 Requires: python3-seqdiag >= 0.9.3 Requires: python3-sphinx >= 0.6 %description -n python3-%{pypi_name} A sphinx extension for embedding sequence diagram using seqdiag_. %endif %description A sphinx extension for embedding sequence diagram using seqdiag_. %prep %setup -q -n %{pypi_name}-%{version} %build %if %{with python2} %py2_build %endif %if %{with python3} %py3_build %endif # with_python3 %install %if %{with python2} %py2_install %endif %if %{with python3} %py3_install %endif %if %{with python2} %files -n python2-%{pypi_name} %doc README.rst %license LICENSE %{python2_sitelib}/sphinxcontrib %{python2_sitelib}/*.egg-info %{python2_sitelib}/*-nspkg.pth %exclude %{python2_sitelib}/tests/ %endif %if %{with python3} %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/sphinxcontrib %{python3_sitelib}/*.egg-info %{python3_sitelib}/*-nspkg.pth %exclude %{python3_sitelib}/tests/ %endif %changelog * Thu Oct 03 2019 Miro Hrončok - 0.8.4-20 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.8.4-19 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.8.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.8.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Sep 19 2018 Javier Peña - 0.8.4-16 - Removed Python 2 package from Fedora 30+ (bz#1629739) - Modernized prep, build, install sections * Sat Jul 14 2018 Fedora Release Engineering - 0.8.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.8.4-14 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 0.8.4-13 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.8.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.8.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.8.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.8.4-9 - Rebuild for Python 3.6 * Thu Feb 04 2016 Fedora Release Engineering - 0.8.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 13 2015 Javier Peña - 0.8.4-7 - Fixed package build with Python 3.5 * Tue Nov 10 2015 Fedora Release Engineering - 0.8.4-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Aug 27 2015 Javier Peña - 0.8.4-5 - Drop python_sitelib fallback macro * Thu Aug 27 2015 Javier Peña - 0.8.4-4 - Comply with updated Python packaging guidelines * Thu Aug 27 2015 Javier Peña - 0.8.4-3 - Fixed python3 macro - Improved file listing * Mon Jul 13 2015 jpena - 0.8.4-2 - Added python3 build. * Thu Jul 09 2015 jpena - 0.8.4-1 - Initial package.