summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 07:38:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 07:38:29 +0000
commit75502a95dd5df3afc477f6aa1794ec4aa9011049 (patch)
treea96da86604397255bb8b89dbdfa2ba9be1b66087
parent3cc0c49af9e3031c4d810a65c406063ce978afc4 (diff)
automatic import of python-google-oauth2-tool
-rw-r--r--.gitignore1
-rw-r--r--python-google-oauth2-tool.spec100
-rw-r--r--sources1
3 files changed, 102 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..00cfd76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/google-oauth2-tool-0.0.3.tar.gz
diff --git a/python-google-oauth2-tool.spec b/python-google-oauth2-tool.spec
new file mode 100644
index 0000000..e1a8824
--- /dev/null
+++ b/python-google-oauth2-tool.spec
@@ -0,0 +1,100 @@
+%global _empty_manifest_terminate_build 0
+Name: python-google-oauth2-tool
+Version: 0.0.3
+Release: 1
+Summary: Create OAuth2 key file from OAuth2 client id file
+License: BSD
+URL: https://github.com/dlancer/google-oauth2-tool
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/8d/ee42602edb49872ced3a50b55fc649d74ab1661ade923b677c101c63bb31/google-oauth2-tool-0.0.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-cachetools
+Requires: python3-google-api-python-client
+Requires: python3-google-auth
+Requires: python3-google-auth-httplib2
+Requires: python3-httplib2
+Requires: python3-oauth2client
+Requires: python3-pyasn1
+Requires: python3-pyasn1-modules
+Requires: python3-rsa
+Requires: python3-six
+Requires: python3-uritemplate
+Requires: python3-atomicwrites
+Requires: python3-attrs
+Requires: python3-coverage
+Requires: python3-entrypoints
+Requires: python3-flake8
+Requires: python3-isort
+Requires: python3-mccabe
+Requires: python3-more-itertools
+Requires: python3-pluggy
+Requires: python3-py
+Requires: python3-pycodestyle
+Requires: python3-pyflakes
+Requires: python3-pygments
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-six
+Requires: python3-v
+
+%description
+Simple wrapper for oauth2client.tools module.
+
+%package -n python3-google-oauth2-tool
+Summary: Create OAuth2 key file from OAuth2 client id file
+Provides: python-google-oauth2-tool
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-google-oauth2-tool
+Simple wrapper for oauth2client.tools module.
+
+%package help
+Summary: Development documents and examples for google-oauth2-tool
+Provides: python3-google-oauth2-tool-doc
+%description help
+Simple wrapper for oauth2client.tools module.
+
+%prep
+%autosetup -n google-oauth2-tool-0.0.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-google-oauth2-tool -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..12ec156
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+98cc257d4ccb33354b43c35b2178fb9e google-oauth2-tool-0.0.3.tar.gz