# 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 # The python-xds-protos overlays additional proto wrappers on top of those # provided by this package. This can be rather brittle in terms of file # conflicts, so it has an exact-version dependency on this package. # # Therefore, when updating this package, please adjust the # googleapis_common_protos_version macro in the python-xds-protos spec file and # rebuild it with the new version of this package (ideally in a side tag as a # multi-build update). While python-xds-protos automatically adapts itself to # the files provided by python-googlapis-common-priotos to a large extent, it # may rarely be necessary to adjust the %files list for python3-xds-protos as # well. %global srcname googleapis-common-protos %global forgeurl https://github.com/googleapis/python-api-common-protos/ Version: 1.56.4 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Common protobufs used in Google APIs License: ASL 2.0 URL: %forgeurl Source0: %forgesource BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: %{summary}.} %description %{common_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{common_description} %pyproject_extras_subpkg -n python3-%{srcname} grpc %prep %forgeautosetup %generate_buildrequires %pyproject_buildrequires -r %{?!with_bootstrap:-x grpc} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files google %check # Upstream has no tests. # # Note that google and google.logging are namespace packages. %pyproject_check_import %{?with_bootstrap:-e 'google.longrunning.*grpc*'} %files -n python3-%{srcname} -f %{pyproject_files} %doc CHANGELOG.md %doc CONTRIBUTING.md %doc CODE_OF_CONDUCT.md %doc README.rst %{python3_sitelib}/googleapis_common_protos-%{version}-py%{python3_version}-nspkg.pth %changelog %autochangelog