Date: Friday, November 24, 2006 @ 19:27:28
  Author: csaba
    Path: /cvsroot/carob/libmysequoia

Modified: libmysequoia.spec (1.23 -> 1.24)

Build the 4.1 and 5.0 libraries for RedHat and SuSE.


-------------------+
 libmysequoia.spec |   43 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 41 insertions(+), 2 deletions(-)


Index: libmysequoia/libmysequoia.spec
diff -u libmysequoia/libmysequoia.spec:1.23 libmysequoia/libmysequoia.spec:1.24
--- libmysequoia/libmysequoia.spec:1.23 Fri Nov 24 14:43:13 2006
+++ libmysequoia/libmysequoia.spec      Fri Nov 24 19:27:28 2006
@@ -29,22 +29,61 @@
 product without changing any line of code in the application.
 
 %prep
-rm -rf $RPM_BUILD_ROOT
+rm -rf build41 build50 $RPM_BUILD_ROOT
 
 %setup
-CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} 
--libdir=%{_libdir}/mysequoia --sysconfdir=%{_sysconfdir}/mysequoia 
--disable-cppunit --disable-gcov
+mkdir -p build41 build50
+
+# configure with MySQL 4.1 headers
+pushd41
+CXXFLAGS="$RPM_OPT_FLAGS" ../configure \
+       --prefix=%{_prefix} \
+       --libdir=%{_libdir}/mysequoia \
+       --sysconfdir=%{_sysconfdir}/mysequoia \
+       --disable-cppunit \
+       --disable-gcov \
+       --with-mysql-headers=/usr/local/mysql/41
+popd
+
+# configure with MySQL 5.0 headers
+pushd50
+CXXFLAGS="$RPM_OPT_FLAGS" ../configure \
+       --prefix=%{_prefix} \
+       --libdir=%{_libdir}/mysequoia \
+       --sysconfdir=%{_sysconfdir}/mysequoia \
+       --disable-cppunit \
+       --disable-gcov \
+       --with-mysql-headers=/usr/local/mysql/50
+popd
 
 %build
+# build with MySQL 4.1 headers
+pushd41
+make
+popd
+
+# build with MySQL 5.0 headers
+pushd50
 make
+popd
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+# install the 4.1 build
+pushd41
+make DESTDIR=$RPM_BUILD_ROOT install
+popd
+
+# install the 5.0 build
+pushd50
 make DESTDIR=$RPM_BUILD_ROOT install
+popd
 
 install -d -m 0755 $RPM_BUILD_ROOT/etc/ld.so.conf.d 
 echo "%{_libdir}/mysequoia" > 
$RPM_BUILD_ROOT/etc/ld.so.conf.d/mysequoia-i386.conf
 
+# install the documentation
 install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}
 install -m 644 NEWS README COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}
 

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to