## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/nwg-piotr/gopsuinfo %global goipath github.com/nwg-piotr/gopsuinfo Version: 0.1.9 %gometa -L -f Name: gopsuinfo Release: %autorelease Summary: A gopsutil-based command to display system usage info as text in panels like Waybar or icon/text in tint2 and nwg-panel executors # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description A gopsutil-based command to display system usage info as text in panels like Waybar or icon/text in tint2 and nwg-panel executors. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/gopsuinfo %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_datadir}/%{name}/icons_light install -m 0644 -vp icons_light/* %{buildroot}%{_datadir}/%{name}/icons_light/ install -m 0755 -vd %{buildroot}%{_datadir}/%{name}/icons_dark install -m 0644 -vp icons_dark/* %{buildroot}%{_datadir}/%{name}/icons_dark/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck2 %endif %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/gopsuinfo %{_datadir}/%{name}/ %changelog ## START: Generated by rpmautospec * Tue May 12 2026 John Doe - 0.1.9-1 - Uncommitted changes ## END: Generated by rpmautospec