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