diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 16:32:06 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 16:32:06 +0000 |
| commit | 35e3b350e0d5b39275cf817e8a86bfe4fd5d7b6e (patch) | |
| tree | 15ecc13ddf0d56c83f9506a9eb4f34e1dadf78e0 | |
| parent | 4e8d8a8ae58d54c1a04dbca30baf4a9a65272cea (diff) | |
automatic import of python-dependency-check
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-dependency-check.spec | 81 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/dependency-check-0.6.0.zip 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 @@ -0,0 +1 @@ +1be036cf738a41e1eba75ba72b332b9e dependency-check-0.6.0.zip |
