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