]> git.pld-linux.org Git - packages/linux-pstore.git/blob - linux-pstore.spec
f5725df52524e6c7d4d433023c5091b7e8a5b91a
[packages/linux-pstore.git] / linux-pstore.spec
1 Summary:        Save pstore logs and make room for future logs
2 Name:           linux-pstore
3 Version:        0.3
4 Release:        1
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.073517 seconds and 2 git commands to generate.