%define libver 1.1.0 %define initscript slpd # Needed to set up and remove init symlinks when all else fails... %define startnum 13 %define killnum 87 Name : openslp Summary : OpenSLP implementation of Service Location Protocol V2 Version : 1.2.1 Release : 2ark License : BSD Group : System Environment/Daemons URL : http://www.openslp.org/ BuildRoot : %{_tmppath}/%{name}-root Source0 : %name-%version.tar.bz2 Source1 : slpd.init %Description Service Location Protocol is an IETF standards track protocol that provides a framework to allow networking applications to discover the existence, location, and configuration of networked services in enterprise networks. OpenSLP is an open source implementation of the SLPv2 protocol as defined by RFC 2608 and RFC 2614. This package includes the daemon, libraries, header files and documentation. %prep %setup %build libtoolize --force --copy autoheader aclocal automake --add-missing --copy autoconf %configure make %?_smp_mflags %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%_sysconfdir/rc.d/init.d install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}%_sysconfdir/rc.d/init.d/%{initscript} mkdir -p $RPM_BUILD_ROOT%_docdir mv $RPM_BUILD_ROOT%_prefix/doc/%name-%version $RPM_BUILD_ROOT%_docdir %post /sbin/chkconfig --add %initscript /sbin/ldconfig %preun if [ "$1" = "0" ]; then /sbin/chkconfig --del %initscript fi %postun -p /sbin/ldconfig %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc %_docdir/%name-%version %config %_sysconfdir/slp.conf %config %_sysconfdir/slp.spi %config %_sysconfdir/slp.reg %_includedir/slp.h %_libdir/libslp* %_bindir/slptool %_sbindir/slpd %_sysconfdir/rc.d/init.d/%{initscript} %changeLog * Thu May 24 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 1.2.1-2ark - Rebuild in current environment * Tue Nov 15 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 1.2.1-1ark - initial package