# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/projectdiscovery/nuclei %global goipath github.com/projectdiscovery/nuclei/v3 Version: 3.7.1 %gometa -L -f Name: nuclei Release: %autorelease Summary: Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations # Generated by go-vendor-tools License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only AND ISC AND MIT AND MPL-2.0 AND Sleepycat AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/nuclei %{goipath}/cmd/nuclei %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/nuclei %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} # Upstream includes many integration tests requiring network access, # DNS resolution, remote template downloads, and headless browsers. # These cannot run in the restricted mock/Koji build environment. # Run only unit-test packages. go test -v ./pkg/utils/... go test -v ./pkg/workflows go test -v ./pkg/utils/monitor go test -v ./pkg/testutils/fuzzplayground %endif %files -f %{go_vendor_license_filelist} %doc examples CLAUDE.md CONTRIBUTING.md DEBUG.md DESIGN.md README.md %doc README_CN.md README_ES.md README_ID.md README_JP.md README_KR.md %doc README_PT-BR.md README_TR.md SYNTAX-REFERENCE.md THANKS.md %doc cmd/functional-test/targets-1000.txt cmd/functional-test/targets-150.txt %doc cmd/functional-test/targets-250.txt cmd/functional-test/targets.txt %doc cmd/functional-test/testcases.txt helm/templates/NOTES.txt %doc integration_tests/subdomains.txt %doc integration_tests/protocols/file/data/test1.txt %doc integration_tests/protocols/file/data/test2.txt %doc integration_tests/protocols/file/data/test3.txt %doc integration_tests/protocols/keys/README.md %doc integration_tests/protocols/offlinehttp/data/req-resp-with-http-keywords.txt %doc lib/README.md pkg/input/README.md pkg/input/formats/README.md %doc pkg/js/CONTRIBUTE.md pkg/js/DESIGN.md pkg/js/THANKS.md %doc pkg/js/devtools/README.md pkg/js/devtools/bindgen/INSTALL.md %doc pkg/js/devtools/bindgen/README.md pkg/js/devtools/scrapefuncs/README.md %doc pkg/js/devtools/tsgen/README.md pkg/js/generated/README.md %doc pkg/tmplexec/README.md pkg/tmplexec/flow/README.md %doc pkg/tmplexec/multiproto/README.md static/regression-cycle.md %{_bindir}/nuclei %changelog %autochangelog