# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/package-url/packageurl-go %global goipath github.com/package-url/packageurl-go Version: 0.1.2 %gometa -f %global gosupfiles ${testfiles[@]} %global common_description %{expand: Go implementation of the package url spec.} %global golicenses LICENSE mit.LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Go implementation of the package url spec License: MIT URL: %{gourl} Source: %{gosource} Source: https://raw.githubusercontent.com/package-url/purl-spec/master/test-suite-data.json %description %{common_description} %gopkg %prep %goprep %autopatch -p1 cp %{S:1} testdata/test-suite-data.json %generate_buildrequires %go_generate_buildrequires %install mapfile -t testfiles <<< $(find $(find . -iname 'testdata' -type d) -type f) %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog %autochangelog