## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 25; 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 with_doc 0 %global sname rsdclient %global pyname python_rsdclient %global _description %{expand: This is a client for the RSD Pod Manager API, which is based on OpenStack client framework. It provides a Python API (rsdclient/v1 module) and a RSD specific plugin for OpenStack client (rsdclient/osc).} Name: python-%{sname} Version: 1.0.2 Release: %autorelease Summary: OpenStack client plugin for Rack Scale Design License: Apache-2.0 URL: http://git.openstack.org/cgit/openstack/%{name} Source0: http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch %description %_description %package -n python3-%{sname} Summary: %{summary} BuildRequires: git-core BuildRequires: python3-devel %description -n python3-%{sname} %_description %package -n python3-%{sname}-tests Summary: python-rsdclient tests Requires: python3-%{sname} = %{version}-%{release} %description -n python3-%{sname}-tests Tests for python-rsdclient %if 0%{?with_doc} %package -n python-%{sname}-doc Summary: python-rsdclient documentation %description -n python-%{sname}-doc Documentation for python-rsdclient %endif %prep %autosetup -n %{name}-%{version} -S git sed -i /.*-c{env:UPPER_CONSTRAINTS_FILE.*/d tox.ini sed -i \ -e "/^reno[[:space:]]*[!><=]/d" \ -e "/^hacking[[:space:]]*[!><=]/d" \ -e "/^coverage[[:space:]]*[!><=]/d" \ -e "/^reno[[:space:]]*[!><=]/d" \ test-requirements.txt %generate_buildrequires %pyproject_buildrequires -t %build %{pyproject_wheel} %if 0%{?with_doc} # generate html docs %tox -e docs # remove the sphinx-build-3 leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %{pyproject_install} %pyproject_save_files -l rsdclient # Setup directories , not sure why these are here install -d -m 755 %{buildroot}%{_datadir}/%{pyname} install -d -m 755 %{buildroot}%{_sharedstatedir}/%{pyname} install -d -m 755 %{buildroot}%{_localstatedir}/log/%{pyname} %check %pyproject_check_import rsdclient -e rsdclient.tests.* %files -n python3-%{sname} -f %{pyproject_files} %license LICENSE %doc README.rst doc/source/readme.rst %exclude %{python3_sitelib}/%{sname}/tests %files -n python3-%{sname}-tests %license LICENSE %{python3_sitelib}/%{sname}/tests %if 0%{?with_doc} %files -n python-%{sname}-doc %license LICENSE %doc doc/build/html README.rst %endif %changelog ## START: Generated by rpmautospec * Sat Mar 28 2026 Steve Traylen - 1.0.2-25 - Migrate to pyproject macros - Resolves: rhbz#1751430 - Resolves: rhbz#2378189 * Sat Jan 17 2026 Fedora Release Engineering - 1.0.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 1.0.2-22 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 1.0.2-21 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 1.0.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 1.0.2-19 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 1.0.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 24 2024 Miroslav Suchý - 1.0.2-17 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.0.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.0.2-15 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.0.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Aug 16 2023 Alfredo Moralejo - 1.0.2-12 - Switch to sphinx-build to create the documentation * Fri Jul 21 2023 Fedora Release Engineering - 1.0.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Python Maint - 1.0.2-10 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 1.0.2-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.2-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 04 2020 Joel Capitao 1.0.2-1 - Update to upstream version 1.0.2 * Tue May 26 2020 Miro Hrončok - 1.0.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Nov 06 2019 Alfredo Moralejo 1.0.0-1 - Update to upstream version 1.0.0 * Thu Oct 03 2019 Miro Hrončok - 0.2.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.2.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 05 2019 RDO 0.2.0-1 - Update to 0.2.0 ## END: Generated by rpmautospec