Hi,
Forget the previous mail...
This patch combines 4 things:
1) Buildrequires: xmlto
2) disable autostart service only if the last rpm is removed
3) use %{_sysconfdir} instead of /etc in preun scriptlet
4) Add
%{_mandir}/man8/eagleconfig_front.bash.8*
%{_mandir}/man8/eagletestconnec.8*
Tell me if you dislike some parts, I can make more targeted patches.
Pat
Index: eagle-usb.spec
===================================================================
RCS file: /cvs/eagleusb/eagleusb/eagle-usb.spec,v
retrieving revision 1.17
diff -u -3 -p -u -r1.17 eagle-usb.spec
--- eagle-usb.spec 17 Nov 2004 20:55:09 -0000 1.17
+++ eagle-usb.spec 28 Nov 2004 00:02:33 -0000
@@ -11,6 +11,7 @@ URL: http://www.eagle-usb.org
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: %{name} = %{version}
Obsoletes: adiusbadsl, eagle
+Buildrequires: xmlto
%description
This is an enhanced version of the Linux driver for DSL modems based
@@ -46,16 +47,20 @@ hash -r
%preun
%{_sbindir}/fctStopAdsl -sf
+
+if [ "$1" = 0 ]; then
# disable autostart service
# - mandrake specific script
if test -e /etc/init.d/internet ; then \
/sbin/chkconfig --del internet &>/dev/null ; \
fi
# - generic script
-if test -e /etc/init.d/eagle-usb ; then \
+if test -e %{_sysconfdir}/init.d/eagle-usb ; then \
/sbin/chkconfig --del eagle-usb &>/dev/null ; \
/sbin/update-rc.d -f eagle-usb remove &>/dev/null ; \
fi
+
+fi
# return 0
echo -n
@@ -74,6 +79,8 @@ hash -r
%{_mandir}/man8/pppoa.8*
%{_mandir}/man8/startadsl.8*
%{_mandir}/man8/stopadsl.8*
+%{_mandir}/man8/eagleconfig_front.bash.8*
+%{_mandir}/man8/eagletestconnec.8*
%{_sbindir}/fctStartAdsl
%{_sbindir}/fctStopAdsl
%{_sbindir}/startadsl