# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://gitlab.com/cznic/lex %global goipath modernc.org/lex %global forgeurl https://gitlab.com/cznic/lex Version: 1.1.1 %global tag v%{version} %gometa -f %global common_description %{expand: Support for a *nix (f)lex like tool on .l sources.} %global golicenses LICENSE %global godocs AUTHORS CONTRIBUTORS README Name: %{goname} Release: %autorelease Summary: Support for a *nix (f)lex like tool on .l sources License: BSD-3-Clause URL: %{gourl} Source: %{gosource} BuildRequires: golang-modernc-lexer-devel %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/lex %{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 %{_bindir}/* %gopkgfiles %changelog %autochangelog