%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 - 0.6.0-1 - Package Spec generated