1 |
# $Id: e-smith-nutUPS.spec,v 1.2 2016/02/05 22:27:53 stephdl Exp $ |
# $Id: e-smith-nutUPS.spec,v 1.13 2021/03/27 02:12:12 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 2 |
%define release 11 |
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 |
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 |
|
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
Requires: nut nut-client daemontools |
Requires: nut nut-client daemontools |
20 |
Obsoletes: neon <= 0.25.5 |
Obsoletes: neon <= 0.25.5 |
28 |
the SME server software. |
the SME server software. |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Tue Mar 30 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-11.sme |
32 |
|
- fix start ordering nut.service [SME: 11488] |
33 |
|
|
34 |
|
* Sat Mar 27 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-10.sme |
35 |
|
- fix ExecStartPre path for /usr/lib/tmpfiles.d/nut-run.conf [SME: 11488] |
36 |
|
|
37 |
|
* Thu Mar 25 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-9.sme |
38 |
|
- fix ExecStartPre path for nut.service [SME: 11488] |
39 |
|
|
40 |
|
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
41 |
|
- fix template path for monitor [SME: 9423] |
42 |
|
|
43 |
|
* Sun Nov 29 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-6.sme |
44 |
|
- Fix preset line endings in 49-koozali.preset [SME: 11215] |
45 |
|
|
46 |
|
* Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
47 |
|
- add update event to avoid reboot [SME: 11146] |
48 |
|
- adapt nut UPS for systemd [SME: 9423] |
49 |
|
|
50 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-2.sme |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-2.sme |
51 |
- Initial release to sme10 |
- Initial release to sme10 |
52 |
|
|
267 |
|
|
268 |
%prep |
%prep |
269 |
%setup |
%setup |
270 |
|
%patch0 -p1 |
271 |
|
%patch1 -p1 |
272 |
|
%patch2 -p1 |
273 |
|
%patch3 -p1 |
274 |
|
|
275 |
|
rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut |
276 |
|
mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d |
277 |
|
|
278 |
|
|
279 |
%build |
%build |
280 |
perl createlinks |
perl createlinks |