1 |
# $Id: e-smith-nutUPS.spec,v 1.4 2020/11/18 22:12:51 jpp Exp $ |
# $Id: e-smith-nutUPS.spec,v 1.14 2021/03/30 12:00:52 terryfage Exp $ |
2 |
|
|
3 |
Summary: SME server - nut UPS interaction module |
Summary: SME server - nut UPS interaction module |
4 |
%define name e-smith-nutUPS |
%define name e-smith-nutUPS |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 4 |
%define release 12 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-nutUPS-2.6.0-bz9423-bz11146.patch |
Patch0: e-smith-nutUPS-2.6.0-bz9423-bz11146.patch |
14 |
|
Patch1: e-smith-nutUPS-2.6.0-bz11488.patch |
15 |
|
Patch2: e-smith-nutUPS-2.6.0-bz11494.patch |
16 |
|
Patch3: e-smith-nutUPS-2.6.0-nutstartorder-bz11488.patch |
17 |
|
Patch4: e-smith-nutUPS-2.6.0-bz11633.patch |
18 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
Requires: nut nut-client daemontools |
Requires: nut nut-client daemontools |
29 |
the SME server software. |
the SME server software. |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
* Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
* Mon Jun 21 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-12.sme |
33 |
|
- Misspelling in /usr/lib/systemd/system/nut.service file [SME: 11633] |
34 |
|
|
35 |
|
* Tue Mar 30 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-11.sme |
36 |
|
- fix start ordering nut.service [SME: 11488] |
37 |
|
|
38 |
|
* Sat Mar 27 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-10.sme |
39 |
|
- fix ExecStartPre path for /usr/lib/tmpfiles.d/nut-run.conf [SME: 11488] |
40 |
|
|
41 |
|
* Thu Mar 25 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-9.sme |
42 |
|
- fix ExecStartPre path for nut.service [SME: 11488] |
43 |
|
|
44 |
|
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
45 |
|
- fix template path for monitor [SME: 9423] |
46 |
|
|
47 |
|
* Sun Nov 29 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-6.sme |
48 |
|
- Fix preset line endings in 49-koozali.preset [SME: 11215] |
49 |
|
|
50 |
|
* Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
51 |
- add update event to avoid reboot [SME: 11146] |
- add update event to avoid reboot [SME: 11146] |
52 |
- adapt nut UPS for systemd [SME: 9423] |
- adapt nut UPS for systemd [SME: 9423] |
53 |
|
|
272 |
%prep |
%prep |
273 |
%setup |
%setup |
274 |
%patch0 -p1 |
%patch0 -p1 |
275 |
|
%patch1 -p1 |
276 |
|
%patch2 -p1 |
277 |
|
%patch3 -p1 |
278 |
|
%patch4 -p1 |
279 |
|
|
280 |
rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut |
rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut |
281 |
mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d |
mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d |
282 |
|
|