|
rdobuilder |
fc8213 |
## START: Set by rpmautospec
|
|
rdobuilder |
fc8213 |
## (rpmautospec version 0.2.5)
|
|
rdobuilder |
fc8213 |
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
|
|
rdobuilder |
fc8213 |
release_number = 3;
|
|
rdobuilder |
fc8213 |
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
rdobuilder |
fc8213 |
print(release_number + base_release_number - 1);
|
|
rdobuilder |
fc8213 |
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
|
|
rdobuilder |
fc8213 |
## END: Set by rpmautospec
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
%bcond_with tests
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
%global srcname google-api-core
|
|
rdobuilder |
fc8213 |
%global forgeurl https://github.com/googleapis/python-api-core
|
|
rdobuilder |
fc8213 |
Version: 2.0.1
|
|
rdobuilder |
fc8213 |
%global tag v%{version}
|
|
rdobuilder |
fc8213 |
%forgemeta
|
|
|
b00c4f |
|
|
|
b00c4f |
Name: python-%{srcname}
|
|
rdobuilder |
fc8213 |
Release: %autorelease
|
|
|
b00c4f |
Summary: Core Library for Google Client Libraries
|
|
|
b00c4f |
|
|
|
b00c4f |
License: ASL 2.0
|
|
rdobuilder |
fc8213 |
URL: %forgeurl
|
|
rdobuilder |
fc8213 |
Source0: %{url}/archive/%{tag}.tar.gz#/python-api-core-%{version}.tar.gz
|
|
rdobuilder |
fc8213 |
Patch0: use-unittest-mock-builtin.patch
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
BuildRequires: pyproject-rpm-macros
|
|
|
b00c4f |
BuildRequires: python3-devel
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
%if %{with tests}
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(google-auth)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(googleapis-common-protos)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(grpcio)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(grpcio-gcp)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(protobuf)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(proto-plus)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(pytest)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(pytz)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(requests)
|
|
rdobuilder |
fc8213 |
BuildRequires: python3dist(six)
|
|
rdobuilder |
fc8213 |
%endif
|
|
|
b00c4f |
BuildArch: noarch
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
%global _description %{expand:This library is not meant to stand-alone.
|
|
rdobuilder |
fc8213 |
Instead it defines common helpers used by all Google API clients.}
|
|
rdobuilder |
fc8213 |
|
|
|
b00c4f |
%description
|
|
|
b00c4f |
%{_description}
|
|
|
b00c4f |
|
|
|
b00c4f |
|
|
|
b00c4f |
%package -n python3-%{srcname}
|
|
|
b00c4f |
Summary: %{summary}
|
|
|
b00c4f |
# Extras
|
|
|
b00c4f |
Requires: %{py3_dist grpcio}
|
|
|
b00c4f |
Requires: %{py3_dist grpcio-gcp}
|
|
|
b00c4f |
|
|
|
b00c4f |
%description -n python3-%{srcname}
|
|
|
b00c4f |
%{_description}
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
%pyproject_extras_subpkg -n python3-%{srcname} grpc
|
|
rdobuilder |
fc8213 |
%pyproject_extras_subpkg -n python3-%{srcname} grpcgcp
|
|
rdobuilder |
fc8213 |
%pyproject_extras_subpkg -n python3-%{srcname} grpcio-gcp
|
|
|
b00c4f |
|
|
|
b00c4f |
%prep
|
|
rdobuilder |
fc8213 |
%forgesetup
|
|
rdobuilder |
fc8213 |
%patch0 -p0
|
|
rdobuilder |
fc8213 |
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
%generate_buildrequires
|
|
rdobuilder |
fc8213 |
%pyproject_buildrequires -r
|
|
|
b00c4f |
|
|
|
b00c4f |
|
|
|
b00c4f |
%build
|
|
rdobuilder |
fc8213 |
%pyproject_wheel
|
|
|
b00c4f |
|
|
|
b00c4f |
|
|
|
b00c4f |
%install
|
|
rdobuilder |
fc8213 |
%pyproject_install
|
|
rdobuilder |
fc8213 |
%pyproject_save_files google
|
|
|
b00c4f |
|
|
|
b00c4f |
|
|
|
b00c4f |
%check
|
|
rdobuilder |
fc8213 |
%if %{with tests}
|
|
rdobuilder |
fc8213 |
# Work around an usual pytest/PEP 420 issue where pytest can't import the
|
|
rdobuilder |
fc8213 |
# installed module. Thanks to mhroncok for the help!
|
|
rdobuilder |
fc8213 |
mv google{,_}
|
|
rdobuilder |
fc8213 |
%pytest --disable-warnings tests/unit
|
|
rdobuilder |
fc8213 |
mv google{_,}
|
|
rdobuilder |
fc8213 |
%endif
|
|
|
b00c4f |
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
fc8213 |
%doc README.rst CHANGELOG.md SECURITY.md
|
|
|
b00c4f |
%license LICENSE
|
|
rdobuilder |
fc8213 |
%{python3_sitelib}/google_api_core-%{version}-py%{python3_version}-nspkg.pth
|
|
|
b00c4f |
|
|
|
b00c4f |
|
|
|
b00c4f |
%changelog
|
|
rdobuilder |
fc8213 |
* Fri Sep 17 2021 Major Hayden <major@mhtx.net> 2.0.1-3
|
|
rdobuilder |
fc8213 |
- Fix tests with PEP 420 workaround
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Thu Sep 09 2021 Major Hayden <major@mhtx.net> 2.0.1-2
|
|
rdobuilder |
fc8213 |
- Move to rpmautospec
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Wed Sep 01 2021 Major Hayden <major@mhtx.net> 2.0.1-1
|
|
rdobuilder |
fc8213 |
- Update to 2.0.1
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Mon Aug 23 2021 Major Hayden <major@mhtx.net> 2.0.0-2
|
|
rdobuilder |
fc8213 |
- Add proto-plus dependency for tests
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Mon Aug 23 2021 Major Hayden <major@mhtx.net> 2.0.0-1
|
|
rdobuilder |
fc8213 |
- Update to 2.0.0
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Tue Jul 27 2021 Major Hayden <major@mhtx.net> 1.31.1-2
|
|
rdobuilder |
fc8213 |
- Use correct path for extracted sources
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Tue Jul 27 2021 Major Hayden <major@mhtx.net> 1.31.1-1
|
|
rdobuilder |
fc8213 |
- Update to 1.31.1
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> 1.31.0-3
|
|
rdobuilder |
fc8213 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Thu Jul 15 2021 Major Hayden <major@mhtx.net> 1.31.0-2
|
|
rdobuilder |
fc8213 |
- Add grpc, grpcgcp, and grpcio-gcp extras packages
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Fri Jul 09 2021 Major Hayden <major@mhtx.net> 1.31.0-1
|
|
rdobuilder |
fc8213 |
- Update to 1.31.0
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Tue Jun 15 2021 Major Hayden <major@mhtx.net> 1.30.0-3
|
|
rdobuilder |
fc8213 |
- Get the right sources this time
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Tue Jun 15 2021 Major Hayden <major@mhtx.net> 1.30.0-2
|
|
rdobuilder |
fc8213 |
- Include patch in new sources
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Tue Jun 15 2021 Major Hayden <major@mhtx.net> 1.30.0-1
|
|
rdobuilder |
fc8213 |
- Update to v1.3.0
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> 1.29.0-2
|
|
rdobuilder |
fc8213 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Thu Jun 03 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.29.0-1
|
|
rdobuilder |
fc8213 |
- Update to 1.29.0
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> 1.17.0-3
|
|
|
b00c4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
* Mon Aug 17 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.17.0-2
|
|
|
b00c4f |
- Temporarily disable tests
|
|
|
b00c4f |
|
|
rdobuilder |
fc8213 |
* Thu Aug 13 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.17.0-1
|
|
rdobuilder |
fc8213 |
- Rebuild
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> 1.21.0-3
|
|
rdobuilder |
fc8213 |
- Second attempt - Rebuilt for
|
|
rdobuilder |
fc8213 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> 1.21.0-2
|
|
rdobuilder |
fc8213 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Fri Jun 19 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.21.0-1
|
|
rdobuilder |
fc8213 |
- Update to 1.21.0
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Fri Jun 05 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.17.0-1
|
|
rdobuilder |
fc8213 |
- Revert to 1.17.0 until grpc is updated
|
|
rdobuilder |
fc8213 |
|
|
rdobuilder |
fc8213 |
* Fri Jun 05 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.19.0-1
|
|
rdobuilder |
fc8213 |
- First import
|