%global commit b9cc3e6b85fcb0aa04c1e66f092ebbca7e245b7f %global up nwg-look # The Go build here has no separate debug symbols to split out %global debug_package %{nil} Name: nwg-look Version: 1.2.1 Release: 1%{?dist} Summary: GTK3 settings editor adapted to work in the wlroots environment # The vendored Go modules carry their own licenses (mostly MIT, BSD and ISC) License: MIT URL: https://github.com/nwg-piotr/nwg-look # Tarball of the upstream release tag with the Go modules vendored, produced by scripts/make-srpm.sh Source0: %{up}-%{commit}.tar.gz BuildRequires: golang BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(cairo-gobject) BuildRequires: pkgconfig(pango) Requires: gtk3 Requires: glib2 Recommends: xcur2png Provides: bundled(golang(github.com/gotk3/gotk3)) %description nwg-look is a GTK3 settings editor, designed to work in the wlroots environment. It sets the GTK theme, icon theme, cursor theme, fonts and other settings through gsettings and the GTK settings.ini files, without needing a full desktop environment. %prep %autosetup -n %{up}-%{commit} %build export CGO_CFLAGS="%{optflags}" go build -mod=vendor -buildmode=pie -v -o bin/nwg-look . %install make install DESTDIR=%{buildroot} PREFIX=%{_prefix} # The Makefile also drops README and LICENSE under share/; they are packaged with %%doc and %%license instead rm -rf %{buildroot}%{_docdir}/nwg-look %{buildroot}%{_datadir}/licenses %files %license LICENSE %doc README.md %{_bindir}/nwg-look %{_datadir}/nwg-look/ %{_datadir}/applications/nwg-look.desktop %{_datadir}/pixmaps/nwg-look.svg %changelog %autochangelog