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