summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 08:33:31 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 08:33:31 +0000
commit2752855752102ef9b12fab11f47824954ca79122 (patch)
treed7299af3d1962aa3f0d74afe994ef7180538391d
parent9ffc59f626ed88500da98a938c521d33281b57ed (diff)
automatic import of python-gspread
-rw-r--r--.gitignore1
-rw-r--r--python-gspread.spec86
-rw-r--r--sources1
3 files changed, 88 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f25c837 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gspread-5.8.0.tar.gz
diff --git a/python-gspread.spec b/python-gspread.spec
new file mode 100644
index 0000000..022bdef
--- /dev/null
+++ b/python-gspread.spec
@@ -0,0 +1,86 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gspread
+Version: 5.8.0
+Release: 1
+Summary: Google Spreadsheets Python API
+License: MIT
+URL: https://github.com/burnash/gspread
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/32/da/d7f820b7efd943d740861d4403ccedee9376811548efb199b086753037ed/gspread-5.8.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-google-auth
+Requires: python3-google-auth-oauthlib
+
+%description
+* Google Sheets API v4.
+* Open a spreadsheet by title, key or url.
+* Read, write, and format cell ranges.
+* Sharing and access control.
+* Batching updates.
+
+%package -n python3-gspread
+Summary: Google Spreadsheets Python API
+Provides: python-gspread
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gspread
+* Google Sheets API v4.
+* Open a spreadsheet by title, key or url.
+* Read, write, and format cell ranges.
+* Sharing and access control.
+* Batching updates.
+
+%package help
+Summary: Development documents and examples for gspread
+Provides: python3-gspread-doc
+%description help
+* Google Sheets API v4.
+* Open a spreadsheet by title, key or url.
+* Read, write, and format cell ranges.
+* Sharing and access control.
+* Batching updates.
+
+%prep
+%autosetup -n gspread-5.8.0
+
+%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-gspread -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 5.8.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e9cc8f9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2b3f2339ea64b670c95aa088e3da6f18 gspread-5.8.0.tar.gz