From 3f00e870c248cd2a4ce0876587b7fc8e904debe4 Mon Sep 17 00:00:00 2001 From: tigro Date: Thu, 26 Dec 2024 14:10:17 +0300 Subject: [PATCH] import python-googleapis-common-protos-1.63.0-7.el10 --- .gitignore | 1 + .python-googleapis-common-protos.metadata | 1 + SOURCES/212.patch | 22 ++++ SPECS/python-googleapis-common-protos.spec | 125 +++++++++++++++++++++ 4 files changed, 149 insertions(+) create mode 100644 .gitignore create mode 100644 .python-googleapis-common-protos.metadata create mode 100644 SOURCES/212.patch create mode 100644 SPECS/python-googleapis-common-protos.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..95de638 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-api-common-protos-1.63.0.tar.gz diff --git a/.python-googleapis-common-protos.metadata b/.python-googleapis-common-protos.metadata new file mode 100644 index 0000000..5f6433d --- /dev/null +++ b/.python-googleapis-common-protos.metadata @@ -0,0 +1 @@ +5c4d7e336c86173963d965208e98963f2cdf69da SOURCES/python-api-common-protos-1.63.0.tar.gz diff --git a/SOURCES/212.patch b/SOURCES/212.patch new file mode 100644 index 0000000..770ea13 --- /dev/null +++ b/SOURCES/212.patch @@ -0,0 +1,22 @@ +From eed0a44aa3ac6b7bd88d7091ffe815876e558d27 Mon Sep 17 00:00:00 2001 +From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> +Date: Tue, 26 Mar 2024 09:24:03 +0100 +Subject: [PATCH] build: increase upper limit for protobuf 5.X versions + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 772e26b..ec17bb4 100644 +--- a/setup.py ++++ b/setup.py +@@ -24,7 +24,7 @@ + version = "1.63.0" + release_status = "Development Status :: 5 - Production/Stable" + dependencies = [ +- "protobuf>=3.19.5,<5.0.0.dev0,!=3.20.0,!=3.20.1,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", ++ "protobuf>=3.19.5,<6.0.0.dev0,!=3.20.0,!=3.20.1,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", + ] + + extras_require = {"grpc": ["grpcio >= 1.44.0, <2.0.0.dev0"]} diff --git a/SPECS/python-googleapis-common-protos.spec b/SPECS/python-googleapis-common-protos.spec new file mode 100644 index 0000000..86fa42b --- /dev/null +++ b/SPECS/python-googleapis-common-protos.spec @@ -0,0 +1,125 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 7; + 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_with bootstrap + +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 + +# fix: increase upper limit for protobuf 5.X versions +# https://github.com/googleapis/python-api-common-protos/pull/212 +Patch: %{url}/pull/212.patch + +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} -p1 + + +%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 +* Thu Dec 26 2024 Arkady L. Shane - 1.63.0-7 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Sep 09 2024 Jonathan Wright - 1.63.0-7 +- update bootstrap macro + +* 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