# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://gitlab.com/cznic/gc %global goipath modernc.org/gc/v2 %global forgeurl https://gitlab.com/cznic/gc Version: 2.3.0 %global tag v%{version} %gometa -f %global common_description %{expand: Package gc is a Go compiler front end. Work in progess.} %global golicenses GO-LICENSE LICENSE %global godocs AUTHORS CONTRIBUTORS README.md Name: %{goname} Release: %autorelease Summary: Package gc is a Go compiler front end. Work in progess License: BSD-3-Clause URL: %{gourl} Source: %{gosource} # Remove in F43 Provides: golang-modernc-gc-2 = %{version}-%{release} Obsoletes: golang-modernc-gc-2 < 2.3.0-3 %global godevelheader %{expand: Provides: golang-modernc-gc-2-devel = %{version}-%{release} Obsoletes: golang-modernc-gc-2-devel < 2.3.0-3} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 find . ! \( -name v2 -o -name _build -o -name AUTHORS -o -name CONTRIBUTORS -o -name GO-LICENSE -o -name LICENSE \) -maxdepth 1 -exec rm -rvf {} \; mv v2/* . %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/gc %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check rm -rfv internal/ebnf/all_test.go %gocheck %endif %files %license GO-LICENSE LICENSE %doc AUTHORS CONTRIBUTORS README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog