2004-11-08 04:56:10 +00:00
|
|
|
|
2005-03-03 23:53:13 +00:00
|
|
|
Summary: Open implementation of Service Location Protocol V2
|
|
|
|
Name: openslp
|
2013-10-01 09:08:52 +00:00
|
|
|
Version: 2.0.0
|
2014-08-17 14:05:38 +00:00
|
|
|
Release: 5%{?dist}
|
2005-04-06 22:12:42 +00:00
|
|
|
|
2005-03-03 23:53:13 +00:00
|
|
|
Group: System Environment/Libraries
|
2004-11-08 04:56:22 +00:00
|
|
|
License: BSD
|
2005-03-03 23:53:13 +00:00
|
|
|
URL: http://sourceforge.net/projects/openslp/
|
2013-01-30 16:47:29 +00:00
|
|
|
Source0: http://downloads.sf.net/openslp/openslp-%{version}.tar.gz
|
2004-11-08 04:56:10 +00:00
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
Source1: slpd.init
|
2013-10-01 09:08:52 +00:00
|
|
|
# Source1,2: simple man pages (slightly modified help2man output)
|
|
|
|
Source2: slpd.8.gz
|
|
|
|
Source3: slptool.1.gz
|
|
|
|
# Source3: service file
|
|
|
|
Source4: slpd.service
|
2009-09-16 12:59:25 +00:00
|
|
|
|
2013-10-01 09:08:52 +00:00
|
|
|
# Patch1: creates script from upstream init script that sets multicast
|
|
|
|
# prior to the start of the service
|
|
|
|
Patch1: openslp-2.0.0-multicast-set.patch
|
2014-03-17 14:11:31 +00:00
|
|
|
# Patch2: notify systemd of start-up completion
|
|
|
|
Patch2: openslp-2.0.0-notify-systemd-of-start-up.patch
|
2004-11-08 04:56:22 +00:00
|
|
|
|
2007-12-04 20:11:14 +00:00
|
|
|
BuildRequires: automake libtool
|
2005-10-21 18:56:57 +00:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2004-11-08 04:56:22 +00:00
|
|
|
BuildRequires: openssl-devel
|
2014-03-17 14:11:31 +00:00
|
|
|
BuildRequires: systemd-units systemd-devel
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2005-03-03 23:53:13 +00:00
|
|
|
OpenSLP is an open source implementation of the SLPv2 protocol as defined
|
|
|
|
by RFC 2608 and RFC 2614.
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: OpenSLP headers and libraries
|
2005-03-03 23:53:13 +00:00
|
|
|
Group: Development/Libraries
|
2009-09-16 12:59:25 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2004-11-08 04:56:10 +00:00
|
|
|
%description devel
|
|
|
|
OpenSLP header files and libraries.
|
|
|
|
|
|
|
|
%package server
|
|
|
|
Summary: OpenSLP server daemon
|
2005-03-03 23:53:13 +00:00
|
|
|
Group: System Environment/Daemons
|
2013-06-19 13:57:52 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2005-10-21 18:56:57 +00:00
|
|
|
Requires(preun): chkconfig, /sbin/service
|
2004-11-08 04:56:22 +00:00
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(postun): /sbin/service
|
2013-06-19 13:57:52 +00:00
|
|
|
Requires: net-tools
|
2004-11-08 04:56:10 +00:00
|
|
|
%description server
|
|
|
|
OpenSLP server daemon to dynamically register services.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2005-03-03 23:53:13 +00:00
|
|
|
%setup -q
|
2004-11-08 04:56:10 +00:00
|
|
|
|
2013-10-01 09:08:52 +00:00
|
|
|
%patch1 -p1 -b .multicast-set
|
2014-03-17 14:11:31 +00:00
|
|
|
%patch2 -p2 -b .systemd
|
2004-11-08 04:56:22 +00:00
|
|
|
|
2005-10-21 18:56:57 +00:00
|
|
|
# tarball goof (?), it wants to re-automake anyway, so let's do it right.
|
2009-09-16 12:59:25 +00:00
|
|
|
#libtoolize --force
|
|
|
|
#aclocal
|
|
|
|
#autoconf
|
|
|
|
#automake --add-missing
|
|
|
|
autoreconf -f -i
|
2004-11-08 04:56:22 +00:00
|
|
|
|
2004-11-08 04:56:10 +00:00
|
|
|
# remove CVS leftovers...
|
|
|
|
find . -name "CVS" | xargs rm -rf
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
2005-10-21 19:15:47 +00:00
|
|
|
# for x86_64
|
2013-10-01 09:08:52 +00:00
|
|
|
export CFLAGS="-fPIC -fno-strict-aliasing -fPIE -DPIE $RPM_OPT_FLAGS"
|
2005-10-21 19:15:47 +00:00
|
|
|
# for slpd
|
2013-10-01 09:08:52 +00:00
|
|
|
export LDFLAGS="-pie -Wl,-z,now"
|
2004-11-08 04:56:22 +00:00
|
|
|
|
2004-11-08 04:56:10 +00:00
|
|
|
%configure \
|
2013-10-01 09:08:52 +00:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--sysconfdir=%{_sysconfdir} \
|
|
|
|
--localstatedir=/var \
|
2005-10-21 18:56:57 +00:00
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-static \
|
2013-10-01 09:08:52 +00:00
|
|
|
--enable-slpv2-security \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-async-api
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2004-11-08 04:56:10 +00:00
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
install -p -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/slpd
|
2004-11-08 04:56:10 +00:00
|
|
|
|
2013-10-01 09:08:52 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/slp.reg.d
|
|
|
|
|
|
|
|
# install script that sets multicast
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/%{name}-server
|
|
|
|
install -m 0755 etc/slpd.all_init ${RPM_BUILD_ROOT}/usr/lib/%{name}-server/slp-multicast-set.sh
|
|
|
|
|
|
|
|
# install service file
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_unitdir}
|
|
|
|
install -p -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_unitdir}/slpd.service
|
|
|
|
|
|
|
|
# install man page
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8/
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1/
|
|
|
|
cp %SOURCE2 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
|
|
|
|
cp %SOURCE3 ${RPM_BUILD_ROOT}/%{_mandir}/man1/
|
|
|
|
|
2004-11-08 04:56:10 +00:00
|
|
|
# nuke unpackaged/unwanted files
|
2005-03-03 23:53:13 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/doc
|
2005-10-21 18:56:57 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
2005-10-21 18:56:57 +00:00
|
|
|
|
2004-11-08 04:56:10 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post server
|
2013-10-01 09:08:52 +00:00
|
|
|
%systemd_post slpd.service
|
2004-11-08 04:56:10 +00:00
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
%preun server
|
2013-10-01 09:08:52 +00:00
|
|
|
%systemd_preun slpd.service
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
%postun server
|
2013-10-01 09:08:52 +00:00
|
|
|
%systemd_postun_with_restart slpd.service
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
|
2005-03-03 23:53:13 +00:00
|
|
|
%files
|
2004-11-08 04:56:10 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING FAQ NEWS README THANKS
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.conf
|
2009-09-16 12:59:25 +00:00
|
|
|
%{_bindir}/slptool
|
|
|
|
%{_libdir}/libslp.so.1*
|
2013-10-01 09:08:52 +00:00
|
|
|
%{_mandir}/man1/*
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
2013-10-01 09:08:52 +00:00
|
|
|
%doc doc/doc/html/IntroductionToSLP
|
|
|
|
%doc doc/doc/html/UsersGuide
|
|
|
|
%doc doc/doc/html/faq*
|
2009-09-16 12:59:25 +00:00
|
|
|
%{_sbindir}/slpd
|
2004-11-08 04:56:10 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/slp.reg
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.spi
|
|
|
|
%config(noreplace) %{_initrddir}/slpd
|
2013-10-01 09:08:52 +00:00
|
|
|
%{_unitdir}/slpd.service
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
/usr/lib/%{name}-server/slp-multicast-set.sh
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-10-01 09:08:52 +00:00
|
|
|
%doc doc/doc/html/ProgrammersGuide
|
|
|
|
%doc doc/doc/rfc
|
2009-09-16 12:59:25 +00:00
|
|
|
%{_includedir}/slp.h
|
|
|
|
%{_libdir}/libslp.so
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-08-17 14:05:38 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-04 13:20:56 +00:00
|
|
|
* Mon Aug 04 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-4
|
|
|
|
- Link to libsystemd.so instead of old libsystemd-daemon.so
|
|
|
|
Resolves: #1125103
|
|
|
|
|
2014-06-07 16:59:26 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-17 14:11:31 +00:00
|
|
|
* Mon Mar 17 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-2
|
|
|
|
- Launch slpd as a 'notify' daemon with systemd, rather than forking
|
|
|
|
(patch by Stephen Gallagher)
|
|
|
|
|
2013-10-01 09:08:52 +00:00
|
|
|
* Tue Oct 01 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-1
|
|
|
|
- Update to openslp-2.0.0
|
|
|
|
- Fix bogus dates in %%changelog
|
|
|
|
- Add systemd support
|
|
|
|
- Add man pages for slptool and slpd
|
|
|
|
- Add CFLAGS and LDFLAGS for full relro
|
|
|
|
- Build with -fno-strict-aliasing
|
|
|
|
|
2013-08-03 15:49:49 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-19 13:56:04 +00:00
|
|
|
* Wed Jun 19 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.1-19
|
2013-06-19 13:57:52 +00:00
|
|
|
- -server: Requires: +net-tools (for netstat, #975868)
|
2013-06-19 13:56:04 +00:00
|
|
|
|
2013-01-30 16:47:29 +00:00
|
|
|
* Wed Jan 30 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.1-18
|
|
|
|
- update URL: tag (#905975)
|
|
|
|
|
2012-07-20 07:04:41 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 11:43:59 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-09 03:28:45 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-09-16 12:59:25 +00:00
|
|
|
* Wed Sep 16 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2.1-14
|
|
|
|
- slpd crashes if slptool findsrvtypes is run, when message logging is on (#523609)
|
|
|
|
|
2009-08-21 15:07:09 +00:00
|
|
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.1-13
|
|
|
|
- rebuilt with new openssl
|
|
|
|
|
2009-07-25 20:52:47 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 08:45:35 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-17 16:25:58 +00:00
|
|
|
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.1-10
|
|
|
|
- rebuild with new openssl
|
|
|
|
|
2008-02-19 21:27:35 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-9
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-12-04 20:11:14 +00:00
|
|
|
* Tue Dec 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.2.1-8
|
|
|
|
- respin for openssl
|
|
|
|
|
2007-08-21 20:13:20 +00:00
|
|
|
* Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.2.1-7
|
|
|
|
- respin (buildID)
|
|
|
|
|
2006-08-29 18:00:20 +00:00
|
|
|
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-6
|
|
|
|
- fc6 respin
|
|
|
|
|
2006-08-09 19:06:30 +00:00
|
|
|
* Wed Aug 09 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-5
|
|
|
|
- fc6 respin
|
|
|
|
|
2006-03-01 15:57:04 +00:00
|
|
|
* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
|
2006-02-10 13:30:19 +00:00
|
|
|
- fc5: gcc/glibc respin
|
|
|
|
|
2005-12-19 18:06:51 +00:00
|
|
|
* Mon Dec 19 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-4
|
|
|
|
- make %%postun safer
|
|
|
|
|
2005-11-16 17:02:49 +00:00
|
|
|
* Wed Nov 16 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-3
|
2005-12-19 18:06:51 +00:00
|
|
|
- rebuild (for new openssl)
|
|
|
|
- make %%postun safer
|
2005-11-16 17:02:49 +00:00
|
|
|
|
2005-10-21 19:15:47 +00:00
|
|
|
* Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-2
|
|
|
|
- -fPIC (for x86_64)
|
|
|
|
|
2005-10-21 18:56:57 +00:00
|
|
|
* Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.2.1-1
|
|
|
|
- 1.2.1
|
|
|
|
- move most docs to -server
|
|
|
|
- --enable-slpv2-security
|
|
|
|
- --disable-dependency-tracking
|
|
|
|
|
2005-05-23 00:20:08 +00:00
|
|
|
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.2.0
|
|
|
|
- rebuild on all arches
|
|
|
|
|
2013-10-01 09:08:52 +00:00
|
|
|
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
2005-04-06 22:12:42 +00:00
|
|
|
- rebuilt
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Mon Jul 19 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.4
|
|
|
|
- BR: flex
|
|
|
|
|
|
|
|
* Fri Jul 16 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.3
|
|
|
|
- BR: bison
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.2
|
|
|
|
- fix/add condrestart to init script
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Rex Dieter <rexdieter at sf.net> 0:1.2.0-0.fdr.1
|
|
|
|
- 1.2.0
|
2005-03-03 23:53:13 +00:00
|
|
|
- use -pie
|
2004-11-08 04:56:22 +00:00
|
|
|
- don't use Requires(post,postun)
|
|
|
|
|
|
|
|
* Fri Oct 24 2003 Rex Dieter <rexdieter af sf.net> 0:1.0.11-0.fdr.7
|
|
|
|
- fix for Fedora Core
|
|
|
|
- fix description (main package does *not* include daemon and header files).
|
|
|
|
|
|
|
|
* Fri May 30 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.6
|
2004-11-08 04:56:10 +00:00
|
|
|
- -server: Requires(preun,postun): /sbin/service
|
|
|
|
- add a few more %%doc files to base pkg.
|
|
|
|
- initscript: add (real) 'reload' action.
|
|
|
|
- initscript: use $prog instead of hardcoded slpd.
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Fri May 16 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.5
|
2004-11-08 04:56:10 +00:00
|
|
|
- -server: fix %postun on uninstall
|
|
|
|
|
2013-10-01 09:08:52 +00:00
|
|
|
* Fri May 2 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.4
|
2004-11-08 04:56:10 +00:00
|
|
|
- *really* do %%config(noreplace) slp.conf
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.3
|
2004-11-08 04:56:10 +00:00
|
|
|
- capitalize Summary's.
|
|
|
|
- %%config(noreplace) slp.conf
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.2
|
2004-11-08 04:56:10 +00:00
|
|
|
- docs: remove CVS files, include rfc, move ProgrammersGuide to -devel.
|
|
|
|
- improve sub-pkg descriptions.
|
2005-03-03 23:53:13 +00:00
|
|
|
- improve server %%preun,%%postun scripts: condrestart on upgrade,
|
2004-11-08 04:56:10 +00:00
|
|
|
suppress output of server shutdown,restarts.
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Thu May 1 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.1
|
2004-11-08 04:56:10 +00:00
|
|
|
- specfile cleanups for fedora packaging.
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Tue Apr 29 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.11-0.fdr.0
|
2004-11-08 04:56:10 +00:00
|
|
|
- 1.0.11 release.
|
|
|
|
- fedorize things
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Mon Feb 03 2003 Rex Dieter <rexdieter at sf.net> 0:1.0.10-1.0
|
2004-11-08 04:56:10 +00:00
|
|
|
- sanitize specfile
|
|
|
|
- -devel,-server subpkgs.
|