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