blob: d0a1e91d8a8831479e20029ad84cd7c2c0e1c7a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
|