# Generated by go2rpm 1 # Don't run tests at the moment # See comment: https://github.com/zmap/zgrab2/blob/master/Makefile#L14-L15 %bcond_with check # https://github.com/zmap/zgrab2 %global goipath github.com/zmap/zgrab2 Version: 0.1.5 %gometa %global common_description %{expand: Go Application Layer Scanner.} %global golicenses LICENSE lib/smb/LICENSE %global godocs README.md README-schemas.md Name: zgrab2 Release: 1%{?dist} Summary: Application Layer Scanner # Upstream license specification: MIT and Apache-2.0 License: MIT and ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/prometheus/client_golang/prometheus/promhttp) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/zmap/zcrypto/tls) BuildRequires: golang(github.com/zmap/zcrypto/x509) BuildRequires: golang(github.com/zmap/zflags) BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(golang.org/x/crypto/ed25519) BuildRequires: golang(golang.org/x/crypto/md4) BuildRequires: golang(golang.org/x/net/dns/dnsmessage) BuildRequires: golang(golang.org/x/net/html/charset) BuildRequires: golang(golang.org/x/net/http/httpguts) BuildRequires: golang(golang.org/x/net/http2/hpack) BuildRequires: golang(golang.org/x/net/idna) BuildRequires: golang(golang.org/x/text/unicode/norm) BuildRequires: golang(golang.org/x/text/width) BuildRequires: golang(gopkg.in/mgo.v2/bson) BuildRequires: golang(gopkg.in/yaml.v2) %if %{with check} # Tests BuildRequires: golang(gopkg.in/check.v1) %endif %description %{common_description} %gopkg %prep %goprep mv %{_builddir}/%{name}-%{version}/lib/smb/LICENSE LICENSE-smb mv %{_builddir}/%{name}-%{version}/zgrab2_schemas/README.md README-schemas.md %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done for cmd in lib/http; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE LICENSE-smb %doc README.md README-schemas.md %{_bindir}/* %gopkgfiles %changelog * Fri Mar 27 2020 Fabian Affolter - 0.1.5-1 - Initial package for Fedora