summaryrefslogtreecommitdiff
path: root/python-dependency-check.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 16:32:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 16:32:06 +0000
commit35e3b350e0d5b39275cf817e8a86bfe4fd5d7b6e (patch)
tree15ecc13ddf0d56c83f9506a9eb4f34e1dadf78e0 /python-dependency-check.spec
parent4e8d8a8ae58d54c1a04dbca30baf4a9a65272cea (diff)
automatic import of python-dependency-check
Diffstat (limited to 'python-dependency-check.spec')
-rw-r--r--python-dependency-check.spec81
1 files changed, 81 insertions, 0 deletions
diff --git a/python-dependency-check.spec b/python-dependency-check.spec
new file mode 100644
index 0000000..53a9278
--- /dev/null
+++ b/python-dependency-check.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dependency-check
+Version: 0.6.0
+Release: 1
+Summary: Shim to easily install OWASP dependency-check-cli into Python projects
+License: Apache 2.0
+URL: https://github.com/jhermann/dependency-check-py
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/87/f52b894b93b1aec834c1d91ce3e818b880544af2de2c80f08780a1d73704/dependency-check-0.6.0.zip
+BuildArch: noarch
+
+
+%description
+``dependency-check`` scans application dependencies and checks whether they contain any published vulnerabilities
+(based on the NIST `NVD`_).
+It runs in the JVM, so you need some form of ``java`` available in your ``PATH``.
+The script should work on Linux, Mac OSX and Windows, but right now is only tested on Linux.
+
+%package -n python3-dependency-check
+Summary: Shim to easily install OWASP dependency-check-cli into Python projects
+Provides: python-dependency-check
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dependency-check
+``dependency-check`` scans application dependencies and checks whether they contain any published vulnerabilities
+(based on the NIST `NVD`_).
+It runs in the JVM, so you need some form of ``java`` available in your ``PATH``.
+The script should work on Linux, Mac OSX and Windows, but right now is only tested on Linux.
+
+%package help
+Summary: Development documents and examples for dependency-check
+Provides: python3-dependency-check-doc
+%description help
+``dependency-check`` scans application dependencies and checks whether they contain any published vulnerabilities
+(based on the NIST `NVD`_).
+It runs in the JVM, so you need some form of ``java`` available in your ``PATH``.
+The script should work on Linux, Mac OSX and Windows, but right now is only tested on Linux.
+
+%prep
+%autosetup -n dependency-check-0.6.0
+
+%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-dependency-check -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.0-1
+- Package Spec generated