List:MySQL++« Previous MessageNext Message »
From:Michael Harris Date:January 16 2006 10:21pm
Subject:Tweaking the source RPM spec file for x86_64
View as plain text  
In order to build the source RPM under RHEL 4.1 I had to tell
"configure" to look for the MySQL libs under /usr/lib64.

here's a patch against the mysql++-2.0.7-1.src.rpm spec file
that will fix this.  I hope it's of some use to someone.

*** mysql++.spec        2005-11-23 16:59:20.000000000 -0500
--- mysql++.spec.new    2006-01-16 17:03:42.000000000 -0500
***************
*** 29,39 ****
--- 29,44 ----
  This is the MySQL++ documentation.  It's a separate RPM just because
  it's so large, and it doesn't change with every release.

  %prep
  %setup -q
+ %ifarch i386
  ./configure --prefix=/usr --disable-examples
--disable-dependency-tracking
+ %endif
+ %ifarch x86_64
+ ./configure --prefix=/usr --disable-examples
--disable-dependency-tracking --with-mysql-lib=/usr/lib64
+ %endif

  %build
  make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

  %install


-- 
Cheers,
Michael Harris
Systems Administrator, Torque.net
Thread
Tweaking the source RPM spec file for x86_64Michael Harris16 Jan
  • Re: Tweaking the source RPM spec file for x86_64Warren Young17 Jan