summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 13:05:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 13:05:44 +0000
commit8ddfaa0a49128aaf580df2e051d7459df121a03c (patch)
treeaa9c5ff5901f45f4d2384c15896a11c585df1af1
parent807b490d1c8e2574f37b6ff81d879afdf59313ab (diff)
automatic import of python-driveutilityopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-driveutility.spec282
-rw-r--r--sources1
3 files changed, 284 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0421619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DriveUtility-1.1.18.tar.gz
diff --git a/python-driveutility.spec b/python-driveutility.spec
new file mode 100644
index 0000000..dcfbbd0
--- /dev/null
+++ b/python-driveutility.spec
@@ -0,0 +1,282 @@
+%global _empty_manifest_terminate_build 0
+Name: python-DriveUtility
+Version: 1.1.18
+Release: 1
+Summary: Google Drive tool
+License: MIT
+URL: https://github.com/PeterGabaldon/DriveUtility
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b2/74/43bc106164ee65f76c9bb5a9972eef002c0960f15c4c77f56d4d3c19ea9d/DriveUtility-1.1.18.tar.gz
+BuildArch: noarch
+
+Requires: python3-oauth2client
+Requires: python3-httplib2
+Requires: python3-google-api-python-client
+
+%description
+# Google Drive Utility
+## What is Google Drive Utility?
+Google Drive Utility provides an easy way to use Google Drive from command line, tasks such as uploading files/folders, downloading them, moving folders/files. Additionally, using the provided .reg files it can be added to the Windows Context Menu, giving the opportunity of using it anywhere in an very easy and friendly way. It is written in Python 2.7. It is licensed under the MIT license, see LICENSE.
+
+# Installation
+## Download and installation
+You can download it with Pip:
+```
+pip install DriveUtilityity
+```
+
+# Usage
+## Command line utility
+Usage:
+```
+DriveUtil [Args]
+```
+or:
+```
+python -m DriveUtility [Args]
+```
+Available options are:
+```
+ -h, --help show this help message and exit
+ -u, --upload Path(s) [Path(s) ...]
+ Path of folder or file to upload.
+ -s, --specificf Path(s) [Path(s) ...]
+ Path of folder or file to upload to a specific folder.
+ -cr, --createf Creates a folder.
+ -re, --remove Remove access to Drive.
+ -l, --list List Drive files and folders.
+ -de, --delete Delete selected file or folder.
+ -g, --get [Path] Download file or folder. Optionally, you can specify a
+ path to downlaod there.
+ -m, --move Move file or folder.
+ -cb, --clean Clean bin.
+ -co, --copy Copy a file.
+ -se, --search Search by name.
+ -aS, --addS Star a file.
+ -rS, --removeS Remove star from an starred file.
+ -sL, --shareLink Enable share linking and get the share link.
+ -dS, --disableShare Disable link sharing.
+ -rn, --rename Rename item.
+```
+
+# Windows Context Menu
+## Adding it
+The provided python scripts, `addContext.py` and `removeContext.py` add new options to the Context Menu, making DriveUtility more flexible to use. These two scripts must be run with admin rights. You can use:
+```
+python -m DriveUtility.addContext
+```
+and
+```
+python -m DriveUtility.removeContext
+```
+from an elevetad Windows command prompt.
+
+![Context Menu](https://i.imgur.com/DKaWEFH.gif)
+
+# Examples
+`example.py` is a sample script. It will upload the contents of Test folder.
+
+# Contributing
+All pull requests and issues are welcome. I'm very thankful for any type of help, improvement or tests.
+
+
+
+
+
+
+
+%package -n python3-DriveUtility
+Summary: Google Drive tool
+Provides: python-DriveUtility
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-DriveUtility
+# Google Drive Utility
+## What is Google Drive Utility?
+Google Drive Utility provides an easy way to use Google Drive from command line, tasks such as uploading files/folders, downloading them, moving folders/files. Additionally, using the provided .reg files it can be added to the Windows Context Menu, giving the opportunity of using it anywhere in an very easy and friendly way. It is written in Python 2.7. It is licensed under the MIT license, see LICENSE.
+
+# Installation
+## Download and installation
+You can download it with Pip:
+```
+pip install DriveUtilityity
+```
+
+# Usage
+## Command line utility
+Usage:
+```
+DriveUtil [Args]
+```
+or:
+```
+python -m DriveUtility [Args]
+```
+Available options are:
+```
+ -h, --help show this help message and exit
+ -u, --upload Path(s) [Path(s) ...]
+ Path of folder or file to upload.
+ -s, --specificf Path(s) [Path(s) ...]
+ Path of folder or file to upload to a specific folder.
+ -cr, --createf Creates a folder.
+ -re, --remove Remove access to Drive.
+ -l, --list List Drive files and folders.
+ -de, --delete Delete selected file or folder.
+ -g, --get [Path] Download file or folder. Optionally, you can specify a
+ path to downlaod there.
+ -m, --move Move file or folder.
+ -cb, --clean Clean bin.
+ -co, --copy Copy a file.
+ -se, --search Search by name.
+ -aS, --addS Star a file.
+ -rS, --removeS Remove star from an starred file.
+ -sL, --shareLink Enable share linking and get the share link.
+ -dS, --disableShare Disable link sharing.
+ -rn, --rename Rename item.
+```
+
+# Windows Context Menu
+## Adding it
+The provided python scripts, `addContext.py` and `removeContext.py` add new options to the Context Menu, making DriveUtility more flexible to use. These two scripts must be run with admin rights. You can use:
+```
+python -m DriveUtility.addContext
+```
+and
+```
+python -m DriveUtility.removeContext
+```
+from an elevetad Windows command prompt.
+
+![Context Menu](https://i.imgur.com/DKaWEFH.gif)
+
+# Examples
+`example.py` is a sample script. It will upload the contents of Test folder.
+
+# Contributing
+All pull requests and issues are welcome. I'm very thankful for any type of help, improvement or tests.
+
+
+
+
+
+
+
+%package help
+Summary: Development documents and examples for DriveUtility
+Provides: python3-DriveUtility-doc
+%description help
+# Google Drive Utility
+## What is Google Drive Utility?
+Google Drive Utility provides an easy way to use Google Drive from command line, tasks such as uploading files/folders, downloading them, moving folders/files. Additionally, using the provided .reg files it can be added to the Windows Context Menu, giving the opportunity of using it anywhere in an very easy and friendly way. It is written in Python 2.7. It is licensed under the MIT license, see LICENSE.
+
+# Installation
+## Download and installation
+You can download it with Pip:
+```
+pip install DriveUtilityity
+```
+
+# Usage
+## Command line utility
+Usage:
+```
+DriveUtil [Args]
+```
+or:
+```
+python -m DriveUtility [Args]
+```
+Available options are:
+```
+ -h, --help show this help message and exit
+ -u, --upload Path(s) [Path(s) ...]
+ Path of folder or file to upload.
+ -s, --specificf Path(s) [Path(s) ...]
+ Path of folder or file to upload to a specific folder.
+ -cr, --createf Creates a folder.
+ -re, --remove Remove access to Drive.
+ -l, --list List Drive files and folders.
+ -de, --delete Delete selected file or folder.
+ -g, --get [Path] Download file or folder. Optionally, you can specify a
+ path to downlaod there.
+ -m, --move Move file or folder.
+ -cb, --clean Clean bin.
+ -co, --copy Copy a file.
+ -se, --search Search by name.
+ -aS, --addS Star a file.
+ -rS, --removeS Remove star from an starred file.
+ -sL, --shareLink Enable share linking and get the share link.
+ -dS, --disableShare Disable link sharing.
+ -rn, --rename Rename item.
+```
+
+# Windows Context Menu
+## Adding it
+The provided python scripts, `addContext.py` and `removeContext.py` add new options to the Context Menu, making DriveUtility more flexible to use. These two scripts must be run with admin rights. You can use:
+```
+python -m DriveUtility.addContext
+```
+and
+```
+python -m DriveUtility.removeContext
+```
+from an elevetad Windows command prompt.
+
+![Context Menu](https://i.imgur.com/DKaWEFH.gif)
+
+# Examples
+`example.py` is a sample script. It will upload the contents of Test folder.
+
+# Contributing
+All pull requests and issues are welcome. I'm very thankful for any type of help, improvement or tests.
+
+
+
+
+
+
+
+%prep
+%autosetup -n DriveUtility-1.1.18
+
+%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-DriveUtility -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.18-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7fc3803
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+851863af522168081410d16f1e4551fa DriveUtility-1.1.18.tar.gz