## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 2.3.0. F35's protobuf is too old. # tests are enabled by default %bcond_without tests %global srcname google-cloud-core %global forgeurl https://github.com/googleapis/python-cloud-core Version: 2.3.2 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Core Helpers for Google Cloud Python Client Library License: ASL 2.0 URL: %forgeurl Source0: %forgesource BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: This library is not meant to stand-alone. Instead it defines common helpers (e.g. base Client classes) used by all of the google-cloud-* packages.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} # Build the grpc extras subpackage. %pyproject_extras_subpkg -n python3-%{srcname} grpc %prep %forgeautosetup -p0 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files google %if %{with tests} %check # Work around an usual pytest/PEP 420 issue where pytest can't import the # installed module. Thanks to mhroncok for the help! mv google{,_} %pytest --disable-warnings tests/unit mv google{_,} %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc *.rst *.md %{python3_sitelib}/google_cloud_core-%{version}-py%{python3_version}-nspkg.pth %changelog * Fri Jan 20 2023 Fedora Release Engineering 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 27 2022 Major Hayden 2.3.2-1 - Update to 2.3.2 rhbz#2108131 * Fri Jul 22 2022 Fedora Release Engineering 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint 2.3.1-2 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Major Hayden 2.3.1-1 - Update to 2.3.1 * Mon Apr 11 2022 Major Hayden 2.3.0-1 - 🚀 Update to 2.3.0 * Tue Mar 08 2022 Major Hayden 2.2.3-1 - Update to 2.2.3 * Fri Jan 21 2022 Fedora Release Engineering 2.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 19 2022 Major Hayden 2.2.2-1 - Update to 2.2.2 * Wed Nov 10 2021 Major Hayden 2.2.1-1 - Update to 2.2.1 * Tue Nov 09 2021 Major Hayden 2.2.0-1 - Update to 2.2.0 * Wed Oct 06 2021 Major Hayden 2.1.0-1 - Update to 2.1.0 * Fri Sep 17 2021 Major Hayden 2.0.0-4 - Fix tests with PEP 420 workaround * Thu Sep 09 2021 Major Hayden 2.0.0-3 - Move to rpmautospec * Mon Aug 23 2021 Major Hayden 2.0.0-2 - Add SECURITY.md to docs * Mon Aug 23 2021 Major Hayden 2.0.0-1 - Update to 2.0.0 * Mon Aug 02 2021 Major Hayden 1.7.2-1 - Update to 1.7.2 * Tue Jul 27 2021 Major Hayden 1.7.1-1 - Initial import (#1982680)