Skip to content

Commit

Permalink
clean up macro syntax and add packager:
Browse files Browse the repository at this point in the history
  • Loading branch information
sadlerm4 committed Dec 17, 2024
1 parent 444aa91 commit 071ba31
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions anda/devs/tmon/tmon.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Release: 1%{?dist}
Summary: A tiny system monitor for Linux

License: GPL-3.0-only
URL: https://github.com/pondda/tmon
URL: https://github.com/pondda/%{name}
Source0: %{url}/archive/%{commit}.tar.gz

Requires: lm_sensors
Expand All @@ -19,8 +19,10 @@ Suggests: nerd-fonts

BuildRequires: make gcc-c++ ncurses-devel

Packager: sadlerm <[email protected]>

%description
%{summary}
%{summary}.

%prep
%autosetup -n %{name}-%{commit}
Expand All @@ -29,16 +31,16 @@ BuildRequires: make gcc-c++ ncurses-devel
%make_build

%install
install -m 0755 -vd %{buildroot}/%{_bindir}
install -m 0755 -vp tmon %{buildroot}/%{_bindir}/tmon
install -m 0755 -vd %{buildroot}/%{_sysconfdir}/tmon
install -m 0644 -vp default.conf %{buildroot}/%{_sysconfdir}/tmon/
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{name} %{buildroot}%{_bindir}/%{name}
install -m 0755 -vd %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 -vp default.conf %{buildroot}%{_sysconfdir}/%{name}/

%files
%license LICENSE
%doc README.md
%{_bindir}/tmon
%{_sysconfdir}/tmon/default.conf
%{_bindir}/%{name}
%{_sysconfdir}/%{name}/default.conf

%changelog
* Tue Dec 17 2024 sadlerm <[email protected]>
Expand Down

0 comments on commit 071ba31

Please sign in to comment.