Author: glen Date: Thu Apr 20 17:53:33 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - use %service, add chkconfig deps
---- Files affected: SPECS: ttyctrl.spec (1.3 -> 1.4) ---- Diffs: ================================================================ Index: SPECS/ttyctrl.spec diff -u SPECS/ttyctrl.spec:1.3 SPECS/ttyctrl.spec:1.4 --- SPECS/ttyctrl.spec:1.3 Tue Jul 26 00:11:26 2005 +++ SPECS/ttyctrl.spec Thu Apr 20 19:53:28 2006 @@ -13,6 +13,9 @@ URL: http://ttyctrl.sourceforge.net/ #Obsoletes: cpanel #from http://www.linux-magazin.de/ausgabe/2000/09/Seriell/seriell.html +BuildRequires: rpmbuild(macros) >= 1.268 +Requires(post,preun): /sbin/chkconfig +Requires: rc-scripts BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -41,7 +44,7 @@ %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{/etc/{ttyctrl,rc.d/init.d},/sbin,%{_examplesdir}/%{name}-%{version}} +install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ttyctrl},/sbin,%{_examplesdir}/%{name}-%{version}} install tty_control $RPM_BUILD_ROOT/sbin install %{name_dash} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d @@ -55,17 +58,17 @@ %preun if [ "$1" = "0" ]; then - /etc/rc.d/init.d/%{name_dash} stop + %service %{name_dash} stop /sbin/chkconfig --del %{name} fi %files %defattr(644,root,root,755) -%doc info.txt readme +%doc info.txt readme %attr(755,root,root) /sbin/* %{_examplesdir}/%{name}-%{version} %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* -%config(noreplace) %verify(not md5 mtime size) /etc/ttyctrl +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ttyctrl %attr(754,root,root) /etc/rc.d/init.d/%{name_dash} #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name_dash} @@ -75,6 +78,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.4 2006/04/20 17:53:28 glen +- use %service, add chkconfig deps + Revision 1.3 2005/07/25 22:11:26 qboosh - pl fixes/unification, cleanups ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/ttyctrl.spec?r1=1.3&r2=1.4&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
