]> git.pld-linux.org Git - packages/openslp.git/blobdiff - openslp.spec
- release 2.
[packages/openslp.git] / openslp.spec
index 98dbcd539b07df13a7b668f51d40bc19a1d02c92..63b0311ad6e269a5a74d73b4ae811effeab45d8a 100644 (file)
@@ -6,20 +6,22 @@ Summary(it):  Implementazione open source del Service Location Protocol V2
 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
@@ -31,8 +33,7 @@ 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 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
@@ -66,7 +67,7 @@ pozwalaj
 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
@@ -74,11 +75,38 @@ oferece uma plataforma para permitir 
 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.
@@ -90,7 +118,7 @@ Pliki nag
 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.
@@ -103,11 +131,10 @@ Biblioteki statyczne OpenSLP.
 %patch0 -p1
 
 %build
-rm -f missing
-libtoolize --copy --force
-aclocal
-autoconf
-automake -a -c
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
        --enable-slpv1 \
        --enable-slpv2-security \
@@ -124,48 +151,43 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
 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)
This page took 0.098873 seconds and 4 git commands to generate.