Name: mysql
Group: Applications/Databases
Version: 4.0.18
-Release: 1
+Release: 2
License: GPL/LGPL
Source0: http://sunsite.icm.edu.pl/mysql/Downloads/MySQL-4.0/mysql-%{version}.tar.gz
# Source0-md5: 702151a3e21d9e5f32e8850032aefdad
%patch9 -p1
%patch10 -p1
+%{__perl} -pi -e 's@/lib/libpthread@/%{_lib}/libpthread@' configure.in
+
%build
%{__libtoolize}
%{__aclocal}
KILL='/bin/kill' \
CHECK_PID='/bin/kill -0 $$PID' \
-C \
- --with-pthread \
- --with-raid \
- --with-unix-socket-path=/var/lib/mysql/mysql.sock \
- --with-mysqld-user=mysql \
- --with-libwrap \
- --with%{!?debug:out}-debug \
+ --enable-assembler \
+ --enable-shared \
+ --enable-static \
+ --enable-thread-safe-client \
%{?with_bdb:--with-berkeley-db} \
+ --with-comment="PLD Linux Distribution MySQL RPM" \
+ --with%{!?debug:out}-debug \
--with-embedded-server \
- --with-vio \
- --with-openssl \
--with-extra-charsets=all \
- --enable-shared \
- --enable-static \
+ --with-libwrap \
+ --with-low-memory \
+ --with-mysqld-user=mysql \
--with-named-curses-libs="-lncurses" \
- --enable-assembler \
+ --with-openssl \
+ --with-pthread \
+ --with-raid \
+ --with-unix-socket-path=/var/lib/mysql/mysql.sock \
+ --with-vio \
--without-readline \
- --without-docs \
- --with-low-memory \
- --with-comment="PLD Linux Distribution MySQL RPM" \
- --enable-thread-safe-client
+ --without-docs
# --with-mysqlfs
echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile