SPECS: distcache.spec - -libs subpackage (req by arekm) - restart ...

glen glen at pld-linux.org
Wed Dec 14 14:26:32 CET 2005


Author: glen                         Date: Wed Dec 14 13:26:32 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- -libs subpackage (req by arekm)
- restart service on upgrade and stop silently on uninstall

---- Files affected:
SPECS:
   distcache.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/distcache.spec
diff -u SPECS/distcache.spec:1.5 SPECS/distcache.spec:1.6
--- SPECS/distcache.spec:1.5	Wed Dec 14 14:11:10 2005
+++ SPECS/distcache.spec	Wed Dec 14 14:26:25 2005
@@ -3,22 +3,23 @@
 Summary(pl):	Rozproszona pamięć podręczna sesji SSL
 Name:		distcache
 Version:	1.4.5
-Release:	0.1
+Release:	0.4
 License:	LGPL
 Group:		Daemons
 Source0:	http://dl.sourceforge.net/distcache/%{name}-%{version}.tar.bz2
 # Source0-md5:	bad485801024f711ad72e83ba1adcd7d
 Source1:	dc_server.init
 Source2:	dc_client.init
-Source3:	distcache.sysconfig
+Source3:	%{name}.sysconfig
 Patch0:		%{name}-setuid.patch
 URL:		http://www.distcache.org/
+BuildRequires:	rpmbuild(macros) >= 1.228
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1:1.7
 BuildRequires:	libtool
 BuildRequires:	openssl-devel
-Requires(post):	/sbin/ldconfig
 Requires(post,preun):	/sbin/chkconfig
+Requires:	%{name}-libs = %{version}-%{release}
 Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,6 +33,17 @@
 działanie sieciowego systemu pamięci podręcznej sesji, głównie (choć
 niekoniecznie tylko) w celu zapamiętywania sesji SSL/TLS.
 
+%package libs
+Summary:	Shared distcache distributed session cache libraries
+Group:		Libraries
+
+%description libs
+This package includes the shared libraries that implement the
+necessary network functionality, the session caching protocol, and
+APIs for applications wishing to use a distributed session cache, or
+indeed even to implement a storage mechanism for a session cache
+server.
+
 %package devel
 Summary:	Header files for distcache distributed session cache library
 Summary(pl):	Pliki nagłówkowe biblioteki rozproszonej pamięci podręcznej sesji distcache
@@ -97,33 +109,38 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
 %post
-/sbin/ldconfig
 /sbin/chkconfig --add dc_server
 /sbin/chkconfig --add dc_client
+%service dc_server restart "Distcache SSL Session Cache Server"
+%service dc_client restart "Distcache SSL Session Cache Client Proxy"
 
 %preun
 if [ "$1" = "0" ]; then
-	/etc/rc.d/init.d/dc_server stop
 	/sbin/chkconfig --del dc_server
-	/etc/rc.d/init.d/dc_client stop
 	/sbin/chkconfig --del dc_client
+	%service -q dc_server stop
+	%service -q dc_client stop
 fi
 
-%postun -p /sbin/ldconfig
-
 %files
 %defattr(644,root,root,755)
 %doc ANNOUNCE CHANGES README LICENSE FAQ
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
 %attr(755,root,root) %{_bindir}/sslswamp
 %attr(755,root,root) %{_bindir}/dc_*
-%attr(755,root,root) %{_libdir}/*.so.*
 %attr(754,root,root) /etc/rc.d/init.d/dc_*
 %{_datadir}/swamp
 %{_mandir}/man1/*
 %{_mandir}/man8/*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so.*
+
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/*.so
@@ -142,6 +159,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2005/12/14 13:26:25  glen
+- -libs subpackage (req by arekm)
+- restart service on upgrade and stop silently on uninstall
+
 Revision 1.5  2005/12/14 13:11:10  glen
 - start from rel 0.1
 - created -static
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/distcache.spec?r1=1.5&r2=1.6&f=u




More information about the pld-cvs-commit mailing list