]> git.pld-linux.org Git - SPECS.git/blob - linux-pstore.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / linux-pstore.spec
1 Summary:        Save pstore logs and make room for future logs
2 Name:           linux-pstore
3 Version:        0.4
4 Release:        3
5 License:        GPL
6 Group:          Daemons
7 Source0:        %{name}.py
8 Source1:        %{name}.crontab
9 BuildRequires:  rpm-pythonprov
10 BuildRequires:  rpmbuild(macros) >= 1.268
11 Requires:       crondaemon
12 Requires:       mount
13 Requires:       python3
14 Requires:       python3-modules
15 Requires:       python3-psutil
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Copy pstore logs, report to admin and make room for future logs.
21
22 %prep
23 %setup -q -c -T
24
25 %build
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29
30 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/cron.d,/var/log/pstore}
31
32 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_sbindir}/linux-pstore
33 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/linux-pstore
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 %files
39 %defattr(644,root,root,755)
40 %attr(755,root,root) %{_sbindir}/linux-pstore
41 %attr(600,root,root) /etc/cron.d/linux-pstore
42 %attr(750,root,root) %dir /var/log/pstore
This page took 0.505332 seconds and 3 git commands to generate.