%global pypi_name cotyledon Name: python-%{pypi_name} Version: 1.7.3 Release: 8%{?dist} Summary: Cotyledon provides a framework for defining long-running services License: ASL 2.0 URL: https://cotyledon.readthedocs.io Source0: https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %package -n python3-%{pypi_name} Summary: Cotyledon provides a framework for defining long-running services BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm BuildRequires: python3-pbr # For building documentation BuildRequires: python3-sphinx BuildRequires: python3-setproctitle Requires: python3-setproctitle %description -n python3-%{pypi_name} Cotyledon provides a framework for defining long-running services. %package -n python3-%{pypi_name}-tests Summary: Tests for %{name} Requires: python3-%{pypi_name} = %{version}-%{release} Requires: python3-oslotest Requires: python3-testrepository Requires: python3-testscenarios Requires: python3-testtools %description -n python3-%{pypi_name}-tests Cotyledon provides a framework for defining long-running services. This package contains test files %package doc Summary: Documentation for %{name} %description doc Cotyledon provides a framework for defining long-running services. This package contains documentation in HTML format. %description Cotyledon provides a framework for defining long-running services. %prep %setup -q -n %{pypi_name}-%{version} # Let RPM handle the requirements rm -f {,test-}requirements.txt %build %py3_build export PYTHONPATH="$( pwd ):$PYTHONPATH" sphinx-build-3 -b html doc/source html # Fix hidden-file-or-dir warnings rm -rf html/.doctrees html/.buildinfo %install %py3_install %check %{__python3} setup.py test ||: rm -rf .testrepository %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %files -n python3-%{pypi_name}-tests %license LICENSE %{python3_sitelib}/%{pypi_name}/tests %files doc %doc html %changelog * Wed Jan 27 2021 Fedora Release Engineering - 1.7.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.7.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.7.3-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.7.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.7.3-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.7.3-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.7.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Alfredo Moralejo - 1.7.3-1 - Update to 1.7.3. - Remove python2 subpackages when building in Fedora. * Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.6.7-9 - Drop explicit locale setting See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot * Fri Jul 13 2018 Fedora Release Engineering - 1.6.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.6.7-7 - Rebuilt for Python 3.7 * Mon Feb 12 2018 Iryna Shcherbina - 1.6.7-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Igor Gnatenko - 1.6.7-5 - Escape macros in %%changelog * Fri Feb 09 2018 Fedora Release Engineering - 1.6.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.6.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.6.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 08 2017 Pradeep Kilambi - 1.6.7-1 - Rebase 1.6.7 * Mon Dec 19 2016 Miro Hrončok - 1.6.3-2 - Rebuild for Python 3.6 * Thu Dec 1 2016 Haïkel Guémar - 1.6.3-1 - Upstream 1.6.3 * Fri Sep 02 2016 Alan Pevec - 1.2.7-2 - python2 subpackage was missing * Wed Aug 31 2016 Pradeep Kilambi - 1.2.7-1 - Rebase to 1.2.7 - move sphinx-build to %%build - move buildRequires/requires to python2-cotyledon - run python3 tests * Fri Jul 15 2016 Pradeep Kilambi - 1.2.5-3 - Add check section - added new test dependencies - fixed tests sub packages * Thu Jul 14 2016 Pradeep Kilambi - 1.2.5-2 - Fix source url * Wed Jul 6 2016 Mehdi Abaakouk - 1.2.5-1 - Initial package.