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