]> git.pld-linux.org Git - packages/nut.git/blame - nut.spec
- release 4 (by relup.sh)
[packages/nut.git] / nut.spec
CommitLineData
5b1b7012 1# TODO:
339bd4b5 2# - upsdrvctl (used by ups.init) doesn't recognize status and reload commands
93d02520 3#
d42048d2
SS
4# Conditional build:
5%bcond_without usb # build without usb drivers
d42048d2 6%bcond_without snmp # build without snmp driver
7a608f5b 7%bcond_without cgi # build without cgi support
3bb01442 8%bcond_without neon # build with neon based XML/HTTP driver
d42048d2 9#
b5b3df3f 10Summary: Network UPS Tools
c6724b41 11Summary(pl.UTF-8): Sieciowe narzędzie do UPS-ów
bdc056b1 12Name: nut
c32c067c 13Version: 2.7.2
0754afea 14Release: 4
685b18fd
JB
15License: GPL
16Group: Applications/System
c32c067c
AM
17Source0: http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz
18# Source0-md5: c3568b42e058cfc385b46d25140dced4
40676016
SZ
19Source1: %{name}.init
20Source2: %{name}.sysconfig
21Source3: %{name}-upsmon.init
c98eee00 22Source4: %{name}.sysconfig.upsmon
b89318ae 23Patch0: %{name}-client.patch
339bd4b5
SS
24Patch1: %{name}-config.patch
25Patch2: %{name}-smartdp-load.patch
60ae02c4 26Patch3: %{name}-upssched-cmd-sysconf.patch
ab5c8dc2 27Patch4: %{name}-matrix.patch
886bb137 28Patch5: systemd-sysconfig.patch
4c4d687d 29Patch6: bcmxcp-off-by-one.patch
d2013d2d 30URL: http://www.networkupstools.org/
8888735b 31BuildRequires: autoconf
bb94ceb4 32BuildRequires: automake
e25b7168 33BuildRequires: avahi-devel
e25b7168 34BuildRequires: freeipmi-devel
7a608f5b 35%{?with_cgi:BuildRequires: gd-devel >= 2.0.15}
e25b7168 36BuildRequires: libltdl-devel
f46735f6 37BuildRequires: libtool
6391f583 38%{?with_usb:BuildRequires: libusb-compat-devel}
000d9048 39BuildRequires: libwrap-devel
3bb01442 40%{?with_neon:BuildRequires: neon-devel}
7a608f5b 41%{?with_snmp:BuildRequires: net-snmp-devel}
64d0f8a3 42BuildRequires: openssl-devel >= 0.9.7d
ff1ad787 43BuildRequires: pkgconfig
b1b1fe3e
JR
44BuildRequires: rpmbuild(macros) >= 1.647
45Requires: systemd-units >= 38
e3eed19f 46Requires(post,preun): /sbin/chkconfig
d2013d2d 47Requires: %{name}-common = %{version}-%{release}
bafdd0d8 48Requires: rc-scripts
c32c067c 49Obsoletes: nut-hal
4ad00b30 50Obsoletes: smartupstools
685b18fd 51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
bdc056b1 52
b5b3df3f 53%define _sysconfdir /etc/ups
5bc24011 54%define _udevrulesdir /etc/udev/rules.d
256539ca 55
56%description
12fd7daa 57These programs are part of a developing project to monitor the
58assortment of UPSes that are found out there in the field. Many models
59have serial serial ports of some kind that allow some form of state
60checking. This capability has been harnessed where possible to allow
61for safe shutdowns, live status tracking on web pages, and more.
a3e2bab2 62
9a270388
JR
63%description -l pl.UTF-8
64Te programy są częścią projektu do monitorowania wielu UPS-ów w jakimś
65otoczeniu. Wiele modeli ma porty szeregowe i pozwala na jakąś formę
66sprawdzania stanu. Ta funkcjonalność pozwala na bezpieczne
67zatrzymywanie systemów, sprawdzanie stanu zasilania przez WWW i inne.
68
69%description -l ru.UTF-8
70Эти программы - часть проекта по мониторингу различных UPS. У многих
71моделей есть сериальные порты, позволяющие проверять состояние этих
72UPS. Эта возможность была использована, где это возможно, для
73выполнения безопасных остановов компьютеров, отслеживания статуса
74через веб и т.п.
75
76%description -l uk.UTF-8
77Ці програми є частиною проекту по моніторингу різноманітних UPS.
78Багато моделей мають серіальні порти, що дозволять перевіряти стан цих
79UPS. Ця можливість була використана, де це можливо, для виконання
80безпечних зупинок комп'ютерів, відслідковування статусу через веб,
81тощо.
5ae18b3b 82
61cb8b6a
JB
83%package common
84Summary: Package with common files for nut daemon and its clients
c6724b41 85Summary(pl.UTF-8): Pakiet z plikami wspólnymi dla demona nut i jego klientów
61cb8b6a 86Group: Applications/System
bafdd0d8
ER
87Requires(postun): /usr/sbin/groupdel
88Requires(postun): /usr/sbin/userdel
f70aa0cd
AZ
89Requires(pre): /bin/id
90Requires(pre): /usr/bin/getgid
91Requires(pre): /usr/sbin/groupadd
92Requires(pre): /usr/sbin/groupmod
93Requires(pre): /usr/sbin/useradd
f70aa0cd
AZ
94Provides: group(ups)
95Provides: user(ups)
61cb8b6a
JB
96
97%description common
98Package with common files for nut daemon and its clients.
99
9a270388
JR
100%description common -l pl.UTF-8
101Pakiet z plikami wspólnymi dla demona nut i jego klientów.
61cb8b6a 102
256539ca 103%package client
b5b3df3f 104Summary: Multi-vendor UPS Monitoring Project Client Utilities
c6724b41
ER
105Summary(pl.UTF-8): Narzędzia klienckie do monitorowania UPS-ów
106Summary(ru.UTF-8): Network UPS Tools - клиентские утилиты мониторинга
107Summary(uk.UTF-8): Network UPS Tools - клієнтські утиліти моніторингу
12fd7daa 108Group: Applications/System
61cb8b6a 109Requires(post,preun): /sbin/chkconfig
d2013d2d 110Requires: %{name}-common = %{version}-%{release}
bafdd0d8 111Requires: rc-scripts
b1b1fe3e 112Requires: systemd-units >= 38
256539ca 113
114%description client
12fd7daa 115This package includes the client utilities that are required to
e3915765 116monitor a UPS that the client host is plugged into but monitored via
12fd7daa 117serial cable by another host on the network....
256539ca 118
9a270388
JR
119%description client -l pl.UTF-8
120Ten pakiet zawiera narzędzia kliencie potrzebne do monitorowania UPS-a
121do którego podłączony jest komputer kliencki, kiedy kabel szeregowy
122UPS-a jest podłączony do innego komputera w sieci.
e3915765 123
9a270388
JR
124%description client -l ru.UTF-8
125Этот пакет включает клиентские утилиты, необходимые для мониторинга
126UPS, к которому клиентский хост имеет доступ, но UPS физически
127подключен к другому компьютеру в сети.
5ae18b3b 128
9a270388
JR
129%description client -l uk.UTF-8
130Цей пакет включає клієнтські утиліти, потрібні для моніторингу UPS, до
131якого клієнтський хост має доступ, але UPS фізично підключений до
132іншого комп'ютеру в мережі.
5ae18b3b 133
b5b3df3f 134%package cgi
135Summary: Multi-vendor UPS Monitoring Project Server - CGI utils
c6724b41
ER
136Summary(pl.UTF-8): Narzędzia CGI do monitorowania UPS-ów
137Summary(ru.UTF-8): Network UPS Tools - CGI утилиты
138Summary(uk.UTF-8): Network UPS Tools - CGI утиліти
12fd7daa 139Group: Applications/System
d2013d2d 140Requires: %{name}-common = %{version}-%{release}
256539ca 141
b5b3df3f 142%description cgi
12fd7daa 143These programs are part of a developing project to monitor the
144assortment of UPSes that are found out there in the field. Many models
145have serial serial ports of some kind that allow some form of state
146checking. This capability has been harnessed where possible to allow
27c27cdd 147for safe shutdowns, live status tracking on web pages, and more. This
148package contains CGI utils.
bdc056b1 149
9a270388
JR
150%description cgi -l pl.UTF-8
151Te programy są częścią projektu do monitorowania wielu UPS-ów w jakimś
152otoczeniu. Wiele modeli ma porty szeregowe i pozwala na jakąś formę
153sprawdzania stanu. Ta funkcjonalność pozwala na bezpieczne
154zatrzymywanie systemów, sprawdzanie stanu zasilania przez WWW i inne.
155Ten pakiet zawiera narzędzia CGI.
e3915765 156
9a270388
JR
157%description cgi -l ru.UTF-8
158Этот пакет включает CGI программы для доступа к информации о статусе
159UPS через веб-интерфейс.
5ae18b3b 160
9a270388
JR
161%description cgi -l uk.UTF-8
162Цей пакет включає CGI програми для доступу до інформації про статус
163UPS через веб-інтерфейс.
5ae18b3b 164
75ada04b
JB
165%package devel
166Summary: Files for NUT clients development
c6724b41 167Summary(pl.UTF-8): Pliki do tworzenia klientów NUT-a
75ada04b 168Group: Development/Libraries
af28b6bf 169Requires: %{name}-common = %{version}-%{release}
ff1ad787 170Requires: openssl-devel >= 0.9.7c
75ada04b
JB
171
172%description devel
173Object file and header for developing NUT clients.
174
9a270388
JR
175%description devel -l pl.UTF-8
176Plik wynikowy oraz nagłówek służące do tworzenia klientów NUT-a.
75ada04b 177
256539ca 178%prep
bdc056b1 179%setup -q
47438095 180%patch0 -p1
339bd4b5 181%patch1 -p1
7993f35d 182%patch2 -p1
60ae02c4 183%patch3 -p1
ab5c8dc2 184%patch4 -p1
886bb137 185%patch5 -p1
4c4d687d 186%patch6 -p1
256539ca 187
188%build
98bc0d34 189cp -f /usr/share/automake/config.sub .
f46735f6 190%{__libtoolize}
a1ad492b 191%{__aclocal} -I m4
47438095 192%{__automake}
e9811b1d 193%{__autoconf}
bdc056b1 194%configure \
47438095 195 --datadir=%{_datadir}/%{name} \
4216d435 196 --with-htmlpath=%{_datadir}/%{name}/html \
25a2fc94 197 --with-serial \
384d7906 198 --with%{!?with_usb:out}-usb \
4216d435 199 --with%{!?with_snmp:out}-snmp \
384d7906 200 --with%{!?with_cgi:out}-cgi \
e25b7168 201 --with-avahi \
e25b7168 202 --with-ipmi \
4216d435 203 --with-dev \
da001d3c 204 --with%{!?with_neon:out}-neon \
4216d435 205 --with-ssl \
c32c067c 206 --with-openssl \
4216d435 207 %{?with_usb:--with-udev-dir=/etc/udev} \
bb94ceb4 208 --with-statepath=%{_var}/lib/ups \
f0c6d93d 209 --with-drvpath=/lib/nut \
bb94ceb4 210 --with-cgipath=/home/services/httpd/cgi-bin \
303dd488 211 --with-systemdsystemunitdir=%{systemdunitdir} \
00007c1c 212 --with-user=ups \
f0c6d93d 213 --with-group=ups
4216d435 214
c476bf32 215%{__make}
256539ca 216
217%install
b5b3df3f 218rm -rf $RPM_BUILD_ROOT
4216d435 219install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},/var/lib/ups,/lib/nut,/sbin}
256539ca 220
32690701 221%{__make} install \
bb94ceb4 222 DESTDIR=$RPM_BUILD_ROOT
256539ca 223
dd7f6db0 224install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ups
40676016
SZ
225install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ups
226install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/upsmon
c98eee00 227install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/upsmon
256539ca 228
8dfff0e5
JR
229ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/ups.service
230ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/upsmon.service
231
ed885e39
SS
232for i in $RPM_BUILD_ROOT%{_sysconfdir}/*.sample; do
233 mv -f $i ${i%.sample}
234done
aa4169fd 235
000d9048 236%{!?with_usb:rm -f $RPM_BUILD_ROOT%{_udevrulesdir}/52-nut-usbups.rules}
5bc24011 237
fcb7474e
AM
238cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF
239#!/bin/sh
0443ac0c
JR
240echo "Switching the power off"
241/lib/nut/upsdrvctl shutdown
242sleep 60
fcb7474e
AM
243EOF
244
8db396f1
AF
245%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
246
e3915765
JB
247%clean
248rm -rf $RPM_BUILD_ROOT
249
8e1c5beb 250%post
1014bdfe 251/sbin/ldconfig
8e1c5beb 252/sbin/chkconfig --add ups
bafdd0d8 253%service ups restart "NUT ups daemon"
344a26f9 254%systemd_post nut-driver.service nut-server.service
1014bdfe 255
8e1c5beb
JB
256%preun
257if [ "$1" = "0" ]; then
bafdd0d8 258 %service ups stop
8e1c5beb
JB
259 /sbin/chkconfig --del ups
260fi
344a26f9
JR
261%systemd_preun nut-driver.service nut-server.service
262
263%postun
264/sbin/ldconfig
265%systemd_reload
266
267%triggerpostun -- nut < 2.6.4-2
268[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
269[ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ] && exit 0
8dfff0e5 270[ "$(echo /etc/rc.d/rc[0-6].d/S[0-9][0-9]ups)" != "/etc/rc.d/rc[0-6].d/S[0-9][0-9]ups" ] || exit 0
344a26f9 271%systemd_service_enable nut-driver.service nut-server.service
8e1c5beb 272
f70aa0cd 273%pre common
ec237ac6 274# move to trigger?
e671beae 275if [ -n "`/usr/bin/getgid ups 2> /dev/null`" ] && [ "`/usr/bin/getgid ups 2> /dev/null`" = 121 ]; then
ec237ac6
ER
276 /usr/sbin/groupmod -g 76 ups
277 chgrp ups %{_sysconfdir}/{upsd.conf,ups.conf,upsd.users}
278 /usr/sbin/usermod -g 76 ups
00007c1c 279fi
ec237ac6
ER
280%groupadd -g 76 ups
281%useradd -u 70 -d /usr/share/empty -s /bin/false -c "UPS Manager User" -g ups ups
00007c1c 282
a1819ca1
JR
283%post common -p /sbin/ldconfig
284
285%postun common
286/sbin/ldconfig
287if [ "$1" = "0" ]; then
288 %userremove ups
289 %groupremove ups
290fi
291
40676016
SZ
292%post client
293/sbin/chkconfig --add upsmon
bafdd0d8 294%service upsmon restart "NUT upsmon daemon"
344a26f9 295%systemd_post nut-monitor.service
40676016 296
40676016
SZ
297%preun client
298if [ "$1" = "0" ]; then
bafdd0d8 299 %service upsmon stop
40676016
SZ
300 /sbin/chkconfig --del upsmon
301fi
344a26f9
JR
302%systemd_preun nut-monitor.service
303
304%postun client
305%systemd_reload
306
307%triggerpostun client -- nut-client < 2.6.4-2
308[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
309[ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ] && exit 0
f1a4b7c1 310/sbin/chkconfig --list upsmon 2>/dev/null | grep -qsv "[0-6]:on" && exit 0
8dfff0e5 311[ "$(echo /etc/rc.d/rc[0-6].d/S[0-9][0-9]upsmon)" != "/etc/rc.d/rc[0-6].d/S[0-9][0-9]upsmon" ] || exit 0
344a26f9 312%systemd_service_enable nut-monitor.service
27c27cdd 313
256539ca 314%files
bdc056b1 315%defattr(644,root,root,755)
aea10c66 316%attr(755,root,root) %{_bindir}/nut-scanner
17231a88 317%attr(755,root,root) %{_bindir}/upscmd
bdc056b1 318%attr(755,root,root) %{_bindir}/upslog
b43b4863 319%attr(755,root,root) %{_bindir}/upsrw
bb94ceb4 320%attr(755,root,root) %{_sbindir}/upsd
c32c067c 321%attr(755,root,root) %{_sbindir}/upsdrvctl
fcb7474e 322%attr(755,root,root) /sbin/poweroff-ups
aea10c66 323%attr(755,root,root) %ghost %{_libdir}/libnutscan.so.1
1014bdfe 324%attr(755,root,root) %{_libdir}/libnutscan.so.*.*.*
b2c2fd62 325%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ups
dd7f6db0 326%attr(754,root,root) /etc/rc.d/init.d/ups
000d9048 327%attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nut.conf
b2c2fd62
JB
328%attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsd.conf
329%attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ups.conf
330%attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsd.users
886bb137
JR
331%{systemdunitdir}/nut-driver.service
332%{systemdunitdir}/nut-server.service
8dfff0e5 333%{systemdunitdir}/ups.service
61cb8b6a
JB
334%{_mandir}/man5/ups.conf.5*
335%{_mandir}/man5/upsd.conf.5*
336%{_mandir}/man5/upsd.users.5*
886bb137 337%{_mandir}/man8/nut-recorder.8*
aea10c66 338%{_mandir}/man8/nut-scanner.8*
61cb8b6a 339%{_mandir}/man8/upscmd.8*
e3eed19f 340%{_mandir}/man8/upscode2.8*
61cb8b6a
JB
341%{_mandir}/man8/upsd.8*
342%{_mandir}/man8/upsdrvctl.8*
343%{_mandir}/man8/upslog.8*
344%{_mandir}/man8/upsrw.8*
f0c6d93d
JK
345%dir %attr(770,root,ups) /var/lib/ups
346%dir /lib/nut
c32c067c 347%attr(755,root,root) /lib/nut/al175
8eb1294c 348%attr(755,root,root) /lib/nut/apcsmart
aea10c66 349%attr(755,root,root) /lib/nut/apcsmart-old
c32c067c 350%attr(755,root,root) /lib/nut/apcupsd-ups
8eb1294c 351%attr(755,root,root) /lib/nut/bcmxcp
d42048d2 352%{?with_usb:%attr(755,root,root) /lib/nut/bcmxcp_usb}
8eb1294c
SS
353%attr(755,root,root) /lib/nut/belkin
354%attr(755,root,root) /lib/nut/belkinunv
355%attr(755,root,root) /lib/nut/bestfcom
da001d3c 356%attr(755,root,root) /lib/nut/bestfortress
8eb1294c
SS
357%attr(755,root,root) /lib/nut/bestuferrups
358%attr(755,root,root) /lib/nut/bestups
000d9048
JR
359%attr(755,root,root) /lib/nut/blazer_ser
360%{?with_usb:%attr(755,root,root) /lib/nut/blazer_usb}
da001d3c
AM
361%attr(755,root,root) /lib/nut/clone
362%attr(755,root,root) /lib/nut/clone-outlet
b89318ae 363%attr(755,root,root) /lib/nut/dummy-ups
8eb1294c
SS
364%attr(755,root,root) /lib/nut/etapro
365%attr(755,root,root) /lib/nut/everups
8eb1294c
SS
366%attr(755,root,root) /lib/nut/gamatronic
367%attr(755,root,root) /lib/nut/genericups
8eb1294c 368%attr(755,root,root) /lib/nut/isbmex
da001d3c 369%attr(755,root,root) /lib/nut/ivtscd
8eb1294c 370%attr(755,root,root) /lib/nut/liebert
b7f84caf 371%attr(755,root,root) /lib/nut/liebert-esp2
8eb1294c 372%attr(755,root,root) /lib/nut/masterguard
8eb1294c
SS
373%attr(755,root,root) /lib/nut/metasys
374%attr(755,root,root) /lib/nut/mge-shut
375%attr(755,root,root) /lib/nut/mge-utalk
000d9048 376%attr(755,root,root) /lib/nut/microdowell
3bb01442 377%{?with_neon:%attr(755,root,root) /lib/nut/netxml-ups}
c32c067c
AM
378%{?with_usb:%attr(755,root,root) /lib/nut/nutdrv_atcl_usb}
379%attr(755,root,root) /lib/nut/nutdrv_qx
e25b7168 380%attr(755,root,root) /lib/nut/nut-ipmipsu
303dd488 381%attr(755,root,root) /lib/nut/oldmge-shut
8eb1294c
SS
382%attr(755,root,root) /lib/nut/oneac
383%attr(755,root,root) /lib/nut/optiups
384%attr(755,root,root) /lib/nut/powercom
385%attr(755,root,root) /lib/nut/powerpanel
386%attr(755,root,root) /lib/nut/rhino
000d9048 387%{?with_usb:%attr(755,root,root) /lib/nut/richcomm_usb}
c32c067c
AM
388%attr(755,root,root) /lib/nut/riello_ser
389%{?with_usb:%attr(755,root,root) /lib/nut/riello_usb}
8eb1294c 390%attr(755,root,root) /lib/nut/safenet
b89318ae 391%attr(755,root,root) /lib/nut/skel
d42048d2 392%{?with_snmp:%attr(755,root,root) /lib/nut/snmp-ups}
8eb1294c
SS
393%attr(755,root,root) /lib/nut/solis
394%attr(755,root,root) /lib/nut/tripplite
8eb1294c 395%attr(755,root,root) /lib/nut/tripplitesu
d42048d2 396%{?with_usb:%attr(755,root,root) /lib/nut/tripplite_usb}
8eb1294c 397%attr(755,root,root) /lib/nut/upscode2
d42048d2 398%{?with_usb:%attr(755,root,root) /lib/nut/usbhid-ups}
8eb1294c 399%attr(755,root,root) /lib/nut/victronups
9ba64f92 400%dir %{_datadir}/nut
303dd488
AM
401%{_datadir}/nut/cmdvartab
402%{_datadir}/nut/driver.list
da001d3c 403%{_mandir}/man5/nut.conf.5*
c32c067c 404%{_mandir}/man8/al175.8*
b89318ae 405%{_mandir}/man8/apcsmart.8*
aea10c66 406%{_mandir}/man8/apcsmart-old.8*
c32c067c 407%{_mandir}/man8/apcupsd-ups.8*
b89318ae 408%{_mandir}/man8/bcmxcp.8*
d42048d2 409%{?with_usb:%{_mandir}/man8/bcmxcp_usb.8*}
b89318ae
SS
410%{_mandir}/man8/belkin.8*
411%{_mandir}/man8/belkinunv.8*
412%{_mandir}/man8/bestfcom.8*
da001d3c 413%{_mandir}/man8/bestfortress.8*
b89318ae
SS
414%{_mandir}/man8/bestuferrups.8*
415%{_mandir}/man8/bestups.8*
c32c067c
AM
416%{_mandir}/man8/blazer_ser.8*
417%{?with_usb:%{_mandir}/man8/blazer_usb.8*}
da001d3c 418%{_mandir}/man8/clone.8*
b89318ae 419%{_mandir}/man8/dummy-ups.8*
b89318ae
SS
420%{_mandir}/man8/etapro.8*
421%{_mandir}/man8/everups.8*
cb3bd3f3 422%{_mandir}/man8/gamatronic.8*
b89318ae
SS
423%{_mandir}/man8/genericups.8*
424%{_mandir}/man8/isbmex.8*
da001d3c 425%{_mandir}/man8/ivtscd.8*
b89318ae 426%{_mandir}/man8/liebert.8*
b7f84caf 427%{_mandir}/man8/liebert-esp2.8*
b89318ae 428%{_mandir}/man8/masterguard.8*
b89318ae
SS
429%{_mandir}/man8/metasys.8*
430%{_mandir}/man8/mge-shut.8*
431%{_mandir}/man8/mge-utalk.8*
000d9048 432%{_mandir}/man8/microdowell.8*
3bb01442 433%{?with_neon:%{_mandir}/man8/netxml-ups.8*}
c32c067c
AM
434%{?with_usb:%{_mandir}/man8/nutdrv_atcl_usb.8*}
435%{_mandir}/man8/nutdrv_qx.8*
e25b7168 436%{_mandir}/man8/nut-ipmipsu.8*
b89318ae
SS
437%{_mandir}/man8/nutupsdrv.8*
438%{_mandir}/man8/oneac.8*
439%{_mandir}/man8/optiups.8*
440%{_mandir}/man8/powercom.8*
441%{_mandir}/man8/powerpanel.8*
cb3bd3f3 442%{_mandir}/man8/rhino.8*
000d9048 443%{?with_usb:%{_mandir}/man8/richcomm_usb.8*}
c32c067c
AM
444%{_mandir}/man8/riello_ser.8*
445%{?with_usb:%{_mandir}/man8/riello_usb.8*}
b89318ae 446%{_mandir}/man8/safenet.8*
d42048d2 447%{?with_snmp:%{_mandir}/man8/snmp-ups.8*}
b89318ae
SS
448%{_mandir}/man8/solis.8*
449%{_mandir}/man8/tripplite.8*
450%{_mandir}/man8/tripplitesu.8*
d42048d2
SS
451%{?with_usb:%{_mandir}/man8/tripplite_usb.8*}
452%{?with_usb:%{_mandir}/man8/usbhid-ups.8*}
b89318ae 453%{_mandir}/man8/victronups.8*
5bc24011 454%{?with_usb:%config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/52-nut-usbups.rules}
e25b7168 455%config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/52-nut-ipmipsu.rules
256539ca 456
61cb8b6a
JB
457%files common
458%defattr(644,root,root,755)
cb3bd3f3 459%doc AUTHORS MAINTAINERS NEWS README UPGRADING ChangeLog docs
61cb8b6a 460%dir %{_sysconfdir}
c32c067c
AM
461%attr(755,root,root) %ghost %{_libdir}/libnutclient.so.0
462%attr(755,root,root) %{_libdir}/libnutclient.so.*.*.*
463%attr(755,root,root) %ghost %{_libdir}/libupsclient.so.4
af28b6bf 464%attr(755,root,root) %{_libdir}/libupsclient.so.*.*.*
61cb8b6a 465
256539ca 466%files client
bdc056b1 467%defattr(644,root,root,755)
bdc056b1 468%attr(755,root,root) %{_bindir}/upsc
2d7b3549
MK
469%attr(755,root,root) %{_sbindir}/upsmon
470%attr(755,root,root) %{_sbindir}/upssched
40676016 471%attr(754,root,root) /etc/rc.d/init.d/upsmon
f70aa0cd
AZ
472%attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsmon.conf
473%attr(640,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upssched.conf
60ae02c4 474%attr(750,root,ups) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upssched-cmd
b2c2fd62 475%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/upsmon
886bb137
JR
476/lib/systemd/system-shutdown/nutshutdown
477%{systemdunitdir}/nut-monitor.service
8dfff0e5 478%{systemdunitdir}/upsmon.service
61cb8b6a
JB
479%{_mandir}/man5/upsmon.conf.5*
480%{_mandir}/man5/upssched.conf.5*
481%{_mandir}/man8/upsc.8*
482%{_mandir}/man8/upsmon.8*
483%{_mandir}/man8/upssched.8*
256539ca 484
7a608f5b 485%if %{with cgi}
b5b3df3f 486%files cgi
bdc056b1 487%defattr(644,root,root,755)
4216d435 488%{_datadir}/%{name}/html
bb94ceb4 489%attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi
b2c2fd62
JB
490%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts.conf
491%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsset.conf
492%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.html
61cb8b6a
JB
493%{_mandir}/man5/hosts.conf.5*
494%{_mandir}/man5/upsset.conf.5*
495%{_mandir}/man5/upsstats.html.5*
496%{_mandir}/man8/upsimage.cgi.8*
497%{_mandir}/man8/upsset.cgi.8*
498%{_mandir}/man8/upsstats.cgi.8*
7a608f5b 499%endif
75ada04b
JB
500
501%files devel
502%defattr(644,root,root,755)
c32c067c 503%attr(755,root,root) %{_libdir}/libnutclient.so
4216d435 504%attr(755,root,root) %{_libdir}/libupsclient.so
886bb137 505%attr(755,root,root) %{_libdir}/libnutscan.so
c32c067c 506%{_pkgconfigdir}/libnutclient.pc
886bb137 507%{_pkgconfigdir}/libnutscan.pc
c32c067c 508%{_pkgconfigdir}/libupsclient.pc
4216d435
JR
509%{_includedir}/*.h
510%{_mandir}/man3/*.3*
This page took 0.182451 seconds and 4 git commands to generate.