# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://gitlab.com/cznic/ccgo %global goipath modernc.org/ccgo/v4 %global forgeurl https://gitlab.com/cznic/ccgo Version: 4.23.16 %global tag v%{version} %gometa -f %global common_description %{expand: ccgo is a C compiler targeting Go.} %global golicenses LICENSE %global godocs AUTHORS CONTRIBUTORS README.md Name: %{goname} Release: %autorelease Summary: C compiler targeting Go # The main package is BSD-3-Clause. # The sqlite tests are public domain. License: BSD-3-Clause and blessing URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep # Not free: find . ! \( -name v4 -o -name _build -o -name LICENSE -o -name AUTHORS -o -name CONTRIBUTORS -o -name README.md \) -maxdepth 1 -exec rm -rvf {} \; mv v4/* . %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check # https://gitlab.com/cznic/cc/-/issues/155 %gocheck -d lib %endif %files %license LICENSE %doc AUTHORS CONTRIBUTORS README.md %gopkgfiles %changelog %autochangelog