## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 %bcond tests 1 # When bootstrapping, we do not include the “grpc” extra in the BR’s. That adds # a BR on python3dist(grpcio), but this package is required by # python3dist(grpcio-status), which creates a circular dependency with grpc. %bcond bootstrap 0 Name: python-googleapis-common-protos Version: 1.63.0 Release: %autorelease Summary: Common protobufs used in Google APIs License: Apache-2.0 URL: https://github.com/googleapis/python-api-common-protos Source: %{url}/archive/v%{version}/python-api-common-protos-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global common_description %{expand: %{summary}.} %description %{common_description} %package -n python3-googleapis-common-protos Summary: %{summary} %description -n python3-googleapis-common-protos %{common_description} %pyproject_extras_subpkg -n python3-googleapis-common-protos grpc %prep %autosetup -n python-api-common-protos-%{version} %generate_buildrequires %pyproject_buildrequires %{?!with_bootstrap:-x grpc} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l google %check %if %{with tests} # NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces. # Thanks to churchyard for the fix. PYTHONUSERBASE=%{buildroot}%{_prefix} \ %pytest tests/unit %endif %files -n python3-googleapis-common-protos -f %{pyproject_files} %doc CHANGELOG.md %doc README.rst %changelog ## START: Generated by rpmautospec * Mon Mar 11 2024 Packit - 1.63.0-1 - [packit] 1.63.0 upstream release - Resolves rhbz#2269000 * Sun Dec 17 2023 Benjamin A. Beasley - 1.62.0-7 - Assert that %%pyproject_files contains a license file * Sun Dec 17 2023 Benjamin A. Beasley - 1.62.0-5 - Stop packaging CONTRIBUTING.md and CODE_OF_CONDUCT.md * Sun Dec 17 2023 Benjamin A. Beasley - 1.62.0-4 - Reduce macro indirection in the spec file - Drop the forge macros; they worked well but did not meaninggfully simplify packaging * Sun Dec 17 2023 Benjamin A. Beasley - 1.62.0-3 - Use new (rpm 4.17.1+) bcond style * Wed Dec 13 2023 Major Hayden - 1.62.0-2 - Skip import check, remove nspkg file * Thu Dec 07 2023 Packit - 1.62.0-1 - [packit] 1.62.0 upstream release - Resolves rhbz#2253511 * Mon Oct 23 2023 Major Hayden - 1.61.0-2 - Update packit config * Thu Oct 12 2023 Packit - 1.61.0-1 - [packit] 1.61.0 upstream release * Tue Aug 01 2023 Major Hayden - 1.60.0-2 - Add packit config * Tue Aug 01 2023 Major Hayden - 1.60.0-1 - Update to 1.60.0 * Fri Jul 21 2023 Fedora Release Engineering - 1.59.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.59.1-3 - Rebuilt for Python 3.12 * Thu Jun 15 2023 Python Maint - 1.59.1-2 - Bootstrap for Python 3.12 * Tue Jun 13 2023 Major Hayden - 1.59.1-1 - Update to 1.59.1 rhbz#2214403 * Tue Mar 21 2023 Benjamin A. Beasley - 1.59.0-1 - Update to 1.59.0 (close RHBZ#2180489) * Tue Feb 21 2023 Major Hayden - 1.58.0-1 - Update to 1.58.0 rhbz#2143044 * Fri Jan 20 2023 Fedora Release Engineering - 1.56.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 29 2022 Benjamin A. Beasley - 1.56.4-3 - Update License to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 1.56.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 12 2022 Major Hayden - 1.56.4-1 - Update to 1.56.4 rhbz#2106455 * Tue Jun 21 2022 Benjamin A. Beasley - 1.56.3-1 - Update to 1.56.3 (close RHBZ#2099834) * Thu Jun 16 2022 Python Maint - 1.56.2-3 - Rebuilt for Python 3.11 * Wed Jun 15 2022 Python Maint - 1.56.2-2 - Bootstrap for Python 3.11 * Fri May 27 2022 Major Hayden - 1.56.2-1 - Update to 1.56.2 * Fri May 13 2022 Benjamin A. Beasley - 1.56.1-2 - Add spec file notes about updating python-xds-protos * Fri May 13 2022 Major Hayden - 1.56.1-1 - Update to 1.56.1 * Fri Mar 18 2022 Benjamin A. Beasley - 1.56.0-1 - Update to 1.56.0 (close RHBZ#2065457) * Wed Feb 23 2022 Benjamin A. Beasley - 1.55.0-1 - Update to 1.55.0 (close RHBZ#2057586) * Fri Jan 21 2022 Fedora Release Engineering - 1.54.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 08 2021 Benjamin A. Beasley - 1.54.0-1 - Update to 1.54.0 (close RHBZ#2030075) * Wed Nov 03 2021 Benjamin A. Beasley - 1.53.0-15 - Express %%%%generate_buildrequires more concisely * Wed Nov 03 2021 Benjamin A. Beasley - 1.53.0-14 - Use the new %%%%pyproject_check_import macro * Tue Sep 14 2021 Benjamin A. Beasley - 1.53.0-13 - Let pyproject-rpm-macros handle the license file * Tue Sep 14 2021 Benjamin A. Beasley - 1.53.0-12 - Reduce macro indirection in the spec file * Sun Sep 12 2021 Benjamin A. Beasley - 1.53.0-11 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * Wed Jul 28 2021 Benjamin A. Beasley - 1.53.0-10 - Move %%generate_buildrequires after %%prep to make the spec file easier to follow * Thu Jul 08 2021 Benjamin A. Beasley - 1.53.0-4 - Drop version conditional; maintain the existing practice of cherry-picking updates to stable branches rather than merging * Thu Jul 08 2021 Benjamin A. Beasley - 1.53.0-3 - Tweak how the description macro is written - Drop obsolete python_provide macro - Switch to pyproject-rpm-macros - Add the metapackage for the “grpc” extra - Add a check section that “smoke-tests” imports * Fri Jun 04 2021 Python Maint - 1.53.0-2 - Rebuilt for Python 3.10 * Sun Mar 21 2021 Mohamed El Morabity - 1.53.0-1 - Update to 1.53.0 * Wed Jan 27 2021 Fedora Release Engineering - 1.52.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.52.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 18 2020 Mohamed El Morabity - 1.52.0-1 - Update to 1.52.0 * Sun May 31 2020 Mohamed El Morabity - 1.51.0-2 - Rebuild for Python 3.9 * Fri May 29 2020 Mohamed El Morabity - 1.51.0-1 - Initial RPM release ## END: Generated by rpmautospec