From 2b0c17f5975e6064560fb789ec72435dab5c43b7 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Jun 05 2020 09:33:43 +0000 Subject: First import --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13a1578 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/google-api-core-1.17.0.tar.gz +/google-api-core-1.19.0.tar.gz diff --git a/python-google-api-core.spec b/python-google-api-core.spec new file mode 100644 index 0000000..c1787d2 --- /dev/null +++ b/python-google-api-core.spec @@ -0,0 +1,74 @@ +%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.19.0 +Release: 1%{?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 +PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib}/ pytest-%{python3_version} + + +%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 +* Fri Jun 05 2020 Mohamed El Morabity - 1.19.0-1 +- Update to 1.19.0 + +* Sat May 23 2020 Mohamed El Morabity - 1.17.0-1 +- Initial RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..4f93e3a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (google-api-core-1.19.0.tar.gz) = 1e05595c444045ddca94645a3c9157e1fc34d948dd313f4061515ece25cca00df1b3d222c68bfac12dcd4c95c057c2ae81c9dbbbae86166ce4b3d00ea62fcb90