]> git.pld-linux.org Git - packages/apmud.git/blobdiff - apmud.spec
- tabs in preamble
[packages/apmud.git] / apmud.spec
index a5b605d98fc196c4d4a8682097a413faa51151c9..3568be95b35fdf32b0ecdd8f07c1e701fc9f878f 100644 (file)
@@ -1,5 +1,5 @@
 Summary:       Power Manager daemon for Apple PowerBooks
-Summary(pl):   Demon zarz±dzaj±cy poborem energii dla komputerów Apple PowerBook
+Summary(pl.UTF-8):     Demon zarządzający poborem energii dla komputerów Apple PowerBook
 Name:          apmud
 Version:       1.0.0
 Release:       1
@@ -10,13 +10,14 @@ Source0:    http://linuxppc.jvc.nl/%{name}-%{version}.tgz
 Source1:       %{name}.init
 Patch0:                %{name}-pwrctl.patch
 URL:           http://linuxppc.jvc.nl/
-Requires:      chkconfig
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
 Requires:      dev
 Requires:      hdparm
 Provides:      apmd
+Obsoletes:     apmd
 ExclusiveArch: ppc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes:     apmd
 
 %description
 pmud is a daemon which periodically polls the PMU (power manager) and
@@ -24,11 +25,11 @@ performs functions such as enabling or disabling devices appropriately
 when the power source changes. It can also be instructed to signal
 init(8) that a power-failure has occured.
 
-%description -l pl
-pmud to demon regularnie odpytuj±cy PMU (jednostkê zarz±dzaj±ce
-energi±) i wykonuj±cy funkcje takie jak w³±czanie i wy³±czanie
-urz±dzeñ odpowiednio do zmian ¼ród³a zasilania. Mo¿e tak¿e powiadomiæ
-proces init o wyst±pieniu awarii zasilania.
+%description -l pl.UTF-8
+pmud to demon regularnie odpytujący PMU (jednostkę zarządzające
+energią) i wykonujący funkcje takie jak włączanie i wyłączanie
+urządzeń odpowiednio do zmian źródła zasilania. Może także powiadomić
+proces init o wystąpieniu awarii zasilania.
 
 %prep
 %setup -q -n %{name}
@@ -60,17 +61,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add pmud
-if [ -f /var/lock/subsys/pmud ]; then
-       /etc/rc.d/init.d/pmud restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/pmud start\" to start pmud daemon."
-fi
+%service pmud restart "pmud daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/pmud ]; then
-               /etc/rc.d/init.d/pmud stop >&2
-       fi
+       %service pmud stop
        /sbin/chkconfig --del pmud
 fi
 
@@ -79,7 +74,8 @@ fi
 %doc BUGS CHANGES INSTALL README THANKS TODO pwrctl-local
 %attr(755,root,root) %{_sbindir}/*
 %attr(755,root,root) %{_bindir}/*
-%attr(644,root,root) /etc/sysconfig/power
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/power
 %attr(754,root,root) /etc/rc.d/init.d/pmud
+%dir %{_sysconfdir}/power
 %attr(640,root,root) %{_sysconfdir}/power/pwrctl
 %{_mandir}/man8/*
This page took 0.276942 seconds and 4 git commands to generate.