# Generated by go2rpm 1.10.0 %bcond_without check # https://github.com/fabpot/local-php-security-checker %global goipath github.com/fabpot/local-php-security-checker/v2 Version: 2.0.6 %gometa -L -f %global common_description %{expand: PHP security vulnerabilities checker.} %global golicenses LICENSE %global godocs CHANGELOG.md README.md Name: local-php-security-checker Release: %autorelease Summary: PHP security vulnerabilities checker License: AGPL-3.0-or-later URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/local-php-security-checker %{goipath} %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 %doc CHANGELOG.md README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog