diff --git a/.python-google-api-core.metadata b/.python-google-api-core.metadata new file mode 100644 index 0000000..a24bc82 --- /dev/null +++ b/.python-google-api-core.metadata @@ -0,0 +1 @@ +45b028a5bfec5451b3d3e762ac9dad467f987f3b SOURCES/google-api-core-1.17.0.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..f638563 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-google-api-core + +The python-google-api-core package \ No newline at end of file diff --git a/SPECS/python-google-api-core.spec b/SPECS/python-google-api-core.spec new file mode 100644 index 0000000..e2d045e --- /dev/null +++ b/SPECS/python-google-api-core.spec @@ -0,0 +1,81 @@ +%global srcname google-api-core +%global _description %{expand:This library is not meant to stand-alone. Instead it defines common helpers used +by all Google API clients.} + +Name: python-%{srcname} +Version: 1.17.0 +Release: 3%{?dist} +Summary: Core Library for Google Client Libraries + +License: ASL 2.0 +URL: https://github.com/googleapis/python-api-core/ +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} +# Required for tests +BuildRequires: %{py3_dist google-auth} +BuildRequires: %{py3_dist googleapis-common-protos} +BuildRequires: %{py3_dist grpcio} +BuildRequires: %{py3_dist mock} +BuildRequires: %{py3_dist protobuf} +BuildRequires: %{py3_dist pytest} +BuildRequires: %{py3_dist pytz} +BuildRequires: %{py3_dist requests} +BuildRequires: %{py3_dist six} +BuildArch: noarch + +%description +%{_description} + + +%package -n python3-%{srcname} +Summary: %{summary} +# Extras +Requires: %{py3_dist grpcio} +Requires: %{py3_dist grpcio-gcp} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{_description} + + +%prep +%autosetup -n python-api-core-%{version} + +# Remove bundled egg-info +rm -rf *.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%check +# Python is unable to find google.api_core modules in Rawhide (with or without +# PYTHONPATH set). Tests are temporarily disabled +# PYTHONPATH=$RPM_BUILD_ROOT%%{python3_sitelib}/ pytest-%%{python3_version} -v + + +%files -n python3-%{srcname} +%doc CHANGELOG.md README.rst +%license LICENSE +%{python3_sitelib}/google/api_core/ +%{python3_sitelib}/google_api_core-*.egg-info/ +%{python3_sitelib}/google_api_core-*-nspkg.pth + + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.17.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Aug 17 2020 Mohamed El Morabity - 1.17.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild +- Temporarily disable tests + +* Fri Jun 05 2020 Mohamed El Morabity - 1.17.0-1 +- Initial RPM release