Files
HyprlandRPM/nwg-look/nwg-look.spec
Eriq Taing b0848ba644
Some checks failed
Build nwg-look / Build and push image (push) Failing after 4m7s
Introduce nwg-look package
2025-12-03 21:53:51 -05:00

88 lines
2.1 KiB
RPMSpec

# Generated by go2rpm 1.14.0
%bcond check 1
%bcond bootstrap 0
%if %{with bootstrap}
%global debug_package %{nil}
%endif
# https://github.com/nwg-piotr/nwg-look
%global goipath github.com/nwg-piotr/nwg-look
Version: 1.0.6
%gometa -L -f
%global common_description %{expand:
GTK3 settings editor adapted to work in the wlroots environment.}
%global golicenses LICENSE
%global godocs README.md
Name: nwg-look
Release: %autorelease
Summary: GTK3 settings editor adapted to work in the wlroots environment
License: MIT
URL: %{gourl}
Source: %{gosource}
Source: vendor-%{version}.tar.gz
Source: bundle_go_deps_for_rpm.sh
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(cairo-gobject)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(pango)
Requires: /usr/bin/gsettings
Requires: xcur2png
%description %{common_description}
%prep
%goprep -A
%setup -q -T -D -a 1
%autopatch -p1
%if %{without bootstrap}
%build
%gobuild -o %{gobuilddir}/bin/nwg-look %{goipath}
%endif
%install
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -Dpm0644 stuff/main.glade -t %{buildroot}%{_datadir}/nwg-look
install -Dpm0644 langs/* -t %{buildroot}%{_datadir}/nwg-look/langs
install -Dpm0644 stuff/nwg-look.desktop -t %{buildroot}%{_datadir}/applications
install -Dpm0644 stuff/nwg-look.svg -t %{buildroot}%{_datadir}/pixmaps
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%endif
%endif
%if %{without bootstrap}
%files
%license vendor/modules.txt
%license LICENSE
%doc README.md
%{_bindir}/nwg-look
%{_datadir}/%{name}/
%{_datadir}/applications/nwg-look.desktop
%{_datadir}/pixmaps/nwg-look.svg
%endif
%changelog
%autochangelog