# Generated by go2rpm 1.9.0 %bcond_without check # https://code.rocket9labs.com/tslocum/gmenu %global archivename gmenu %global archiveext tar.gz %global goipath code.rocketnine.space/tslocum/gmenu %global forgeurl https://code.rocket9labs.com/tslocum/gmenu %global forgesetupargs -n %{archivename} Version: 0.3.1 %gometa -f %global common_description %{expand: Desktop application launcher.} %global golicenses LICENSE %global godocs CHANGELOG README.md Name: gmenu Release: 1%{?dist} Summary: Desktop application launcher License: MIT URL: %{gourl} Source: %{forgeurl}/archive/v%{version}.%{archiveext} BuildRequires: golang(code.rocketnine.space/tslocum/cview) BuildRequires: golang(code.rocketnine.space/tslocum/desktop) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gdk/v4) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gio/v2) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/glib/v2) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/gtk/v4) BuildRequires: golang(github.com/diamondburned/gotk4/pkg/pango) BuildRequires: golang(github.com/gdamore/tcell/v2) BuildRequires: golang(github.com/kballard/go-shellquote) BuildRequires: golang(github.com/lithammer/fuzzysearch/fuzzy) BuildRequires: golang(github.com/mattn/go-isatty) %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %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 CHANGELOG README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jun 15 2023 Jerzy Drożdż - 0.3.1-1 - Initial build