%define debug_package %{nil} %global git_date 20240216 %global git_hash ca6c46a %global git_ver 0.1.2 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: nwg-menu Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: MenuStart plugin to nwg-panel, also capable of working standalone License: MIT URL: https://github.com/nwg-piotr/nwg-menu Source: %{url}/%{src_name} BuildRequires: make go git BuildRequires: gtk3-devel BuildRequires: pkgconfig(gtk-layer-shell-0) %description This code provides the MenuStart plugin to nwg-panel. It also may be used standalone, however, with a little help from command line arguments. The nwg-menu command displays the system menu with simplified freedesktop main categories (8 instead of 13). It also provides the search entry, to look for installed application on the basis of .desktop files, and for files in XDG user directories. %prep %autosetup -n %{name} #%%goprep #%%generate_buildrequires #%%go_generate_buildrequires %build go build -o bin/nwg-menu *.go %install %make_install %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_datadir}/%{name}/desktop-directories/*.directory %{_datadir}/%{name}/menu-start.css %changelog %autochangelog