3 |
|
|
4 |
Summary: Power management software for APC UPS hardware |
Summary: Power management software for APC UPS hardware |
5 |
Name: apcupsd |
Name: apcupsd |
6 |
Version: 3.14.10 |
Version: 3.14.12 |
7 |
Release: %mkrel 7 |
Release: %mkrel 1 |
8 |
License: GPLv2 |
License: GPLv2 |
9 |
Group: System/Servers |
Group: System/Servers |
10 |
URL: http://sourceforge.net/projects/apcupsd/ |
URL: http://sourceforge.net/projects/apcupsd/ |
11 |
Source0: http://mesh.dl.sourceforge.net/sourceforge/apcupsd/%{name}-%{version}.tar.gz |
Source0: http://mesh.dl.sourceforge.net/sourceforge/apcupsd/%{name}-%{version}.tar.gz |
12 |
Patch1: apcupsd-3.10.16-staleusb.patch |
Patch1: apcupsd-3.14.12-default-host.patch |
13 |
Patch2: apcupsd-3.14.4-mdv_conf.diff |
Patch2: apcupsd-3.14.12-mdv_conf.diff |
|
Patch3: apcupsd-3.14.10-link.patch |
|
|
Patch4: apcupsd-3.14.10-lockdir.patch |
|
14 |
Requires(post): rpm-helper |
Requires(post): rpm-helper |
15 |
Requires(preun):rpm-helper |
Requires(preun):rpm-helper |
16 |
Requires: tcp_wrappers |
Requires: tcp_wrappers |
28 |
power failure. |
power failure. |
29 |
|
|
30 |
%prep |
%prep |
|
|
|
31 |
%setup -q |
%setup -q |
32 |
%patch1 -p1 -b .usbstale |
%patch1 -p1 |
33 |
%patch2 -p0 -b .mdv_conf |
%patch2 -p0 -b .mdv_conf |
|
%patch3 -p0 -b .link |
|
|
%patch4 -p1 -b .lock |
|
34 |
|
|
35 |
# fix attribs |
# fix attribs |
36 |
find examples -type f | xargs chmod 644 |
find examples -type f | xargs chmod 644 |
48 |
--with-cgi-bin=%{_cgibin} \ |
--with-cgi-bin=%{_cgibin} \ |
49 |
--with-serial-dev= \ |
--with-serial-dev= \ |
50 |
--with-upstype=usb \ |
--with-upstype=usb \ |
51 |
|
--with-halpolicydir="" \ |
52 |
--with-upscable=usb \ |
--with-upscable=usb \ |
53 |
|
--with-lock-dir=/run/lock \ |
54 |
--with-nisip=127.0.0.1 \ |
--with-nisip=127.0.0.1 \ |
55 |
--with-libwrap |
--with-libwrap |
56 |
|
|