summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 07:47:27 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 07:47:27 +0000
commit70a6e4e494c942dcf31417a9e01a2db8b141daa9 (patch)
tree70f26e1bd2c31de96038e94a9cebf6a1f23786aa
parentc6206f37df4ed751d34d5fc771045f9c6665671f (diff)
automatic import of python-mwscan
-rw-r--r--.gitignore1
-rw-r--r--python-mwscan.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f80c80d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mwscan-20181220.165251.tar.gz
diff --git a/python-mwscan.spec b/python-mwscan.spec
new file mode 100644
index 0000000..6560dcf
--- /dev/null
+++ b/python-mwscan.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mwscan
+Version: 20181220.165251
+Release: 1
+Summary: Find malware in web documents.
+License: GPLv3
+URL: https://github.com/gwillem/magento-malware-scanner
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1f/fc/92ec899eb183d9289e827537febb7f8af7360e6575453bcc35f4e5013501/mwscan-20181220.165251.tar.gz
+BuildArch: noarch
+
+
+%description
+A Yara wrapper to identify malware, with support for incremental scans, extension filtering and efficient hash whitelisting.
+
+%package -n python3-mwscan
+Summary: Find malware in web documents.
+Provides: python-mwscan
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mwscan
+A Yara wrapper to identify malware, with support for incremental scans, extension filtering and efficient hash whitelisting.
+
+%package help
+Summary: Development documents and examples for mwscan
+Provides: python3-mwscan-doc
+%description help
+A Yara wrapper to identify malware, with support for incremental scans, extension filtering and efficient hash whitelisting.
+
+%prep
+%autosetup -n mwscan-20181220.165251
+
+%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-mwscan -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 20181220.165251-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5e29855
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a83df4f998e2587370a18fefbd17a177 mwscan-20181220.165251.tar.gz