rm -rf $RPM_BUILD_ROOT
%post
-NAME=decnet; %chkconfig_add
+/sbin/chkconfig --add decnet
/sbin/ldconfig
-%preun
-NAME=decnet; %chkconfig_del
-
%postun
/sbin/ldconfig
+if [ $1 = 0 ]; then
+ /sbin/chkconfig --del decnet
+fi
%files
%defattr(644,root,root,755)