SPECS: msession.spec - gcc4 fixes, reentrand build, release 3.

pluto pluto at pld-linux.org
Fri Dec 30 12:57:11 CET 2005


Author: pluto                        Date: Fri Dec 30 11:57:11 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- gcc4 fixes, reentrand build, release 3.

---- Files affected:
SPECS:
   msession.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/msession.spec
diff -u SPECS/msession.spec:1.16 SPECS/msession.spec:1.17
--- SPECS/msession.spec:1.16	Fri May  6 13:53:11 2005
+++ SPECS/msession.spec	Fri Dec 30 12:57:04 2005
@@ -5,7 +5,7 @@
 Summary(pl):	Demon msession - pseudo-bazodanowe cache
 Name:		msession
 Version:	030130
-Release:	2.1
+Release:	3
 Epoch:		1
 License:	GPL
 Group:		Networking/Daemons
@@ -16,6 +16,7 @@
 Source1:	http://devel.mohawksoft.com/phoenix-%{ppfx}_%{_pver}.tar.gz
 # Source1-md5:	098704fa107d5199f2ea1ac3371c0fc3
 Patch0:		%{name}-plugindir.patch
+Patch1:		%{name}-gcc4.patch
 URL:		http://devel.mohawksoft.com/msession.html
 BuildRequires:	libstdc++-devel
 BuildRequires:	postgresql-devel
@@ -25,6 +26,8 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 ExclusiveArch:	%{ix86}
 
+%define		specflags	-fno-strict-aliasing
+
 %description
 This is the msession daemon. It is a pseudo-database memory cache.
 It is was originally designed for multiple web servers to share data.
@@ -81,23 +84,24 @@
 
 %prep
 %setup -q -b1 -n phoenix
-%patch -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
-mkdir lib
+[ ! -d lib ] && mkdir lib
 cd src
 ln -sf Linux.mak config.mak
 
 %{__make} \
 	GCC="%{__cxx} -DLINUX -DGCC -DPOSIX" \
-	CCOPT="%{rpmcflags}"
+	CCOPT="%{rpmcxxflags}"
 
 %{__make} install
 rm -f *.o
 
 %{__make} phoenix.so \
 	GCC="%{__cxx} -DLINUX -DGCC -DPOSIX" \
-	CCOPT="%{rpmcflags} -fPIC" \
+	CCOPT="%{rpmcxxflags} -fPIC" \
 	LARGS="-Wl,-soname=libphoenix.so" \
 	CENDLIB="-lm -lpthread -lpq -lodbc"
 
@@ -107,7 +111,7 @@
 
 %{__make} -C msession \
 	GCC="%{__cxx} -DLINUX -DGCC -DPOSIX" \
-	CCOPT="%{rpmcflags}" \
+	CCOPT="%{rpmcxxflags}" \
 	CENDLIB="-L../lib -lphoenix"
 
 %install
@@ -157,6 +161,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2005/12/30 11:57:04  pluto
+- gcc4 fixes, reentrand build, release 3.
+
 Revision 1.16  2005/05/06 11:53:11  qboosh
 - strict internal deps, sorted verify() flags
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/msession.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list