2006-12-18 23:17:15 +00:00
|
|
|
#
|
2011-11-16 14:20:43 +00:00
|
|
|
# spec file for package openslp
|
2006-12-18 23:17:15 +00:00
|
|
|
#
|
2022-06-22 12:26:59 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2006-12-18 23:17:15 +00:00
|
|
|
#
|
2008-08-21 16:49:33 +00:00
|
|
|
# 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.
|
|
|
|
|
2022-06-22 12:26:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-18 23:17:15 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-06-07 13:53:26 +00:00
|
|
|
%define libname libslp1
|
2006-12-18 23:17:15 +00:00
|
|
|
Name: openslp
|
2019-06-07 13:53:26 +00:00
|
|
|
Version: 2.0.0
|
|
|
|
Release: 0
|
2019-06-11 09:55:02 +00:00
|
|
|
Summary: An Implementation of Service Location Protocol V2
|
2011-12-06 17:34:39 +00:00
|
|
|
License: BSD-3-Clause
|
2006-12-18 23:17:15 +00:00
|
|
|
Group: System/Daemons
|
2019-06-07 13:53:26 +00:00
|
|
|
URL: http://www.openslp.org/
|
|
|
|
Source0: http://sourceforge.net/projects/openslp/files/2.0.0/%{version}/%{name}-%{version}.tar.gz
|
2014-02-19 17:44:41 +00:00
|
|
|
Source2: README.SUSE
|
2006-12-18 23:17:15 +00:00
|
|
|
Source3: openslp.desktop
|
|
|
|
Source4: openslp-devel.desktop
|
|
|
|
Source5: openslp.logrotate
|
2010-10-15 10:39:37 +00:00
|
|
|
Source8: baselibs.conf
|
2011-12-23 22:23:29 +00:00
|
|
|
Source9: slpd.service
|
2017-11-30 03:13:26 +00:00
|
|
|
Source10: openslp.logrotate.systemd
|
2014-02-19 17:44:41 +00:00
|
|
|
Patch1: openslp.audit.diff
|
|
|
|
Patch2: extensions.diff
|
|
|
|
Patch3: openslp.truncate.diff
|
|
|
|
Patch4: openslp.netlink.diff
|
|
|
|
Patch5: openslp.initda.diff
|
|
|
|
Patch6: openslp.visibility.diff
|
|
|
|
Patch7: openslp.daemon.diff
|
|
|
|
Patch8: openslp.cloexec.diff
|
|
|
|
Patch9: openslp.hardmtu.diff
|
|
|
|
Patch10: openslp.tcplocal.diff
|
|
|
|
Patch11: openslp.localtime.diff
|
2014-07-28 03:30:41 +00:00
|
|
|
Patch12: openslp.sd_notify.diff
|
2016-09-12 12:26:21 +00:00
|
|
|
Patch13: openslp.predicatestorage.diff
|
|
|
|
Patch14: openslp.doubleequal.diff
|
|
|
|
Patch15: openslp.noconvenience.diff
|
2016-09-13 11:55:46 +00:00
|
|
|
Patch16: openslp.xrealloc.diff
|
2016-10-12 12:07:33 +00:00
|
|
|
Patch17: openslp.foldws.diff
|
2017-06-14 02:59:54 +00:00
|
|
|
Patch18: openslp.openssl-1.1.diff
|
2018-03-05 16:06:09 +00:00
|
|
|
Patch19: openslp.localaddr.diff
|
|
|
|
Patch20: openslp.tcpunicast.diff
|
2018-09-03 12:13:13 +00:00
|
|
|
Patch21: openslp-2.0.0-ifdef-slpv2.diff
|
2019-06-07 14:03:54 +00:00
|
|
|
Patch22: openslp.tcpknownda.diff
|
|
|
|
Patch23: openslp.nullattr.diff
|
2019-06-07 13:53:26 +00:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2014-09-01 13:58:21 +00:00
|
|
|
|
2006-12-18 23:17:15 +00:00
|
|
|
%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
|
2019-06-11 09:55:02 +00:00
|
|
|
networks.
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
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
|
2019-06-11 09:55:02 +00:00
|
|
|
Summary: The OpenSLP Implementation of the Service Location Protocol V2
|
2012-02-08 20:18:39 +00:00
|
|
|
Group: System/Daemons
|
2020-03-24 16:08:34 +00:00
|
|
|
Requires: openslp
|
2019-06-07 13:53:26 +00:00
|
|
|
Requires(pre): group(daemon)
|
|
|
|
Requires(pre): shadow
|
2008-11-17 16:38:39 +00:00
|
|
|
Recommends: logrotate
|
2019-06-07 13:53:26 +00:00
|
|
|
%{?systemd_requires}
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%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
|
2019-06-11 09:55:02 +00:00
|
|
|
networks.
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-06-07 13:53:26 +00:00
|
|
|
%package -n %{libname}
|
2019-06-11 09:55:02 +00:00
|
|
|
Summary: An Implementation of the Service Location Protocol V2
|
2019-06-07 13:53:26 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
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
|
2019-06-11 09:55:02 +00:00
|
|
|
networks.
|
2019-06-07 13:53:26 +00:00
|
|
|
|
2006-12-18 23:17:15 +00:00
|
|
|
%package devel
|
2019-06-11 09:55:02 +00:00
|
|
|
Summary: Header files for OpenSLP
|
2019-06-07 13:53:26 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-06-12 13:01:01 +00:00
|
|
|
Requires: %{libname} = %{version}
|
2019-06-07 13:53:26 +00:00
|
|
|
Requires: openssl-devel
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%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
|
2019-06-11 09:55:02 +00:00
|
|
|
networks.
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
|
|
|
%patch8
|
|
|
|
%patch9
|
|
|
|
%patch10
|
|
|
|
%patch11
|
2014-07-28 03:30:41 +00:00
|
|
|
%patch12
|
2016-09-12 12:26:21 +00:00
|
|
|
%patch13
|
|
|
|
%patch14
|
|
|
|
%patch15
|
2016-09-13 11:55:46 +00:00
|
|
|
%patch16
|
2016-10-12 12:07:33 +00:00
|
|
|
%patch17
|
2017-06-14 02:59:54 +00:00
|
|
|
%patch18 -p2
|
2018-03-05 16:06:09 +00:00
|
|
|
%patch19
|
|
|
|
%patch20
|
2018-09-03 12:13:13 +00:00
|
|
|
%patch21 -p1
|
2019-06-07 14:03:54 +00:00
|
|
|
%patch22
|
|
|
|
%patch23
|
2016-09-13 11:55:46 +00:00
|
|
|
|
2006-12-18 23:17:15 +00:00
|
|
|
%build
|
2009-01-22 12:06:13 +00:00
|
|
|
autoreconf -fiv
|
2019-06-07 13:53:26 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--enable-slpv1 \
|
2006-12-18 23:17:15 +00:00
|
|
|
--enable-async-api \
|
|
|
|
--enable-slpv2-security
|
2019-06-07 13:53:26 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%install
|
2019-06-07 13:53:26 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/slp.reg.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/slp.reg.d/slpd
|
|
|
|
cp etc/slp.conf %{buildroot}%{_sysconfdir}
|
|
|
|
cp etc/slp.reg %{buildroot}%{_sysconfdir}
|
|
|
|
cp etc/slp.spi %{buildroot}%{_sysconfdir}
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
|
|
|
./libtool --mode=install install libslp/libslp.la %{buildroot}/%{_libdir}
|
|
|
|
rm %{buildroot}%{_libdir}/libslp.la
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
./libtool --mode=install install slpd/slpd %{buildroot}%{_sbindir}
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
./libtool --mode=install install slptool/slptool %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
cp libslp/slp.h %{buildroot}%{_includedir}
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
2006-12-18 23:17:15 +00:00
|
|
|
find . -name CVS -o -name .cvsignore -o -name .xvpics | xargs rm -rf
|
2019-06-07 13:53:26 +00:00
|
|
|
cp -a AUTHORS README FAQ doc/doc/rfc doc/doc/html %{SOURCE2} \
|
|
|
|
%{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcslpd
|
|
|
|
cat > %{buildroot}%{_sbindir}/rcopenslp <<'EOF'
|
2016-09-13 11:31:01 +00:00
|
|
|
#!/bin/sh
|
2019-06-07 13:53:26 +00:00
|
|
|
exec %{_sbindir}/rcslpd "$@"
|
2016-09-13 11:31:01 +00:00
|
|
|
EOF
|
2019-06-07 13:53:26 +00:00
|
|
|
chmod 755 %{buildroot}%{_sbindir}/rcopenslp
|
2022-06-22 12:26:59 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
mkdir -p %{buildroot}%{_distconfdir}/logrotate.d
|
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_distconfdir}/logrotate.d/openslp-server
|
|
|
|
%else
|
2019-06-07 13:53:26 +00:00
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/logrotate.d/openslp-server
|
2022-06-22 12:26:59 +00:00
|
|
|
%endif
|
2006-12-18 23:17:15 +00:00
|
|
|
# install susehelp file
|
2019-06-07 13:53:26 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Administration/
|
|
|
|
install -m 0644 %{SOURCE3} \
|
|
|
|
%{buildroot}%{_datadir}/susehelp/meta/Administration/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
|
|
|
install -m 0644 %{SOURCE4} \
|
|
|
|
%{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
2006-12-18 23:17:15 +00:00
|
|
|
|
2019-06-07 13:53:26 +00:00
|
|
|
install -D -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/slpd.service
|
2011-11-16 14:20:43 +00:00
|
|
|
|
2012-08-30 23:50:58 +00:00
|
|
|
#XXX test suite requires root
|
2014-02-19 17:44:41 +00:00
|
|
|
#check
|
2012-08-30 23:50:58 +00:00
|
|
|
#make check
|
|
|
|
|
2019-06-07 13:53:26 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2022-06-22 12:26:59 +00:00
|
|
|
|
2011-03-01 17:47:39 +00:00
|
|
|
%pre server
|
2019-06-07 13:53:26 +00:00
|
|
|
getent passwd openslp >/dev/null || useradd -r -g daemon -d %{_localstatedir}/lib/empty -s /sbin/nologin -c "openslp daemon" openslp
|
2011-12-23 22:23:29 +00:00
|
|
|
%service_add_pre slpd.service
|
2022-10-28 12:52:36 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
# Prepare for migration to /usr/etc; save any old .rpmsave
|
|
|
|
for i in logrotate.d/openslp-server ; do
|
|
|
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%posttrans server
|
|
|
|
# Migration to /usr/etc, restore just created .rpmsave
|
|
|
|
for i in logrotate.d/openslp-server ; do
|
|
|
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
|
|
|
done
|
|
|
|
%endif
|
2011-03-01 17:47:39 +00:00
|
|
|
|
2006-12-18 23:17:15 +00:00
|
|
|
%post server
|
2011-12-23 22:23:29 +00:00
|
|
|
%service_add_post slpd.service
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%postun server
|
2011-12-23 22:23:29 +00:00
|
|
|
%service_del_postun slpd.service
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%preun server
|
2011-12-23 22:23:29 +00:00
|
|
|
%service_del_preun slpd.service
|
2019-06-07 13:53:26 +00:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libslp.so.*
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%files
|
2018-03-05 16:06:09 +00:00
|
|
|
%license COPYING
|
2019-06-07 13:53:26 +00:00
|
|
|
%dir %{_defaultdocdir}/%{name}
|
|
|
|
%dir %{_defaultdocdir}/%{name}/html
|
|
|
|
%doc %{_defaultdocdir}/%{name}/AUTHORS
|
|
|
|
%doc %{_defaultdocdir}/%{name}/README
|
|
|
|
%doc %{_defaultdocdir}/%{name}/README.SUSE
|
2015-03-18 16:42:50 +00:00
|
|
|
%{_bindir}/slptool
|
2019-06-07 13:53:26 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/slp.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.spi
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%files server
|
2019-06-07 13:53:26 +00:00
|
|
|
%dir %{_datadir}/susehelp
|
|
|
|
%dir %{_datadir}/susehelp/meta
|
|
|
|
%dir %{_datadir}/susehelp/meta/Administration
|
|
|
|
%doc %{_defaultdocdir}/%{name}/FAQ
|
|
|
|
%doc %{_defaultdocdir}/%{name}/html/IntroductionToSLP
|
|
|
|
%doc %{_defaultdocdir}/%{name}/html/UsersGuide
|
|
|
|
%doc %{_defaultdocdir}/%{name}/html/faq.html
|
|
|
|
%doc %{_defaultdocdir}/%{name}/rfc
|
|
|
|
%doc %{_datadir}/susehelp/meta/Administration/openslp.desktop
|
|
|
|
%dir %{_sysconfdir}/slp.reg.d/
|
|
|
|
%dir %{_sysconfdir}/slp.reg.d/slpd
|
|
|
|
%{_sbindir}/rcopenslp
|
|
|
|
%{_sbindir}/rcslpd
|
|
|
|
%{_sbindir}/slpd
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.reg
|
2022-06-22 12:26:59 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%{_distconfdir}/logrotate.d/openslp-server
|
|
|
|
%else
|
2019-06-07 13:53:26 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/openslp-server
|
2022-06-22 12:26:59 +00:00
|
|
|
%endif
|
2011-12-23 22:23:29 +00:00
|
|
|
%{_unitdir}/slpd.service
|
2006-12-18 23:17:15 +00:00
|
|
|
|
|
|
|
%files devel
|
2019-06-07 13:53:26 +00:00
|
|
|
%dir %{_datadir}/susehelp
|
|
|
|
%dir %{_datadir}/susehelp/meta
|
|
|
|
%dir %{_datadir}/susehelp/meta/Development
|
|
|
|
%dir %{_datadir}/susehelp/meta/Development/Libraries
|
|
|
|
%doc %{_defaultdocdir}/%{name}/html/ProgrammersGuide
|
|
|
|
%doc %{_datadir}/susehelp/meta/Development/Libraries/openslp-devel.desktop
|
|
|
|
%{_includedir}/slp.h
|
|
|
|
%{_libdir}/libslp.so
|
2006-12-18 23:17:15 +00:00
|
|
|
|
2007-03-29 16:23:18 +00:00
|
|
|
%changelog
|