diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:50:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:50:00 +0000 |
| commit | 21d57c5d2781b4e4b22a917c166f7e77962c312e (patch) | |
| tree | 6bac2c03053fe09da888920f46c831adeec0df82 | |
| parent | c37f01cad4ef5ebd1aad9de0d229bc4543662403 (diff) | |
automatic import of python-gbak
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-gbak.spec | 84 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/gbak-2.73.tar.gz diff --git a/python-gbak.spec b/python-gbak.spec new file mode 100644 index 0000000..a4e9374 --- /dev/null +++ b/python-gbak.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gbak +Version: 2.73 +Release: 1 +Summary: A Des of gbak +License: MIT License +URL: https://github.com/vtandroid/gbackup +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/7b/3cdd3c97a3e48306ecf2f3e94da711c4bee0688497592891f7a34bd3573a/gbak-2.73.tar.gz +BuildArch: noarch + +Requires: python3-youtube-dl +Requires: python3-google-api-python-client +Requires: python3-click +Requires: python3-google-auth-httplib2 +Requires: python3-google-auth-oauthlib +Requires: python3-httplib2 +Requires: python3-cryptography +Requires: python3-slugify +Requires: python3-boto3 + +%description +Gbak + + +%package -n python3-gbak +Summary: A Des of gbak +Provides: python-gbak +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-gbak +Gbak + + +%package help +Summary: Development documents and examples for gbak +Provides: python3-gbak-doc +%description help +Gbak + + +%prep +%autosetup -n gbak-2.73 + +%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-gbak -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.73-1 +- Package Spec generated @@ -0,0 +1 @@ +4fbded446eff29c8e91d9463e0080ed1 gbak-2.73.tar.gz |
