On 2006-07-13,
forrie@gmail.com <forrie@gmail.com> wrote:
> I was able to rpm2cpio the source RPM to get the *.spec and *.gz
> files.
Why? Just install it, it will put the files nicely in /usr/src/redhat/
> I cannot find rpmbuild anywhere - it's not in the distributions we
> have (CentOS 4).
It's there. Install package rpm-build.
> I also couldn't find any files in the *.gz archive that supplemented
> variables in the *.spec file. For example, the CFLAGS (and other)
> environment variables - they include this in the *.spec file, but it
> doesn't appear to be defined other than whatever the default happens to
> be in ./configure.
Well, directly beneath the CFLAGS/CXXFLAGS definitions I have this in my
..spec file:
%configure \
--with-readline \
--with-vio \
--with-openssl \
--without-debug \
--enable-shared \
--with-bench \
--localstatedir=/var/lib/mysql \
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
--with-mysqld-user="mysql" \
--with-extra-charsets=all \
--with-innodb \
--with-isam \
--with-berkeley-db \
--enable-local-infile \
--enable-large-files=yes --enable-largefile=yes \
--enable-thread-safe-client \
--disable-dependency-tracking \
--with-named-thread-libs="-lpthread"
--
Riemer Palstra Amsterdam, The Netherlands
riemer@palstra.com http://www.palstra.com/