# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/d5/tengo %global goipath github.com/d5/tengo/v2 Version: 2.16.1 %gometa -f %global common_description %{expand: A fast script language for Go.} %global golicenses LICENSE %global godocs docs examples README.md Name: %{goname} Release: %autorelease Summary: Fast script language for Go License: MIT URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-github-d5-tengo-2 = %{version}-%{release} Obsoletes: golang-github-d5-tengo-2 < 2.16.1-3 %global godevelheader %{expand: Provides: golang-github-d5-tengo-2-devel = %{version}-%{release} Obsoletes: golang-github-d5-tengo-2-devel < 2.16.1-3} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/tengo %{goipath}/cmd/tengo %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 docs examples README.md %{_bindir}/tengo %gopkgfiles %changelog %autochangelog