# Created by pyp2rpm-1.0.1 %global pypi_name tooz %{!?upstream_version: %global upstream_version %{version}%{?milestone}} Name: python-%{pypi_name} Version: 1.48.0 Release: 8%{?dist} Summary: Coordination library for distributed systems License: ASL 2.0 URL: https://tooz.readthedocs.org Source0: http://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz BuildArch: noarch %global _description\ The Tooz project aims at centralizing the most common distributed primitives\ like group membership protocol, lock service and leader election by providing\ a coordination API helping developers to build distributed applications. %description %_description %package -n python3-%{pypi_name} Summary: Coordination library for distributed systems BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr >= 1.8 Requires: python3-babel Requires: python3-fasteners Requires: python3-futurist Requires: python3-iso8601 >= 0.1.9 Requires: python3-msgpack Requires: python3-oslo-serialization Requires: python3-oslo-utils >= 3.15.0 Requires: python3-retrying Requires: python3-six >= 1.9.0 Requires: python3-stevedore >= 1.16.0 Requires: python3-voluptuous >= 0.8.9 Requires: python3-zake %description -n python3-%{pypi_name} The Tooz project aims at centralizing the most common distributed primitives like group membership protocol, lock service and leader election by providing a coordination API helping developers to build distributed applications. %package doc Summary: Documentation for %{name} Group: Documentation License: ASL 2.0 BuildRequires: python3-sphinx BuildRequires: python3-oslo-sphinx BuildRequires: python3-stevedore >= 1.5.0 %description doc The Tooz project aims at centralizing the most common distributed primitives like group membership protocol, lock service and leader election by providing a coordination API helping developers to build distributed applications. This package contains documentation in HTML format. %prep %setup -q -n %{pypi_name}-%{upstream_version} find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' # cannot work with version as bytes sed -i 's/version = version.strip()/version = version.decode().strip()/' doc/source/conf.py %build %py3_build # generate html docs sphinx-build-3 doc/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}/tests/ %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-*.egg-info %files doc %license LICENSE %doc html %changelog * Wed Jan 09 2019 Miro Hrončok - 1.48.0-8 - Subpackage python2-tooz has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 1.48.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.48.0-6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.48.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.48.0-4 - Python 2 binary package renamed to python2-tooz See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 1.48.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.48.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Feb 08 2017 Pradeep Kilambi 1.48.0-1 - Update to 1.48.0 * Mon Dec 19 2016 Miro Hrončok - 1.43.0-2 - Rebuild for Python 3.6 * Sun Sep 11 2016 Haikel Guemar 1.43.0-1 - Update to 1.43.0