diff --git a/0001-Remove-version-restrictions.patch b/0001-Remove-version-restrictions.patch new file mode 100644 index 0000000..749fcb0 --- /dev/null +++ b/0001-Remove-version-restrictions.patch @@ -0,0 +1,25 @@ +From b19673c50201bf4a9fa0f3a4ca4dc642ee26e238 Mon Sep 17 00:00:00 2001 +From: root +Date: Mon, 27 Jun 2022 10:21:05 +0800 +Subject: [PATCH] Remove version restrictions + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index d03f117..6933829 100644 +--- a/setup.py ++++ b/setup.py +@@ -42,7 +42,7 @@ install_requires = [ + # NOTE: Maintainers, please do not require google-api-core>=2.x.x + # Until this issue is closed + # https://github.com/googleapis/google-cloud-python/issues/10566 +- "google-api-core >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", ++ "google-api-core >= 1.31.5, <3.0.0dev", + "uritemplate>=3.0.1,<5", + ] + +-- +2.33.0 + diff --git a/google-api-python-client-1.6.7.tar.gz b/google-api-python-client-1.6.7.tar.gz deleted file mode 100644 index 1b47e2f..0000000 Binary files a/google-api-python-client-1.6.7.tar.gz and /dev/null differ diff --git a/google-api-python-client-2.50.0.tar.gz b/google-api-python-client-2.50.0.tar.gz new file mode 100644 index 0000000..6a618c8 Binary files /dev/null and b/google-api-python-client-2.50.0.tar.gz differ diff --git a/google-api-python-client.spec b/google-api-python-client.spec index 218140e..7961a08 100644 --- a/google-api-python-client.spec +++ b/google-api-python-client.spec @@ -5,14 +5,15 @@ Name: google-api-python-client Summary: %{sum} -Epoch: 1 -Version: 1.6.7 -Release: 11 +Epoch: 2 +Version: 2.50.0 +Release: 1 License: ASL 2.0 -URL: http://github.com/google/%{name}/ -Source0: https://files.pythonhosted.org/packages/e0/91/0e6a42ea3e0898a75d819a9690c8c8d0eecd31275d8a85503c8fc33949f2/%{name}-%{version}.tar.gz +URL: https://github.com/googleapis/google-api-python-client +Source0: https://github.com/googleapis/google-api-python-client/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch +Patch0: 0001-Remove-version-restrictions.patch %description Written by Google, this library provides a small, flexible, and powerful @@ -28,6 +29,9 @@ BuildRequires: python3-httplib2 >= 0.9.2 BuildRequires: python3-oauth2client >= 2.0.0 BuildRequires: python3-uritemplate >= 3.0.0 BuildRequires: python3-six >= 1.6.1 +BuildRequires: python3dist(google-api-core) +BuildRequires: python3dist(google-auth) +BuildRequires: python3dist(google-auth-httplib2) Requires: python3-httplib2 >= 0.9.2 Requires: python3-oauth2client >= 2.0.0 @@ -40,6 +44,7 @@ Python 3 client library for accessing Google APIs. %prep %setup -q +%patch0 -p1 # remove egg info rm -rf google_api_python_client.egg-info @@ -59,11 +64,14 @@ done %files -n python3-%{srcname} %license LICENSE -%doc CHANGELOG +%doc CHANGELOG.md %{python3_sitelib}/apiclient/ %{python3_sitelib}/googleapiclient/ %{python3_sitelib}/google_api_python_client-%{version}-py%{python3_version}.egg-info/ %changelog +* Mon Jun 27 2022 jiangxinyu - 2:2.50.0-1 +- Upgrade to 2.50.0 + * Fri Oct 30 2020 jiangxinyu - 1:1.6.7-11 - Init google-api-python-client project diff --git a/google-api-python-client.yaml b/google-api-python-client.yaml new file mode 100644 index 0000000..ea4e60b --- /dev/null +++ b/google-api-python-client.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: googleapis/google-api-python-client +tag_prefix: "" +separator: "."