diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:47:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:47:12 +0000 |
commit | 895dbbf0c114cbdd96a5bd34372645e0f0eff1bc (patch) | |
tree | ea9838e5e203e1d8ce1bba41ca58c5e9e08eeac2 | |
parent | 1e37acaf2998a3cefb80a60c3eb82758f9d02110 (diff) |
automatic import of python-archivenow
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-archivenow.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/archivenow-2020.7.18.12.19.44.tar.gz diff --git a/python-archivenow.spec b/python-archivenow.spec new file mode 100644 index 0000000..c16bf68 --- /dev/null +++ b/python-archivenow.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-archivenow +Version: 2020.7.18.12.19.44 +Release: 1 +Summary: A Python library to push web resources into public web archives +License: MIT +URL: https://github.com/maturban/archivenow +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/15/7a/d158dd5f548a3610246cf64e110327e1e7337ad34be821e3f32957395d07/archivenow-2020.7.18.12.19.44.tar.gz +BuildArch: noarch + +Requires: python3-flask +Requires: python3-requests + +%description + + +%package -n python3-archivenow +Summary: A Python library to push web resources into public web archives +Provides: python-archivenow +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-archivenow + + +%package help +Summary: Development documents and examples for archivenow +Provides: python3-archivenow-doc +%description help + + +%prep +%autosetup -n archivenow-2020.7.18.12.19.44 + +%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-archivenow -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 2020.7.18.12.19.44-1 +- Package Spec generated @@ -0,0 +1 @@ +e14be6f179a9471c19aa01cf8a63c328 archivenow-2020.7.18.12.19.44.tar.gz |