## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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-client-config %global with_doc 1 %global common_desc %{expand: The os-client-config is a library for collecting client configuration for using an OpenStack cloud in a consistent and comprehensive manner. It will find cloud config for as few as 1 cloud and as many as you want to put in a config file. It will read environment variables and config files, and it also contains some vendor specific default values so that you do not have to know extra info to use OpenStack * If you have a config file, you will get the clouds listed in it * If you have environment variables, you will get a cloud named "envvars" * If you have neither, you will get a cloud named `defaults` with base defaults} Name: python-%{pypi_name} Version: 2.3.0 Release: %autorelease Summary: OpenStack Client Configuration Library License: Apache-2.0 URL: https://github.com/openstack/%{pypi_name} Source0: %{pypi_source os_client_config} BuildArch: noarch BuildRequires: git-core BuildRequires: python3-devel %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: Documentation for OpenStack os-client-config library %description -n python-%{pypi_name}-doc Documentation for the os-client-config library. %endif %prep %autosetup -n os_client_config-%{version} -S git sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini sed -i \ -e "/^reno[[:space:]]*[><=]/d" \ -e "/^coverage[[:space:]]*[><=]/d" \ test-requirements.txt doc/requirements.txt sed -i -e "s/'reno.sphinxext',//" doc/source/conf.py %generate_buildrequires %if 0%{?with_doc} %pyproject_buildrequires -t -e docs %else %pyproject_buildrequires -t %endif %build %pyproject_wheel %install %pyproject_install %if 0%{?with_doc} rm -rf doc/build/html/.{doctrees,buildinfo} doc/build/html/objects.inv %endif %pyproject_save_files -l os_client_config %check %tox %files -n python3-%{pypi_name} -f %{pyproject_files} %doc ChangeLog README.rst %license LICENSE %if 0%{?with_doc} %files -n python-%{pypi_name}-doc %license LICENSE %doc doc/build/html %endif %changelog ## START: Generated by rpmautospec * Tue Mar 24 2026 Steve Traylen - 2.3.0-1 - Release 2.3.0 - Migrate to pyproject macros rhbz#2377961 - Remove python-reno BR * Sat Jan 17 2026 Fedora Release Engineering - 2.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 2.1.0-19 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 2.1.0-18 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 2.1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Wed Jul 23 2025 Alfredo Moralejo - 2.1.0-16 - Rebuilt for Fedora 43 * Sat Jan 18 2025 Fedora Release Engineering - 2.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 24 2024 Miroslav Suchý - 2.1.0-14 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 2.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 10 2024 Python Maint - 2.1.0-12 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.0-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 03 2020 Joel Capitao 2.1.0-1 - Update to upstream version 2.1.0 * Tue May 26 2020 Miro Hrončok - 1.33.0-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.33.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 05 2019 Joel Capitao 1.33.0-2 - Removed python2 subpackages in no el7 distros * Tue Nov 05 2019 RDO 1.33.0-1 - Update to 1.33.0 * Thu Oct 03 2019 Miro Hrončok - 1.32.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.32.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.32.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 10 2019 Alfredo Moralejo 1.32.0-2 - Added stestr as BR * Fri Mar 08 2019 RDO 1.32.0-1 - Update to 1.32.0 ## END: Generated by rpmautospec