]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- gapcmon specific url, hal cleanup auto/ti/apcupsd-3.14.10-1
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 17 Dec 2011 23:47:05 +0000 (23:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd.spec -> 1.98

apcupsd.spec

index c0990d1fe05c3a9225da58d77d64683ba63e54ec..fa301609ccb58c675787171a17322b723c3fc9a4 100644 (file)
@@ -1,5 +1,3 @@
-# TODO
-# - /usr/share/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi
 #
 # Conditional build:
 %bcond_without cgi     # without CGI program support
@@ -8,7 +6,7 @@
 %bcond_with    snmp    # with SNMP support
 %bcond_without test    # without TEST support
 %bcond_without usb     # without USB support
-#
+
 Summary:       Power management software for APC UPS hardware
 Summary(pl.UTF-8):     Oprogramowanie do zarządzania energią dla UPS-ów APC
 Name:          apcupsd
@@ -74,6 +72,7 @@ o stanie UPS-a.
 Summary:       Apcupsd GUI monitoring application
 Summary(pl.UTF-8):     Aplikacja GUI monitorowania Apcupsd
 Group:         X11/Applications
+URL:           http://gapcmon.sourceforge.net/
 
 %description gapcmon
 GNOME/GTK+ based application which integrates into most desktop panels
@@ -123,18 +122,21 @@ install -d $RPM_BUILD_ROOT/etc/{apcupsd,logrotate.d,rc.d/init.d,sysconfig} \
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apcupsd
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apcupsd
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/apcupsd
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apcupsd
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apcupsd
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/apcupsd
 
 touch $RPM_BUILD_ROOT/var/log/apcupsd.events
 touch $RPM_BUILD_ROOT/var/lib/apcupsd/apcupsd.status
 
 cat > $RPM_BUILD_ROOT/etc/rc.d/init.d/halt << EOF
 #!/bin/sh
-/etc/rc.d/init.d/apcupsd powerdown
+exec /etc/rc.d/init.d/apcupsd powerdown
 EOF
 
+# no hal
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.098052 seconds and 4 git commands to generate.