## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 # F35: Do not update past 1.3.1. F35's protobuf is too old. # tests are enabled by default %bcond_without tests %global srcname google-cloud-testutils %global forgeurl https://github.com/googleapis/python-test-utils Version: 1.3.3 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Python test utilities for Google Cloud APIs License: Apache-2.0 URL: %forgeurl Source0: %forgesource BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: This is a collection of common tools used in system tests of Python client libraries for Google APIs.} %description %{_description} %package -n python3-%{srcname} %py_provides python3-test-utils Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %forgesetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files test_utils # Remove extra scripts and tests. rm -rf %{buildroot}%{python3_sitelib}/{scripts,tests} rm -f %{buildroot}%{_bindir}/lower-bound-checker %check %pyproject_check_import -e "tests*" %if %{with tests} # Lower bounds checking tests won't work since installing things via # pip is not going to work during RPM builds. %pytest --disable-warnings --ignore tests/unit/test_lower_bound_checker.py %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst CHANGELOG.md CODE_OF_CONDUCT.md %changelog * Wed Feb 22 2023 Major Hayden 1.3.3-4 - Set SPDX license * Fri Jan 20 2023 Fedora Release Engineering 1.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 1.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 12 2022 Major Hayden 1.3.3-1 - Update to 1.3.3 rhbz#2106404 * Mon Jun 13 2022 Python Maint 1.3.2-2 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Major Hayden 1.3.2-1 - Update to 1.3.1 * Wed Jun 01 2022 Major Hayden 1.3.1-3 - Disable lower bounds testing * Fri Jan 21 2022 Fedora Release Engineering 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Major Hayden 1.3.1-1 - Update to 1.3.1 * Mon Sep 13 2021 Major Hayden 1.1.0-1 - Initial commit (#1999311)