Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
openslp
openslp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openslp.spec of Package openslp
# # spec file for package openslp # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: openslp BuildRequires: bison BuildRequires: flex BuildRequires: libtool BuildRequires: openssl-devel %if 0%{?suse_version} > 1140 BuildRequires: systemd %define has_systemd 1 %endif Summary: An OpenSLP Implementation of Service Location Protocol V2 License: BSD-3-Clause Group: System/Daemons Version: 1.2.0 Release: 0 Url: http://www.openslp.org/ # bug437293 %ifarch ppc64 Obsoletes: openslp-64bit %endif # BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %name-%version.tar.bz2 Source1: slpd.init Source2: README.SuSE Source3: openslp.desktop Source4: openslp-devel.desktop Source5: openslp.logrotate Source6: slpd.xml Source7: openslp.SuSEfirewall2 Source8: baselibs.conf Source9: slpd.service Patch1: openslp.diff Patch2: openslp.audit.diff Patch3: extensions.diff Patch4: slptool-timeout.diff Patch5: hppa.diff Patch6: v1dadiscovery.diff Patch7: openslp.poll.diff Patch8: openslp.v1sladdr.diff Patch9: openslp.tcpclearovr.diff Patch10: openslp.checkovr.diff Patch11: openslp.truncate.diff Patch12: openslp.emptyanswer.diff Patch13: openslp.doubleequal.diff Patch14: openslp.dereg.diff Patch15: openslp.fixaddrcheck.diff Patch16: openslp.fixdsareturn.diff Patch17: openslp.clrflags.diff Patch18: openslp.use-TCPDIAG-for-checking-listeners Patch19: openslp.discovery.diff Patch20: openslp.initda.diff Patch21: openslp.ignorespaces.diff Patch22: openslp.parseext.diff Patch23: openslp-1.2.0-visibility.patch Patch24: openslp-1.2.0-daemon.diff %description Service Location Protocol is an IETF standards track protocol that provides a framework that allows 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 slptool and runtime libraries. %package server Summary: The OpenSLP Implementation of the Service Location Protocol V2 Group: System/Daemons PreReq: %fillup_prereq %insserv_prereq /usr/sbin/useradd %if 0%{?has_systemd} %{?systemd_requires} %endif Recommends: logrotate %description server Service Location Protocol is an IETF standards track protocol that provides a framework that allows networking applications to discover the existence, location, and configuration of networked services in enterprise networks. This package contains the SLP server. Every system, which provides any services that should be used via an SLP client must run this server and register the service. %package devel Requires: openssl-devel openslp = %version Summary: OpenSLP Development SDK Group: System/Daemons # bug437293 %ifarch ppc64 Obsoletes: openslp-devel-64bit %endif # %description devel Service Location Protocol is an IETF standards track protocol that provides a framework that allows networking applications to discover the existence, location, and configuration of networked services in enterprise networks. This package contains header and library files to compile applications with SLP support. It also contains developer documentation to develop such applications. %prep %setup -q %patch1 %patch2 %patch3 %patch4 %ifarch hppa %patch5 %endif %patch6 %patch7 %patch8 %patch9 %patch10 %patch11 %patch12 %patch13 %patch14 %patch15 %patch16 %patch17 %patch18 -p1 %patch19 %patch20 %patch21 %patch22 %patch23 %patch24 -p1 %build autoreconf -fiv %configure --disable-static --with-pic --enable-slpv1 \ --enable-async-api \ --enable-slpv2-security %{__make} %{?jobs:-j%jobs} %install mkdir -p ${RPM_BUILD_ROOT}/etc/slp.reg.d mkdir -p ${RPM_BUILD_ROOT}/etc/slp.reg.d/slpd cp etc/slp.conf ${RPM_BUILD_ROOT}/etc cp etc/slp.reg ${RPM_BUILD_ROOT}/etc cp etc/slp.spi ${RPM_BUILD_ROOT}/etc mkdir -p ${RPM_BUILD_ROOT}/%_libdir ./libtool --mode=install install libslp/libslp.la ${RPM_BUILD_ROOT}/%_libdir mkdir -p ${RPM_BUILD_ROOT}/usr/sbin ./libtool --mode=install install slpd/slpd ${RPM_BUILD_ROOT}/usr/sbin mkdir -p ${RPM_BUILD_ROOT}/usr/bin ./libtool --mode=install install slptool/slptool ${RPM_BUILD_ROOT}/usr/bin mkdir -p ${RPM_BUILD_ROOT}/usr/include cp libslp/slp.h ${RPM_BUILD_ROOT}/usr/include mkdir -p ${RPM_BUILD_ROOT}%_defaultdocdir/%name find . -name CVS -o -name .cvsignore -o -name .xvpics | xargs rm -rf cp -a AUTHORS COPYING README FAQ doc/rfc doc/html %SOURCE2 \ ${RPM_BUILD_ROOT}%_defaultdocdir/%name mkdir -p ${RPM_BUILD_ROOT}/etc/init.d/ install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}/etc/init.d/slpd ln -sf ../../etc/init.d/slpd ${RPM_BUILD_ROOT}/usr/sbin/rcslpd ln -sf ../../etc/init.d/slpd ${RPM_BUILD_ROOT}/usr/sbin/rcopenslp install -D -m 0644 %{SOURCE5} ${RPM_BUILD_ROOT}/etc/logrotate.d/openslp-server # install susehelp file mkdir -p $RPM_BUILD_ROOT/usr/share/susehelp/meta/Administration/ install -m 0644 %SOURCE3 \ $RPM_BUILD_ROOT/usr/share/susehelp/meta/Administration/ mkdir -p $RPM_BUILD_ROOT/usr/share/susehelp/meta/Development/Libraries/ install -m 0644 %SOURCE4 \ $RPM_BUILD_ROOT/usr/share/susehelp/meta/Development/Libraries/ install -d -m 755 $RPM_BUILD_ROOT/usr/share/omc/svcinfo.d install -m 0644 %SOURCE6 $RPM_BUILD_ROOT/usr/share/omc/svcinfo.d %if 0 # actually, these files should get translated, but do we really want to # add update-desktop-files to needed_for_build ? %suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/susehelp/meta/Administration/openslp.desktop %suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/susehelp/meta/Development/Libraries/openslp-devel.desktop %endif %{__rm} -f %{buildroot}%{_libdir}/*.la %if 0%{?suse_version} install -D -m 644 %{S:7} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openslp %endif %if 0%{?has_systemd} install -D -m 644 %{S:9} %{buildroot}%{_unitdir}/slpd.service %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %pre server /usr/sbin/useradd -r -g daemon -d /var/lib/empty -s /sbin/nologin -c "openslp daemon" openslp 2>/dev/null || : %if 0%{?has_systemd} %service_add_pre slpd.service %endif %post server %if 0%{?sles_version} == 9 || 0%{?sles_version} == 10 %{fillup_and_insserv -y slpd} %else %{fillup_and_insserv slpd} %endif %if 0%{?has_systemd} %service_add_post slpd.service %endif %postun server %restart_on_update slpd %insserv_cleanup %if 0%{?has_systemd} %service_del_postun slpd.service %endif %preun server %stop_on_removal slpd %if 0%{?has_systemd} %service_del_preun slpd.service %endif %files %defattr(-,root,root) %dir %_defaultdocdir/%name %dir %_defaultdocdir/%name/html %doc %_defaultdocdir/%name/AUTHORS %doc %_defaultdocdir/%name/COPYING %doc %_defaultdocdir/%name/README %doc %_defaultdocdir/%name/README.SuSE %_libdir/libslp.so.* /usr/bin/slptool %config(noreplace) /etc/slp.conf %config(noreplace) /etc/slp.spi %files server %defattr(-,root,root) %dir /usr/share/susehelp %dir /usr/share/susehelp/meta %dir /usr/share/susehelp/meta/Administration %doc %dir %_defaultdocdir/%name/FAQ %doc %_defaultdocdir/%name/html/IntroductionToSLP %doc %_defaultdocdir/%name/html/UsersGuide %doc %_defaultdocdir/%name/html/faq.html %doc %_defaultdocdir/%name/rfc %doc /usr/share/susehelp/meta/Administration/openslp.desktop %dir /etc/slp.reg.d/ %dir /etc/slp.reg.d/slpd /usr/sbin/rcopenslp /usr/sbin/rcslpd /usr/sbin/slpd %config /etc/init.d/slpd %config(noreplace) /etc/slp.reg %config(noreplace) /etc/logrotate.d/openslp-server /usr/share/omc/svcinfo.d/slpd.xml %if 0%{?suse_version} > 0 %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openslp %endif %if 0%{?has_systemd} %{_unitdir}/slpd.service %endif %files devel %defattr(-,root,root) %dir /usr/share/susehelp %dir /usr/share/susehelp/meta %dir /usr/share/susehelp/meta/Development %dir /usr/share/susehelp/meta/Development/Libraries %doc %_defaultdocdir/%name/html/ProgrammersGuide %doc /usr/share/susehelp/meta/Development/Libraries/openslp-devel.desktop /usr/include/slp.h %_libdir/libslp.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor