## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 29; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name os-service-types %global module_name os_service_types %global common_desc \ OsServiceTypes is a Python library for consuming OpenStack sevice-types-authority data \ The OpenStack Service Types Authority contains information about official \ OpenStack services and their historical service-type aliases. \ The data is in JSON and the latest data should always be used. This simple \ library exists to allow for easy consumption of the data, along with a built-in \ version of the data to use in case network access is for some reason not possible \ and local caching of the fetched data. %global with_doc 1 Name: python-%{pypi_name} Version: 1.7.0 Release: %autorelease Summary: Python library for consuming OpenStack sevice-types-authority data License: Apache-2.0 URL: http://www.openstack.org/ Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description %{common_desc} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_desc} %if 0%{?with_doc} %package -n python-%{pypi_name}-doc Summary: %{pypi_name} documentation Requires: python-%{pypi_name} = %{version}-%{release} %description -n python-%{pypi_name}-doc %{common_desc} Documentation for %{pypi_name} %endif %prep %autosetup -n %{pypi_name}-%{version} # Ignore global openstack constraints sed -i /.*-c{env:UPPER_CONSTRAINTS_FILE.*/d tox.ini # Ignore flake/coverage/release notes plugins sed -i test-requirements.txt \ -e 's/^hacking[>=].*//' \ -e 's/^coverage[!>=].*//' \ -e 's/^reno[!>=].*//' %generate_buildrequires %pyproject_buildrequires -t -e %{default_toxenv} %build %pyproject_wheel %if 0%{?with_doc} sphinx-build -b html doc/source doc/build/html rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %pyproject_install %pyproject_save_files -l %{module_name} %check %tox %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc ChangeLog README.rst doc/source/readme.rst %if 0%{?with_doc} %files -n python-%{pypi_name}-doc %doc doc/build/html %endif %changelog ## START: Generated by rpmautospec * Sat Mar 21 2026 Steve Traylen - 1.7.0-29 - Migrate to pyproject-rpm-macros - Stop using deprecated py3 macros - Run tests with tox * Sat Jan 17 2026 Fedora Release Engineering - 1.7.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 1.7.0-24 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 1.7.0-23 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 1.7.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 1.7.0-21 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 1.7.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 24 2024 Miroslav Suchý - 1.7.0-19 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.7.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.7.0-17 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.7.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.7.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.7.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 1.7.0-13 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.7.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.7.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 1.7.0-10 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.7.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7.0-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.7.0-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Nov 06 2019 Alfredo Moralejo 1.7.0-2 - Update to upstream version 1.7.0 * Thu Oct 03 2019 Miro Hrončok - 1.6.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.6.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Mar 08 2019 Alfredo Morlejo 1.6.0-2 - Disable bootstrap mode. * Fri Mar 08 2019 RDO 1.6.0-1 - Update to 1.6.0 ## END: Generated by rpmautospec