#%%global goipath github.com/nwg-piotr/nwg-drawer %define debug_package %{nil} %global git_date 20250129 %global git_hash d1be3de %global git_ver 0.6.3 %global rel 2 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: nwg-drawer Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Application drawer for wlroots-based Wayland compositors License: MIT URL: https://github.com/nwg-piotr/nwg-drawer Source: %{url}/%{src_name} Patch1: makefile.patch BuildRequires: make go git BuildRequires: gtk3-devel BuildRequires: pkgconfig(gtk-layer-shell-0) BuildRequires: xdg-utils BuildRequires: gobject-introspection-devel Recommends: thunar %description Nwg-drawer is an application launcher. It's being developed with sway and Hyprland in mind, but should also work with other wlroots-based Wayland compositors. #%%gopkg %prep %autosetup -n %{name} #%%goprep %{name} #%%generate_buildrequires #%%go_generate_buildrequires %build go build -o bin/nwg-drawer . #%%gobuild -o %{gobuilddir}/bin/nwg-drawer %{goipath} #%%gobuild -o %{gobuilddir}/bin/nwg-drawer . #%%make_build get #%%make_build %install %make_install %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_datadir}/%{name}/desktop-directories/*.directory %{_datadir}/%{name}/drawer.css %{_datadir}/%{name}/img/*.svg %changelog %autochangelog