SPECS: sqlrelay.spec - client-runtime needs uid/gid

glen glen at pld-linux.org
Tue Sep 12 14:47:08 CEST 2006


Author: glen                         Date: Tue Sep 12 12:47:08 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- client-runtime needs uid/gid

---- Files affected:
SPECS:
   sqlrelay.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/sqlrelay.spec
diff -u SPECS/sqlrelay.spec:1.7 SPECS/sqlrelay.spec:1.8
--- SPECS/sqlrelay.spec:1.7	Tue Sep 12 12:28:18 2006
+++ SPECS/sqlrelay.spec	Tue Sep 12 14:47:02 2006
@@ -9,7 +9,7 @@
 Summary:	Persistent database connection system
 Name:		sqlrelay
 Version:	0.37.1
-Release:	0.20
+Release:	0.21
 License:	GPL/LGPL and Others
 Group:		Daemons
 Source0:	http://dl.sourceforge.net/sqlrelay/%{name}-%{version}.tar.gz
@@ -27,7 +27,6 @@
 BuildRequires:	readline-devel >= 4.1
 BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	rudiments-devel >= 0.28.1
-Requires(post,postun):	/sbin/ldconfig
 Requires(post,preun):	/sbin/chkconfig
 Requires(postun):	/usr/sbin/groupdel
 Requires(postun):	/usr/sbin/userdel
@@ -59,6 +58,7 @@
 %package devel
 Summary:	Development libraries for SQL Relay
 Group:		Development/Libraries
+Requires:	%{name}-client-devel = %{version}-%{release}
 
 %description devel
 Static libraries for SQL Relay.
@@ -66,6 +66,7 @@
 %package clients
 Summary:	Command line applications for accessing databases through SQL Relay
 Group:		Applications/Databases
+Requires:	%{name} = %{version}-%{release}
 
 %description clients
 Command line applications for accessing databases through SQL Relay.
@@ -73,6 +74,7 @@
 %package client-runtime
 Summary:	Runtime libraries for SQL Relay clients
 Group:		Libraries
+Requires(post,postun):	/sbin/ldconfig
 
 %description client-runtime
 Runtime dependencies for SQL Relay clients
@@ -80,6 +82,7 @@
 %package client-devel
 Summary:	Development files for developing programs in C/C++ that use SQL Relay
 Group:		Development/Libraries
+Requires:	%{name}-client-runtime = %{version}-%{release}
 
 %description client-devel
 Header files and static libraries to use for developing programs in
@@ -203,7 +206,7 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
+%pre client-runtime
 %groupadd -g 176 sqlrelay
 %useradd -u 176 -c "SQL Relay" -s /bin/false -r -d %{_localstatedir}/sqlrelay -g sqlrelay sqlrelay
 
@@ -218,7 +221,9 @@
 	/sbin/chkconfig --del sqlrelay
 fi
 
-%postun
+%postun -p /sbin/ldconfig
+
+%postun client-runtime
 /sbin/ldconfig
 if [ "$1" = "0" ]; then
 	%userremove sqlrelay
@@ -351,6 +356,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2006/09/12 12:47:02  glen
+- client-runtime needs uid/gid
+
 Revision 1.7  2006/09/12 10:28:18  glen
 - avoid using /etc/sysconfig/sqlrelay which format is not shell syntax
 - fix permissions
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sqlrelay.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list