# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/ariga/atlas %global goipath ariga.io/atlas %global forgeurl https://github.com/ariga/atlas Version: 0.4.2 %gometa %global common_description %{expand: A database toolkit.} %global golicenses LICENSE %global godocs doc README.md Name: %{goname} Release: %autorelease Summary: A database toolkit # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/cmd/atlas %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # Needs go modules and network access for test in "TestDriver_LockAcquired" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -t cmd %endif %files %license LICENSE %doc doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog