# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://gitlab.com/cznic/cc %global goipath modernc.org/cc/v4 %global forgeurl https://gitlab.com/cznic/cc Version: 4.13.2 %global tag v%{version} %global distprefix %nil %gometa -f %global common_description %{expand: Package CC is a C99 compiler front end.} %global golicenses LICENSE %global godocs AUTHORS CONTRIBUTORS Name: %{goname} Release: %autorelease Summary: C99 compiler front end License: BSD-3-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 find . ! \( -name v4 -o -name AUTHORS -o -name CONTRIBUTORS -o -name LICENSE -o -name _build \) -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 . %endif %gopkgfiles %changelog %autochangelog