-
Notifications
You must be signed in to change notification settings - Fork 1
/
storage-logger.spec
86 lines (64 loc) · 2.21 KB
/
storage-logger.spec
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Name: storage-logger
Version: 0.5.4
Release: 0%{?dist}
Summary: Records the storage configuration in the system journal
URL: https://github.com/lvmteam/storage-logger
License: GPLv2
BuildArch: noarch
Requires: bash
Source: storage-logger.tgz
%description
storage-logger writes a record of changes to the system's storage
configuration into the system journal using a udev rule with an
accompanying script.
%global _udevdir %{_prefix}/lib/udev/rules.d
%prep
%setup -c -q
%build
%install
install -d -m 755 ${RPM_BUILD_ROOT}/%{_sbindir}
install -m 755 scripts/udev_storage_logger.sh ${RPM_BUILD_ROOT}/%{_sbindir}
install -d -m 755 ${RPM_BUILD_ROOT}/%{_udevdir}
install -m 644 udev/99-zzz-storage-logger.rules ${RPM_BUILD_ROOT}/%{_udevdir}
install -d -m 755 ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 scripts/lsblkj ${RPM_BUILD_ROOT}/%{_bindir}
install -d -m 755 ${RPM_BUILD_ROOT}/%{_mandir}/man1
install -m 644 man/lsblkj.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1
%files
%license COPYING
%defattr(755,root,root,-)
%{_sbindir}/udev_storage_logger.sh
%defattr(644,root,root,-)
%{_udevdir}/99-zzz-storage-logger.rules
%doc README
%package report
Summary: Reports the storage configuration recorded by storage-logger
License: GPLv2
Requires: %{name} = %{version}-%{release}
Requires: systemd-udev >= 244
Requires: util-linux >= 2.35
Requires: perl-JSON
%if 0%{?fedora} >= 33
Requires: perl-locale
%endif
%description report
storage-logger-report provides lsblkj as a wrapper around lsblk to
reports the changes to the system's storage configuration recorded in
the system journal by the storage-logger package.
%files report
%defattr(755,root,root,-)
%{_bindir}/lsblkj
%defattr(644,root,root,-)
%{_mandir}/man1/lsblkj.1*
%changelog
* Thu Jun 3 2021 Alasdair Kergon <[email protected]> 0.5.4-0
- Release bump.
* Fri Jan 15 2021 Alasdair Kergon <[email protected]> 0.5.3-0
- Release bump.
* Thu Mar 26 2020 Alasdair Kergon <[email protected]> 0.5.2-0
- Add --git to lsblkj to create a git repository of the changes.
- perl-locale is a separate sub-package in Fedora 33.
* Fri Feb 7 2020 Alasdair Kergon <[email protected]> 0.5.1-0
- Add --file to lsblkj to use journalctl JSON extracts.
* Wed Jan 8 2020 Alasdair Kergon <[email protected]> 0.5-0
- Initial release