diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:48:18 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:48:18 +0000 |
| commit | 9e1b4058491df7cdbf4f2b5616e2d5de77b8bc1e (patch) | |
| tree | cfce1973e9702c83d07158bd0b3ad9ca7297e040 /python-gallery-dl.spec | |
| parent | ee562fcb6c5f9f0073b02ce552f7e473cd47085e (diff) | |
automatic import of python-gallery-dl
Diffstat (limited to 'python-gallery-dl.spec')
| -rw-r--r-- | python-gallery-dl.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python-gallery-dl.spec b/python-gallery-dl.spec new file mode 100644 index 0000000..856ecd8 --- /dev/null +++ b/python-gallery-dl.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gallery-dl +Version: 1.25.1 +Release: 1 +Summary: Command-line program to download image galleries and collections from several image hosting sites +License: GPLv2 +URL: https://github.com/mikf/gallery-dl +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1f/c4/8b6b44fb92eb6d8c03790db998926028b25c7bc49712a7c63eba1e627df4/gallery_dl-1.25.1.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-youtube-dl + +%description + + +%package -n python3-gallery-dl +Summary: Command-line program to download image galleries and collections from several image hosting sites +Provides: python-gallery-dl +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-gallery-dl + + +%package help +Summary: Development documents and examples for gallery-dl +Provides: python3-gallery-dl-doc +%description help + + +%prep +%autosetup -n gallery-dl-1.25.1 + +%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-gallery-dl -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.25.1-1 +- Package Spec generated |
