Summary(pl): Otwarta implementacja Service Location Protocol V2
Summary(pt): Implementação 'open source' do protocolo Service Location Protocol V2
Name: openslp
-Version: 1.0.7
-Release: 1
+# note: 1.3.0 is "development" release _equal_ to 1.2.0
+Version: 1.2.1
+Release: 2
License: LGPL
Group: Networking/Daemons
-Source0: http://prdownloads.sourceforge.net/openslp/%{name}-%{version}.tar.gz
+Source0: http://dl.sourceforge.net/openslp/%{name}-%{version}.tar.gz
+# Source0-md5: ff9999d1b44017281dd00ed2c4d32330
Source1: %{name}.init
-Patch0: %{name}-ac_fixes.ptch
+Patch0: %{name}-opt.patch
URL: http://www.openslp.org/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: libtool
-BuildRequires: openssl-devel >= 0.9.6b
-Prereq: rc-scripts
-Prereq: /sbin/chkconfig
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: rpmbuild(macros) >= 1.268
+Obsoletes: libopenslp1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/openslp
enterprise networks.
OpenSLP is an open source implementation of the SLPv2 protocol as
-defined by RFC 2608 and RFC 2614. This package include the daemon
-and libraries.
+defined by RFC 2608 and RFC 2614. This package includes libraries.
%description -l de
Das Service Location Protocol ist ein IETF standard Protokoll welches
konfiguracji us³ug sieciowych.
OpenSLP jest otwart± implementacj± protoko³u SLPv2 zdefiniowanego w
-RFC 2608 i RFC 2614. Ten pakiet zawiera demona i biblioteki.
+RFC 2608 i RFC 2614. Ten pakiet zawiera biblioteki.
%description -l pt
O Service Location Protocol é um protocolo normalizado pelo IETF que
descubram a existência, localização e a configuração dos serviços de
rede nas redes duma empresa.
+%package server
+Summary: OpenSLP server working as SA and DA
+Summary(pl): Serwer OpenSLP dzia³aj±cy jako SA i DA
+Group: Networking/Daemons
+Requires(post,preun): /sbin/chkconfig
+Requires: %{name} = %{version}-%{release}
+Requires: rc-scripts
+
+%description server
+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.
+
+OpenSLP is an open source implementation of the SLPv2 protocol as
+defined by RFC 2608 and RFC 2614. This package includes the daemon.
+
+%description server -l pl
+Service Location Protocol jest zgodnym ze standardem IETF protoko³em
+pozwalaj±cym aplikacjom sieciowym na badanie istnienia, po³o¿enia i
+konfiguracji us³ug sieciowych.
+
+OpenSLP jest otwart± implementacj± protoko³u SLPv2 zdefiniowanego w
+RFC 2608 i RFC 2614. Ten pakiet zawiera demona.
+
%package devel
Summary: OpenSLP development files
Summary(pl): Czê¶æ OpenSLP dla programistów
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
+Requires: openssl-devel >= 0.9.7c
+Obsoletes: libopenslp1-devel
%description devel
OpenSLP development files.
Summary: OpenSLP static libraries
Summary(pl): Biblioteki statyczne OpenSLP
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
OpenSLP static libraries.
%patch0 -p1
%build
-rm -f missing
-libtoolize --copy --force
-aclocal
-autoconf
-automake -a -c
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure \
--enable-slpv1 \
--enable-slpv2-security \
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/slpd
-gzip -9nf AUTHORS NEWS README doc/rfc/*txt
-
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/ldconfig
-/sbin/chkconfig --add slpd
-if [ -r /var/lock/subsys/slpd ]; then
- /etc/rc.d/init.d/slpd restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/slpd start\" to start OpenSLP server."
-fi
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%post server
+/sbin/chkconfig --add slpd
+%service slpd restart "OpenSLP server"
-%preun
+%preun server
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/slpd ]; then
- /etc/rc.d/init.d/slpd stop
- fi
+ %service slpd stop
/sbin/chkconfig --del slpd
fi
-%postun -p /sbin/ldconfig
-
%files
%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
%dir %{_sysconfdir}
-%config %{_sysconfdir}/slp.conf
-%config %{_sysconfdir}/slp.reg
-%config %{_sysconfdir}/slp.spi
-%attr(754,root,root) /etc/rc.d/init.d/slpd
-%attr(755,root,root) %{_sbindir}/slpd
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/slp.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/slp.reg
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/slp.spi
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%files server
+%defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/slpd
+%attr(755,root,root) %{_sbindir}/slpd
+
%files devel
%defattr(644,root,root,755)
-%doc *.gz doc/*
-%{_includedir}/*
+%doc doc/*
%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
+%{_includedir}/*
%files static
%defattr(644,root,root,755)