Version bump and switch to pyproject-rpm-macros
This commit is contained in:
parent
bf1fd21099
commit
7d410970a1
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@
|
||||
/google-api-python-client-1.10.1.tar.gz
|
||||
/google-api-python-client-1.11.0.tar.gz
|
||||
/google-api-python-client-1.12.1.tar.gz
|
||||
/google-api-python-client-2.27.0.tar.gz
|
||||
|
@ -6,36 +6,24 @@
|
||||
Name: google-api-python-client
|
||||
Summary: %{sum}
|
||||
Epoch: 2
|
||||
Version: 1.6.7
|
||||
Release: 16%{?dist}
|
||||
Version: 2.27.0
|
||||
Release: 1%{?dist}
|
||||
|
||||
License: ASL 2.0
|
||||
URL: http://github.com/googleapis/%{name}/
|
||||
URL: https://github.com/googleapis/%{name}/
|
||||
Source0: https://github.com/googleapis/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
|
||||
%description
|
||||
Written by Google, this library provides a small, flexible, and powerful
|
||||
Python client library for accessing Google APIs.
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
BuildRequires: python3-devel >= 3.3
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-httplib2 >= 0.9.2
|
||||
BuildRequires: python3-oauth2client >= 2.0.0
|
||||
BuildRequires: python3-uritemplate >= 3.0.0
|
||||
BuildRequires: python3-six >= 1.6.1
|
||||
|
||||
Requires: python3-httplib2 >= 0.9.2
|
||||
Requires: python3-oauth2client >= 2.0.0
|
||||
Requires: python3-uritemplate >= 3.0.0
|
||||
Requires: python3-six >= 1.6.1
|
||||
Requires: python3-google-api-core
|
||||
Requires: python3-google-auth-httplib2 >= 0.0.3
|
||||
|
||||
%description -n python3-%{srcname}
|
||||
Written by Google, this library provides a small, flexible, and powerful
|
||||
@ -44,33 +32,24 @@ Python 3 client library for accessing Google APIs.
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
# remove unusable google-api-client requires
|
||||
sed -i /google-api-core/d setup.py
|
||||
|
||||
# remove egg info
|
||||
rm -rf google_api_python_client.egg-info
|
||||
|
||||
# remove shebang without touching timestamp
|
||||
for lib in googleapiclient/*.py; do
|
||||
sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new &&
|
||||
touch -r $lib $lib.new &&
|
||||
mv $lib.new $lib
|
||||
done
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r
|
||||
|
||||
%build
|
||||
%{py3_build}
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%{py3_install}
|
||||
%pyproject_install
|
||||
%pyproject_save_files googleapiclient apiclient
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python3_sitelib}/apiclient/
|
||||
%{python3_sitelib}/googleapiclient/
|
||||
%{python3_sitelib}/google_api_python_client-%{version}-py%{python3_version}.egg-info/
|
||||
|
||||
%changelog
|
||||
* Mon Oct 25 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2:2.27.0-1
|
||||
- Version bump and switch to pyproject-rpm-macros
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.6.7-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
1
sources
1
sources
@ -1 +1,2 @@
|
||||
SHA512 (google-api-python-client-1.6.7.tar.gz) = c5495de5b13559f63eca78fa8cb18e8f67b108c3d5e09a393bea0657d3203e73b9cfbd43d9e2e519650e7aa5067ee3856f268136d1a91f44aa137d4c4f411ec4
|
||||
SHA512 (google-api-python-client-2.27.0.tar.gz) = 7486cb120ca726a7ba57e8629e6e369c49d1de4459986c1458d087fd1c01be2979ac0d30697d50adbb1ff67c0d262e68bb17c7f43e1148db62d04b7befe3af2f
|
||||
|
Loading…
Reference in New Issue
Block a user