4
4
5
5
Name: greenboot
6
6
Version: 0.4
7
- Release: 1 %{?dist }
7
+ Release: 2 %{?dist }
8
8
Summary: Generic Health Check Framework for systemd
9
9
License: LGPLv2+
10
10
URL: https://github.com/%{github_owner }/%{github_project }
@@ -20,38 +20,38 @@ Requires: systemd
20
20
21
21
%package motd
22
22
Summary: Message of the Day updater for greenboot
23
- Requires: greenboot
23
+ Requires: %{ name } = %{ version }-%{ release }
24
24
Requires: pam >= 1.3.1
25
25
Requires: openssh
26
26
27
27
%description motd
28
28
%{summary }.
29
29
30
30
%package ostree-grub2
31
- Summary: greenboot scripts for OSTree-based systems using the Grub2 bootloader
32
- Requires: greenboot
33
- Requires: greenboot -grub2
34
- Requires: greenboot -reboot
31
+ Summary: Scripts for greenboot on OSTree-based systems using the Grub2 bootloader
32
+ Requires: %{ name } = %{ version }-%{ release }
33
+ Requires: %{ name } -grub2 = %{ version }-%{ release }
34
+ Requires: %{ name } -reboot = %{ version }-%{ release }
35
35
36
36
%description ostree-grub2
37
37
%{summary }.
38
38
39
39
%package grub2
40
40
Summary: Grub2 specific scripts for greenboot
41
- Requires: greenboot
41
+ Requires: %{ name } = %{ version }-%{ release }
42
42
43
43
%description grub2
44
44
%{summary }.
45
45
46
46
%package reboot
47
47
Summary: Reboot on red status for greenboot
48
- Requires: greenboot
48
+ Requires: %{ name } = %{ version }-%{ release }
49
49
50
50
%description reboot
51
51
%{summary }.
52
52
53
53
%prep
54
- %setup -n %{github_project }-%{version }
54
+ %setup -qn %{github_project }-%{version }
55
55
56
56
%build
57
57
@@ -105,6 +105,8 @@ ln -snf /run/greenboot/motd %{buildroot}%{_sysconfdir}/motd.d/%{name}
105
105
%{_unitdir }/greenboot-healthcheck.service
106
106
%{_unitdir }/greenboot.service
107
107
%{_unitdir }/redboot.service
108
+ %dir %{_sysconfdir }/%{name }
109
+ %dir %{_sysconfdir }/%{name }/check
108
110
%dir %{_sysconfdir }/%{name }/check/required.d
109
111
%{_sysconfdir }/%{name }/check/required.d/00_required_scripts_start.sh
110
112
%dir %{_sysconfdir }/%{name }/check/wanted.d
@@ -116,8 +118,8 @@ ln -snf /run/greenboot/motd %{buildroot}%{_sysconfdir}/motd.d/%{name}
116
118
117
119
%files motd
118
120
%dir /run/%{name }
119
- %config %{_sysconfdir }/motd.d/%{name }
120
- %{_sysconfdir }/%{name }/motd/
121
+ %config(noreplace) %{_sysconfdir }/motd.d/%{name }
122
+ %config % {_sysconfdir }/%{name }/motd/
121
123
%{_sysconfdir }/%{name }/green.d/50_greenboot_motd.sh
122
124
%{_sysconfdir }/%{name }/red.d/50_redboot_motd.sh
123
125
@@ -131,5 +133,8 @@ ln -snf /run/greenboot/motd %{buildroot}%{_sysconfdir}/motd.d/%{name}
131
133
%{_sysconfdir }/%{name }/red.d/99_reboot.sh
132
134
133
135
%changelog
136
+ *
Tue Oct 02 2018 Christian Glombek <[email protected] > -
0.4-2
137
+ - Spec Review
138
+
134
139
*
Thu Jun 14 2018 Christian Glombek <[email protected] > -
0.4-1
135
140
- Initial Package
0 commit comments