-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add: tmon * license clarification Co-authored-by: madomado <[email protected]> Signed-off-by: sadlerm4 <[email protected]> * clean up macro syntax and add packager: --------- Signed-off-by: sadlerm4 <[email protected]> Co-authored-by: madomado <[email protected]>
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "tmon.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
%global commit e8cae0d88dc8d51cb0e34e3fd3553bcbdaf04ca5 | ||
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | ||
%global commit_date 20241215 | ||
%global debug_package %{nil} | ||
|
||
Name: tmon | ||
Version: %{commit_date}.git~%{shortcommit} | ||
Release: 1%{?dist} | ||
Summary: A tiny system monitor for Linux | ||
|
||
License: GPL-3.0-only | ||
URL: https://github.com/pondda/%{name} | ||
Source0: %{url}/archive/%{commit}.tar.gz | ||
|
||
Requires: lm_sensors | ||
Conflicts: kernel-tools | ||
|
||
Recommends: google-noto-color-emoji-fonts | ||
|
||
BuildRequires: make gcc-c++ ncurses-devel | ||
|
||
Packager: sadlerm <[email protected]> | ||
|
||
%description | ||
%{summary}. | ||
|
||
%prep | ||
%autosetup -n %{name}-%{commit} | ||
|
||
%build | ||
%make_build | ||
|
||
%install | ||
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}/%{name} | ||
%{_sysconfdir}/%{name}/default.conf | ||
|
||
%changelog | ||
* Tue Dec 17 2024 sadlerm <[email protected]> | ||
- Initial package | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
rpm.global("commit", gh_commit("pondda/tmon")); | ||
if rpm.changed() { | ||
rpm.release(); | ||
rpm.global("commit_date", date()); | ||
} | ||
|