1 |
# $Id: e-smith-nutUPS.spec,v 1.10 2015/02/07 10:18:12 stephdl Exp $ |
# $Id: e-smith-nutUPS.spec,v 1.5 2020/11/19 04:26:25 jpp 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 1 |
%define release 5 |
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 |
|
|
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
Requires: nut nut-client daemontools |
Requires: nut nut-client daemontools |
17 |
Obsoletes: neon <= 0.25.5 |
Obsoletes: neon <= 0.25.5 |
18 |
Requires: e-smith-lib >= 1.15.1-16 |
Requires: e-smith-lib >= 1.15.1-16 |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
|
Patch0 : e-smith-nutUPS-2.4.0.Listen_Local_Network.patch |
|
|
Patch1 : e-smith-nutUPS-2.4.0.UPS_administrative_privileges.patch |
|
21 |
AutoReqProv: no |
AutoReqProv: no |
22 |
|
|
23 |
%description |
%description |
25 |
the SME server software. |
the SME server software. |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
* Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
29 |
|
- add update event to avoid reboot [SME: 11146] |
30 |
|
- adapt nut UPS for systemd [SME: 9423] |
31 |
|
|
32 |
|
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-2.sme |
33 |
- Initial release to sme10 |
- Initial release to sme10 |
34 |
|
|
35 |
* Sat Feb 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-9.sme |
* Sat Feb 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-9.sme |
249 |
|
|
250 |
%prep |
%prep |
251 |
%setup |
%setup |
252 |
|
%patch0 -p1 |
253 |
|
rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut |
254 |
|
mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d |
255 |
|
|
256 |
|
|
257 |
%build |
%build |
258 |
perl createlinks |
perl createlinks |