dbTalk Databases Forums  

Tweaking the source RPM spec file for x86_64

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Tweaking the source RPM spec file for x86_64 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Harris
 
Posts: n/a

Default Tweaking the source RPM spec file for x86_64 - 01-16-2006 , 04:28 PM






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

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Tweaking the source RPM spec file for x86_64 - 01-17-2006 , 08:57 AM






Michael Harris wrote:
Quote:
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.
Thanks for the patch. I've applied it to the tree.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.