Name: openslp Version: 1.2.1 Release: 4mamba Summary: An open-source implementation of Service Location Protocol Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.openslp.org Source: http://puzzle.dl.sourceforge.net/sourceforge/openslp/%{name}-%{version}.tar.gz Patch0: %{name}-1.2.1-optflags.patch Patch1: %{name}-1.2.1-export_slp_net_symbols License: BSD BuildRequires: flex BuildRequires: bison BuildRequires: libtool ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libopenssl-devel ## AUTOBUILDREQ-END Requires: libopenslp = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. %package -n libopenslp Summary: Shared libraries for openslp Group: System/Libraries %description -n libopenslp 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. This is the openslp library. %package -n libopenslp-devel Summary: Static libraries and headers for openslp Group: Development/Libraries Requires: libopenslp = %{?epoch:%epoch:}%{version}-%{release} %description -n libopenslp-devel 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. This package contains static libraries and header files need for development. %prep %setup -q %patch0 -p1 -b .optflags %patch1 -p1 -b .export_slp_net_symbols %build %configure \ --enable-slpv2-security \ --sysconfdir=%{_sysconfdir}/slp %make \ %if "%{_build}" != "%{_host}" LDFLAGS="-lssl -lcrypto -ldl -pie" \ %else LDFLAGS="-pie" \ %endif CFLAGS="%{optflags} \ -fPIC" \ %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -D -m 755 etc/slpd.all_init \ %{buildroot}%{_initrddir}/slpd rm -rf rpmdoc mv %{buildroot}%{_prefix}/doc/%{name}-%{version} rpmdoc find rpmdoc -name CVS | xargs rm -rf %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n libopenslp -p /sbin/ldconfig %postun -n libopenslp -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/slptool %{_sbindir}/slpd %config(noreplace) %{_initrddir}/slpd %dir %{_sysconfdir}/slp %config(noreplace) %{_sysconfdir}/slp/slp.conf %config(noreplace) %{_sysconfdir}/slp/slp.reg %config(noreplace) %{_sysconfdir}/slp/slp.spi %doc AUTHORS ChangeLog COPYING FAQ NEWS README THANKS %files -n libopenslp %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/*.so.* %files -n libopenslp-devel %defattr(-,root,root) %{_libdir}/*.a %{_libdir}/*.la %{_includedir}/*.h %doc rpmdoc/* %changelog * Sat Sep 18 2010 Silvan Calarco 1.2.1-4mamba - rebuilt with openssl 1.0 * Mon Jun 29 2009 Silvan Calarco 1.2.1-3mamba - specfile updated and rebuilt * Wed Mar 21 2007 Davide Madrisan 1.2.1-2qilnx - export the SLPNetGetThisHostname symbol needed by kdenetwork3 * Fri Nov 18 2005 Stefano Cotta Ramusino 1.2.1-1qilnx - update to version 1.2.1 by autospec - added optflags patch - added missing requirements * Tue Mar 22 2005 Davide Madrisan 1.0.11-3qilnx - security fix based on SUSE's audit: QSA-2005-030 - specfile fixes - own /etc/slp/ * Tue Oct 28 2003 Davide Madrisan 1.0.11-2qilnx - added missing scripts * Thu Jul 31 2003 Silvan Calarco 1.0.11-1qilnux - first build for openslp (initscript missing, built for kdenetwork)