## 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 sources_gpg 1 %global sources_gpg_sign 0xb8e9315f48553ec5aff9ffe5e69d97da9efb5aff %global pypi_name oslo.metrics %global pypi_name_under oslo_metrics %global pkg_name oslo-metrics %global common_desc %{expand: The OpenStack Oslo Metrics library. Oslo metrics API supports collecting metrics data from other Oslo libraries and exposing the metrics data to monitoring system.} Name: python-oslo-metrics Version: 0.15.1 Release: %autorelease Summary: OpenStack Oslo Metrics library License: Apache-2.0 URL: https://opendev.org/openstack/oslo.metrics Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name_under}-%{version}.tar.gz %if 0%{?sources_gpg} == 1 Source101: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name_under}-%{version}.tar.gz.asc Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt %endif BuildArch: noarch BuildRequires: git-core BuildRequires: python3-devel # Required for tarball sources verification %if 0%{?sources_gpg} == 1 BuildRequires: /usr/bin/gpgv2 %endif %package -n python3-%{pkg_name} Summary: OpenStack Oslo Metrics library %description -n python3-%{pkg_name} %{common_desc} %if 0%{?with_doc} %package -n python-%{pkg_name}-doc Summary: Documentation for the Oslo Metrics library Group: Documentation %description -n python-%{pkg_name}-doc Documentation for the Oslo Metrics library. %endif %package -n python3-%{pkg_name}-tests Summary: Tests for the Oslo Metrics library Requires: python3-%{pkg_name} = %{version}-%{release} Requires: python3-oslotest %description -n python3-%{pkg_name}-tests Tests for the Oslo Metrics library. %description %{common_desc} %prep # Required for tarball sources verification %if 0%{?sources_gpg} == 1 %{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0} %endif %autosetup -n %{pypi_name_under}-%{version} -S git sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini #sed -i "s/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/" tox.ini #sed -i /^minversion.*/d tox.ini #sed -i /^requires.*virtualenv.*/d tox.ini sed -i '/sphinx-build/ s/-W//' tox.ini sed -i \ -e "/^coverage[[:space:]]*[><=]/d" \ -e "/^reno[[:space:]]*[><=]/d" \ test-requirements.txt doc/requirements.txt %generate_buildrequires %if 0%{?with_doc} %pyproject_buildrequires -t -e %{default_toxenv},docs %else %pyproject_buildrequires -t -e %{default_toxenv} %endif %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 %{pypi_name_under} %check %tox -e %{default_toxenv} %files -n python3-%{pkg_name} -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/oslo-metrics %exclude %{python3_sitelib}/oslo_metrics/tests/ %if 0%{?with_doc} %files -n python-%{pkg_name}-doc %license LICENSE %doc doc/build/html %endif %files -n python3-%{pkg_name}-tests %{python3_sitelib}/oslo_metrics/tests/ %changelog ## START: Generated by rpmautospec * Wed Apr 15 2026 Steve Traylen - 0.15.1-1 - Update to 0.15.1 * Thu Apr 02 2026 Steve Traylen - 0.15.0-1 - Release 0.15.0 * Sat Jan 17 2026 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Nov 14 2025 Hirotaka Wakabayashi - 0.13.0-1 - Update 0.13.0 * Fri Sep 19 2025 Python Maint - 0.8.0-10 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 29 2025 Hirotaka Wakabayashi - 0.8.0-9 - Migrate old macros * Fri Aug 15 2025 Python Maint - 0.8.0-8 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 0.8.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Wed Jun 11 2025 Python Maint - 0.8.0-6 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Oct 25 2024 Charalampos Stratakis - 0.8.0-4 - Utilize unittest instead of the removed setup.py test command - Fixes: rhbz#2319687 * Wed Jul 24 2024 Miroslav Suchý - 0.8.0-3 - convert ASL 2.0 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jul 13 2024 Hirotaka Wakabayashi - 0.8.0-1 - Updates 0.8.0 * Sat Jul 13 2024 Python Maint - 0.7.0-4 - Rebuilt for Python 3.13 * Mon Feb 19 2024 Hirotaka Wakabayashi - 0.7.0-3 - Updates to 0.7.0 * Mon Feb 19 2024 Hirotaka Wakabayashi - 0.7.0-2 - Updates to 0.7.0 * Mon Feb 19 2024 Hirotaka Wakabayashi - 0.7.0-1 - Updates 0.7.0 * Fri Jan 26 2024 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Feb 24 2023 Hirotaka Wakabayashi - 0.6.0-1 - Updates to 0.6.0 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 16 2022 Hirotaka Wakabayashi - 0.5.0-2 - Fixes issues on the packaging guidelines * Fri Nov 11 2022 Hirotaka Wakabayashi - 0.5.0-1 - Initial import (fedora#2009146). ## END: Generated by rpmautospec