So uhm... more on specfiles

Place to discuss Fedora and/or Red Hat

So uhm... more on specfiles

Postby X11 » Fri Mar 04, 2005 1:20 pm

If I want to compile things for a Mobile Sempron (basically 64bit/K8/Athlon optimisations), how should I go about making the changes to the specfile?
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Void Main » Fri Mar 04, 2005 1:46 pm

Normally you would pass the architecture in the rpmbuild command:

rpmbuild -ba --target=athlon sompackage.spec

But it is highly dependent on how the spec and the source code was written if it can be compiled for other targets. The opts that would be used for whatver target can be found in /usr/lib/rpm/rpmrc (see optflags). Again, the RPM has to be designed to take some action for each target which isn't always the case.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Fri Mar 04, 2005 1:54 pm

I am looking at attempting to build firefox, xine, and maybe eventually openoffice for my processor as they would run a little better.

Uhm: What would the best way to clean up all the folders in my ~/redhat directory be, I copy the rpms to /pub/Software/Linux/... after compiling anyway, any suggestions, or maybe I should whip up a bash script.
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby X11 » Fri Mar 04, 2005 1:57 pm

Code: Select all
[x11@kintaro SPECS]$ rpmbuild -ba --target=athlon firefox.spec
Building target platforms: athlon
Building for target athlon
error: Architecture is not included: athlon
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron