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