diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-05-06 15:49:43 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-05-06 15:49:43 -0700 |
commit | 48895e4c1e7ecb0b4e3ed8b1488d6cdbcff97ca1 (patch) | |
tree | 7e755472bc4f96b51bf5f66d2135221caaca1f58 | |
parent | 59770f03abf3ee0e9bd8e64f83850aec40b1732b (diff) | |
download | specs-48895e4c1e7ecb0b4e3ed8b1488d6cdbcff97ca1.tar.gz specs-48895e4c1e7ecb0b4e3ed8b1488d6cdbcff97ca1.tar.xz specs-48895e4c1e7ecb0b4e3ed8b1488d6cdbcff97ca1.zip |
New package: utils/psi-notify.spec
-rw-r--r-- | utils/psi-notify.spec | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/utils/psi-notify.spec b/utils/psi-notify.spec new file mode 100644 index 0000000..d0a1e91 --- /dev/null +++ b/utils/psi-notify.spec @@ -0,0 +1,57 @@ +Name: psi-notify +Version: 1.0.1 +Release: 1%{?dist} +Summary: Alert when your machine is becoming over-saturated + +License: MIT +URL: https://github.com/cdown/psi-notify +Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: systemd-rpm-macros + +%description +psi-notify is a minimal unprivileged notifier for system-wide resource pressure +using PSI. + +This can help you to identify misbehaving applications on your machine before +they start to severely impact system responsiveness, in a way which MemAvailable +or other metrics cannot. + + +%prep +%autosetup + + +%build +export CC=gcc +export CFLAGS="%{optflags}" +%make_build + + +%install +install -Dp psi-notify %{buildroot}%{_bindir}/psi-notify +install -Dp psi-notify.service %{buildroot}%{_unitdir}/psi-notify.service + +%post +%systemd_post psi-notify.service + +%preun +%systemd_preun psi-notify.service + +%postun +%systemd_postun_with_restart psi-notify.service + + +%files +%license LICENSE +%doc README.md +%{_bindir}/psi-notify +%{_unitdir}/psi-notify.service + + +%changelog +* Wed May 6 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.0.1-1 +- Initial package |