SPECS: nut.spec - package udev nut-usbups.rules
sls
sls at pld-linux.org
Thu Jul 26 14:51:06 CEST 2007
Author: sls Date: Thu Jul 26 12:51:06 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- package udev nut-usbups.rules
---- Files affected:
SPECS:
nut.spec (1.132 -> 1.133)
---- Diffs:
================================================================
Index: SPECS/nut.spec
diff -u SPECS/nut.spec:1.132 SPECS/nut.spec:1.133
--- SPECS/nut.spec:1.132 Thu Jul 26 14:16:48 2007
+++ SPECS/nut.spec Thu Jul 26 14:51:01 2007
@@ -2,7 +2,6 @@
# TODO:
# - unpackaged files:
# /usr/html/{{bottom,header,index}.html,nut-banner.png}
-# /etc/udev/rules.d/52_nut-usbups.rules
# - upsdrvctl (used by ups.init) doesn't recognize status and reload commands
#
# Conditional build:
@@ -15,7 +14,7 @@
Summary(pl.UTF-8): Sieciowe narzędzie do UPS-ów
Name: nut
Version: 2.2.0
-Release: 0.5
+Release: 0.6
License: GPL
Group: Applications/System
Source0: http://eu1.networkupstools.org/source/2.2/%{name}-%{version}.tar.gz
@@ -45,6 +44,7 @@
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/ups
+%define _udevrulesdir /etc/udev/rules.d
%description
These programs are part of a developing project to monitor the
@@ -219,6 +219,12 @@
install clients/upsclient.o common/parseconf.o $RPM_BUILD_ROOT%{_libdir}
install clients/upsclient.h include/parseconf.h $RPM_BUILD_ROOT%{_includedir}/nut
+%if %{with usb}
+mv -f $RPM_BUILD_ROOT%{_udevrulesdir}/52{_,-}nut-usbups.rules
+%else
+rm -f $RPM_BUILD_ROOT%{_udevrulesdir}/52_nut-usbups.rules
+%endif
+
cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF
#!/bin/sh
/etc/rc.d/init.d/ups powerdown
@@ -376,6 +382,7 @@
%{?with_usb:%{_mandir}/man8/tripplite_usb.8*}
%{?with_usb:%{_mandir}/man8/usbhid-ups.8*}
%{_mandir}/man8/victronups.8*
+%{?with_usb:%config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/52-nut-usbups.rules}
%files common
%defattr(644,root,root,755)
@@ -425,6 +432,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.133 2007/07/26 12:51:01 sls
+- package udev nut-usbups.rules
+
Revision 1.132 2007/07/26 12:16:48 sls
- upssched-cmd moved to _sysconfdir
- added upssched-cmd-sysconf.patch
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nut.spec?r1=1.132&r2=1.133&f=u
More information about the pld-cvs-commit
mailing list