summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 04:10:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 04:10:43 +0000
commit9df0f4160970e230858fa624ee031cfbbea6b0b5 (patch)
tree55503dc958013f3dfe58c7064ed79dfe8998d02b
parent2a375cd798cfb91a67bd6f43ea0365008a6e8ee3 (diff)
automatic import of python-sqlmapopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-sqlmap.spec93
-rw-r--r--sources1
3 files changed, 95 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..017687a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sqlmap-1.7.5.tar.gz
diff --git a/python-sqlmap.spec b/python-sqlmap.spec
new file mode 100644
index 0000000..c657e36
--- /dev/null
+++ b/python-sqlmap.spec
@@ -0,0 +1,93 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sqlmap
+Version: 1.7.5
+Release: 1
+Summary: Automatic SQL injection and database takeover tool
+License: GNU General Public License v2 (GPLv2)
+URL: https://sqlmap.org
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e9/1e/2d16f99dc6525de1758e7154e0b1c384bba9fab72904a7badb3d61397dae/sqlmap-1.7.5.tar.gz
+BuildArch: noarch
+
+
+%description
+|Python 2.6|2.7|3.x| |License| |Twitter|
+sqlmap is an open source penetration testing tool that automates the
+process of detecting and exploiting SQL injection flaws and taking over
+of database servers. It comes with a powerful detection engine, many
+niche features for the ultimate penetration tester and a broad range of
+switches lasting from database fingerprinting, over data fetching from
+the database, to accessing the underlying file system and executing
+commands on the operating system via out-of-band connections.
+
+%package -n python3-sqlmap
+Summary: Automatic SQL injection and database takeover tool
+Provides: python-sqlmap
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sqlmap
+|Python 2.6|2.7|3.x| |License| |Twitter|
+sqlmap is an open source penetration testing tool that automates the
+process of detecting and exploiting SQL injection flaws and taking over
+of database servers. It comes with a powerful detection engine, many
+niche features for the ultimate penetration tester and a broad range of
+switches lasting from database fingerprinting, over data fetching from
+the database, to accessing the underlying file system and executing
+commands on the operating system via out-of-band connections.
+
+%package help
+Summary: Development documents and examples for sqlmap
+Provides: python3-sqlmap-doc
+%description help
+|Python 2.6|2.7|3.x| |License| |Twitter|
+sqlmap is an open source penetration testing tool that automates the
+process of detecting and exploiting SQL injection flaws and taking over
+of database servers. It comes with a powerful detection engine, many
+niche features for the ultimate penetration tester and a broad range of
+switches lasting from database fingerprinting, over data fetching from
+the database, to accessing the underlying file system and executing
+commands on the operating system via out-of-band connections.
+
+%prep
+%autosetup -n sqlmap-1.7.5
+
+%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-sqlmap -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..214b990
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+471c31c48094211d864aa540ab0a7086 sqlmap-1.7.5.tar.gz