## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.8.0 %bcond_without check # https://gitlab.com/cznic/ccgo %global goipath modernc.org/ccgo/v3 %global forgeurl https://gitlab.com/cznic/ccgo Version: 3.16.8 %global tag v3.16.8 %gometa -f %global common_description %{expand: Package ccgo translates cc ASTs to Go source code. (Work In Progress).} %global golicenses LICENSE crt/LICENSE crt/LICENSE-MUSL v2/LICENSE %global godocs AUTHORS CONTRIBUTORS README.md Name: %{goname} Release: %autorelease Summary: c ASTs to Go source code translation License: blessing and SMLNJ and BSD-3-Clause and TCL and LGPL-2.1-only URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep rm -rfv crt testdata v2 v4 *.go go.mod go.sum mv v3/* ./ rm -rfv v3 # Don't package modernc.org/ccorpus, too much bundling rm -rfv lib/all_test.go lib/unix_test.go lib/windows_test.go %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/ccgo %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc AUTHORS CONTRIBUTORS README.md %{_bindir}/ccgo %gopkgfiles %changelog * Tue Aug 16 2022 Robert-André Mauchin 3.16.8-1 - Uncommitted changes