Blame SPECS/python-googleapis-common-protos.spec

1df743
%bcond tests 1
1df743
1df743
# When bootstrapping, we do not include the “grpc” extra in the BR’s. That adds
1df743
# a BR on python3dist(grpcio), but this package is required by
1df743
# python3dist(grpcio-status), which creates a circular dependency with grpc.
1df743
%bcond_without bootstrap
1df743
1df743
Name:           python-googleapis-common-protos
1df743
Version:        1.63.0
1df743
Release:        9%{?dist}
1df743
Summary:        Common protobufs used in Google APIs
1df743
1df743
License:        Apache-2.0
1df743
URL:            https://github.com/googleapis/python-api-common-protos
1df743
Source:         %{url}/archive/v%{version}/python-api-common-protos-%{version}.tar.gz
1df743
1df743
# fix: increase upper limit for protobuf 5.X versions
1df743
# https://github.com/googleapis/python-api-common-protos/pull/212
1df743
Patch:          %{url}/pull/212.patch
1df743
1df743
BuildArch:      noarch
1df743
1df743
BuildRequires:  python3-devel
1df743
1df743
%if %{with tests}
1df743
BuildRequires:  python3dist(pytest)
1df743
%endif
1df743
1df743
%global common_description %{expand:
1df743
%{summary}.}
1df743
1df743
%description %{common_description}
1df743
1df743
1df743
%package -n python3-googleapis-common-protos
1df743
Summary:        %{summary}
1df743
1df743
%description -n python3-googleapis-common-protos %{common_description}
1df743
1df743
1df743
%pyproject_extras_subpkg -n python3-googleapis-common-protos grpc
1df743
1df743
1df743
%prep
1df743
%autosetup -n python-api-common-protos-%{version} -p1
1df743
1df743
1df743
%generate_buildrequires
1df743
%pyproject_buildrequires %{?!with_bootstrap:-x grpc}
1df743
1df743
1df743
%build
1df743
%pyproject_wheel
1df743
1df743
1df743
%install
1df743
%pyproject_install
1df743
%pyproject_save_files -l google
1df743
1df743
1df743
%check
1df743
%if %{with tests}
1df743
# NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces.
1df743
# Thanks to churchyard for the fix.
1df743
PYTHONUSERBASE=%{buildroot}%{_prefix} \
1df743
    %pytest tests/unit
1df743
%endif
1df743
1df743
1df743
%files -n python3-googleapis-common-protos -f %{pyproject_files}
1df743
%doc CHANGELOG.md
1df743
%doc README.rst
1df743
1df743
1df743
%changelog
1df743
* Wed Feb 05 2025 Joel Capitao <jcapitao@redhat.com> - 1.63.0-9
1df743
- Enable bootstrap flag
1df743
1df743
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.63.0-8
1df743
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
1df743
1df743
* Mon Sep 09 2024 Jonathan Wright <jonathan@almalinux.org> - 1.63.0-7
1df743
- update bootstrap macro
1df743
1df743
* Thu Jul 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.53.0-4
1df743
- Drop version conditional; maintain the existing practice of cherry-picking
1df743
  updates to stable branches rather than merging
1df743
1df743
* Thu Jul 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.53.0-3
1df743
- Tweak how the description macro is written
1df743
- Drop obsolete python_provide macro
1df743
- Switch to pyproject-rpm-macros
1df743
- Add the metapackage for the “grpc” extra
1df743
- Add a check section that “smoke-tests” imports
1df743
1df743
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.53.0-2
1df743
- Rebuilt for Python 3.10
1df743
1df743
* Sun Mar 21 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.53.0-1
1df743
- Update to 1.53.0
1df743
1df743
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.52.0-3
1df743
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1df743
1df743
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.52.0-2
1df743
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1df743
1df743
* Thu Jun 18 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.52.0-1
1df743
- Update to 1.52.0
1df743
1df743
* Sun May 31 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.51.0-2
1df743
- Rebuild for Python 3.9
1df743
1df743
* Fri May 29 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.51.0-1
1df743
- Initial RPM release