2005-05-23 00:20:08 +00:00
|
|
|
# $Id: openslp.spec,v 1.7 2005/05/23 00:20:08 katzj Exp $
|
2004-11-08 04:56:10 +00:00
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
%define pie 1
|
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
|
2004-11-08 04:56:22 +00:00
|
|
|
Version: 1.2.0
|
2005-05-23 00:20:08 +00:00
|
|
|
Release: 6%{?dist_tag}
|
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://www.openslp.org/
|
|
|
|
URL: http://sourceforge.net/projects/openslp/
|
2004-11-08 04:56:22 +00:00
|
|
|
Source: http://dl.sourceforge.net/sourceforge/openslp/openslp-1.2.0.tar.gz
|
2004-11-08 04:56:10 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
Source1: slpd.init
|
2005-03-03 23:53:13 +00:00
|
|
|
Patch1: openslp-1.2.0-optflags.patch
|
2004-11-08 04:56:22 +00:00
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
BuildRequires: bison flex
|
|
|
|
#BuildRequires: byacc
|
|
|
|
BuildRequires: openssl-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
|
|
|
|
Requires: %{name} = %{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
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2004-11-08 04:56:22 +00:00
|
|
|
Requires(preun): chkconfig /sbin/service
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(postun): /sbin/service
|
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
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
%patch1 -p1 -b .optflags
|
|
|
|
|
|
|
|
libtoolize --force
|
|
|
|
aclocal
|
|
|
|
autoconf
|
|
|
|
automake --add-missing
|
|
|
|
|
2004-11-08 04:56:10 +00:00
|
|
|
# remove CVS leftovers...
|
|
|
|
find . -name "CVS" | xargs rm -rf
|
|
|
|
|
|
|
|
# remove hard-coded compiler flags: -O3 -Wall
|
|
|
|
perl -pi -e "s@-O3@@g" configure
|
2004-11-08 04:56:22 +00:00
|
|
|
#perl -pi -e "s@-Wall@@g" configure
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
%{?pie:export CFLAGS="-fPIC $RPM_OPT_FLAGS"; export LDFLAGS="-pie"}
|
|
|
|
|
2004-11-08 04:56:10 +00:00
|
|
|
%configure \
|
2004-11-08 04:56:22 +00:00
|
|
|
--disable-static
|
|
|
|
# --enable-slpv2-security
|
|
|
|
# --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
|
|
|
|
|
|
|
# nuke unpackaged/unwanted files
|
2005-03-03 23:53:13 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/doc
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2004-11-08 04:56:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post server
|
|
|
|
/sbin/chkconfig --add slpd
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
%preun server
|
|
|
|
if [ $1 -eq 0 ]; then
|
2004-11-08 04:56:10 +00:00
|
|
|
/sbin/service slpd stop >/dev/null 2>&1 ||:
|
|
|
|
/sbin/chkconfig --del slpd
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun server
|
2004-11-08 04:56:22 +00:00
|
|
|
if [ $1 -ge 1 ]; then
|
2004-11-08 04:56:10 +00:00
|
|
|
/sbin/service slpd condrestart >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
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
|
|
|
|
%doc doc/html/IntroductionToSLP
|
|
|
|
%doc doc/html/UsersGuide
|
|
|
|
%doc doc/html/faq*
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.conf
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sbindir}/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.reg
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.spi
|
|
|
|
%config(noreplace) %{_initrddir}/slpd
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2005-03-03 23:53:13 +00:00
|
|
|
%doc doc/html/ProgrammersGuide
|
2004-11-08 04:56:10 +00:00
|
|
|
%doc doc/rfc
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2005-05-23 00:20:08 +00:00
|
|
|
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.2.0
|
|
|
|
- rebuild on all arches
|
|
|
|
|
2005-04-06 22:12:42 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- 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
|
|
|
|
|
2004-11-08 04:56:22 +00:00
|
|
|
* Thu 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.
|