Author: qboosh                       Date: Sun Apr 16 08:28:47 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, some cleanups

---- Files affected:
SPECS:
   tpctl.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/tpctl.spec
diff -u SPECS/tpctl.spec:1.1 SPECS/tpctl.spec:1.2
--- SPECS/tpctl.spec:1.1        Mon Apr 10 19:24:02 2006
+++ SPECS/tpctl.spec    Sun Apr 16 10:28:42 2006
@@ -1,5 +1,6 @@
 # $Revision$, $Date$
 Summary:       IBM ThinkPad configuration tools
+Summary(pl):   Narzędzia konfiguracyjne dla laptopów IBM ThinkPad
 Name:          tpctl
 Version:       4.17
 Release:       1
@@ -18,8 +19,13 @@
 %description
 tpctl is a package of IBM ThinkPad configuration tools for Linux.
 
+%description -l pl
+tpctl to pakiet narzędzie konfiguracyjnych dla laptopów IBM ThinkPad
+dla Linuksa.
+
 %package -n apmiser
 Summary:       IBM ThinkPad APM settings daemon
+Summary(pl):   Demon ustawień APM dla laptopów IBM ThinkPad
 Group:         Daemons
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name} = %{version}-%{release}
@@ -28,6 +34,10 @@
 apmiser is a tool for IBM ThinkPads that automatically controls the
 APM power settings based on your usage patterns.
 
+%description -n apmiser -l pl
+apmiser to narzędzie dla laptopów IBM ThinkPad automatycznie sterujące
+ustawieniami zasilania APM w oparciu o wybrane wzorce wykorzystania.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -44,7 +54,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_mandir}/man8,%{_initrddir}}
+install -d $RPM_BUILD_ROOT{%{_mandir}/man8,/etc/rc.d/init.d}
 %{__make} install \
        DEST=$RPM_BUILD_ROOT \
        PATH_BIN=%{_bindir}/ \
@@ -52,29 +62,28 @@
        PATH_MAN=%{_mandir}/ \
        PATH_SBIN=%{_sbindir}/
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/apmiser
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apmiser
 install man/apmiser.8 tpctlir/tpctlir.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %post -n apmiser
-[ $1 -eq 1 ] && chkconfig --add apmiser || :
+/sbin/chkconfig --add apmiser
+#%%service apmiser restart
+if [ "$1" != "0" ]; then
+       /etc/rc.d/init.d/apmiser try-restart
+fi
 
 %preun -n apmiser
-if [ $1 -eq 0 ] ; then
-  chkconfig --del apmiser
-  %{_initrddir}/apmiser stop >/dev/null 2>&1 || :
+if [ "$1" = "0" ] ; then
+       %service apmiser stop
+       /sbin/chkconfig --del apmiser
 fi
 
-%postun -n apmiser
-[ $1 -gt 0 ] && %{_initrddir}/apmiser try-restart >/dev/null || :
-
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog COPYING README* SUPPORTED* TROUBLE* VGA-MODES
@@ -87,7 +96,7 @@
 %files -n apmiser
 %defattr(644,root,root,755)
 %doc apmiser/README
-%attr(755,root,root) %config %{_initrddir}/*
+%attr(754,root,root) /etc/rc.d/init.d/*
 %attr(755,root,root) %{_sbindir}/apmiser
 %{_mandir}/man8/apmiser.8*
 
@@ -97,6 +106,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/04/16 08:28:42  qboosh
+- pl, some cleanups
+
 Revision 1.1  2006/04/10 17:24:02  adamg
 - new
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/tpctl.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to