1 |
# $Id: e-smith-nutUPS.spec,v 1.8 2020/11/29 21:49:39 jcrisp Exp $ |
# $Id: e-smith-nutUPS.spec,v 1.15 2021/06/21 09:58:15 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 7 |
%define release 13 |
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-bz11215-fix-line-endings.patch |
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 |
|
Patch5: e-smith-nutUPS-2.6.0-bz12287.patch |
19 |
|
|
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
Requires: nut nut-client daemontools |
Requires: nut nut-client daemontools |
30 |
the SME server software. |
the SME server software. |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
* Sun Dec 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
34 |
|
- fix server failing if set as netserver [SME: 12287] |
35 |
|
- remove log noise for tmp files |
36 |
|
|
37 |
|
* Mon Jun 21 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-12.sme |
38 |
|
- Misspelling in /usr/lib/systemd/system/nut.service file [SME: 11633] |
39 |
|
|
40 |
|
* Tue Mar 30 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-11.sme |
41 |
|
- fix start ordering nut.service [SME: 11488] |
42 |
|
|
43 |
|
* Sat Mar 27 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-10.sme |
44 |
|
- fix ExecStartPre path for /usr/lib/tmpfiles.d/nut-run.conf [SME: 11488] |
45 |
|
|
46 |
|
* Thu Mar 25 2021 Terry Fage <tfage@yahoo.com.au> 2.6.0-9.sme |
47 |
|
- fix ExecStartPre path for nut.service [SME: 11488] |
48 |
|
|
49 |
|
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
50 |
- fix template path for monitor [SME: 9423] |
- fix template path for monitor [SME: 9423] |
51 |
|
|
52 |
* Sun Nov 29 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-6.sme |
* Sun Nov 29 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 2.6.0-6.sme |
278 |
%setup |
%setup |
279 |
%patch0 -p1 |
%patch0 -p1 |
280 |
%patch1 -p1 |
%patch1 -p1 |
281 |
|
%patch2 -p1 |
282 |
|
%patch3 -p1 |
283 |
|
%patch4 -p1 |
284 |
|
%patch5 -p1 |
285 |
|
|
286 |
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 |
287 |
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 |