## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/fortio/testscript %global goipath fortio.org/testscript %global forgeurl https://github.com/fortio/testscript Version: 0.3.1 %gometa -f %global common_description %{expand: Testscript only fork of https://github.com/rogpeppe/go-internal.} %global golicenses LICENSE %global godocs README.md cmd/testscript/README.md Name: %{goname} Release: %autorelease Summary: Testscript only fork of https://github.com/rogpeppe/go-internal License: BSD-3-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; 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 for test in "TestScan" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE %doc README.md cmd/testscript/README.md %{_bindir}/testscript %gopkgfiles %changelog * Tue Oct 03 2023 John Doe - 0.3.1-1 - Uncommitted changes