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