diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-30 17:09:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-30 17:09:03 +0000 |
commit | 417c0f88eb51643d5e590f57296d1e8b977a8057 (patch) | |
tree | 2720668be8223005114f1d4e0729f0bdd97925d6 | |
parent | 6652d5a8f3b5724bf5a840a17a20bc32539f900a (diff) |
automatic import of python-levo-ssrfmap
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-levo-ssrfmap.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/levo-ssrfmap-0.1.12.tar.gz diff --git a/python-levo-ssrfmap.spec b/python-levo-ssrfmap.spec new file mode 100644 index 0000000..82e04c1 --- /dev/null +++ b/python-levo-ssrfmap.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-levo-ssrfmap +Version: 0.1.12 +Release: 1 +Summary: A packaged version of SSRFmap, for use with Levo.ai's CLI. +License: MIT +URL: https://levo.ai +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ff/8b/414a4dc33fc40ac36821cb6112f436aa3639ffd9876b5b6cc51fc639ccee/levo-ssrfmap-0.1.12.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-attrs +Requires: python3-levo-commons +Requires: python3-typing-extensions + +%description + + +%package -n python3-levo-ssrfmap +Summary: A packaged version of SSRFmap, for use with Levo.ai's CLI. +Provides: python-levo-ssrfmap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-levo-ssrfmap + + +%package help +Summary: Development documents and examples for levo-ssrfmap +Provides: python3-levo-ssrfmap-doc +%description help + + +%prep +%autosetup -n levo-ssrfmap-0.1.12 + +%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-levo-ssrfmap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.12-1 +- Package Spec generated @@ -0,0 +1 @@ +54cd0e17ae6c2a2f0c461cede63e0a82 levo-ssrfmap-0.1.12.tar.gz |