Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th May 2006, 04:00 PM
SHtRO's Avatar
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
Question How do I use scons in RPM SPEC files?

Is there equivalencies to directives like %makeinstall% for use with scons? If not, how might I go about creating them. The problem is that I can't get scons to configure and build in the proper directories, it always wants to configure and install globally.

Is there a good comprehensive (and current) document describing the RPM SPEC directives and maybe a tutorial for more intermediate or advanced developers?

Why do we have scons and dc++ anyway? Seems to be counterproductive, but I don't know enough so my judgement here is not reliable.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
  #2  
Old 10th May 2006, 06:47 PM
huw-l Offline
Registered User
 
Join Date: Apr 2004
Location: Cardiff, UK
Age: 35
Posts: 315
Quote:
Originally Posted by SHtRO
Is there equivalencies to directives like %makeinstall% for use with scons? If not, how might I go about creating them. The problem is that I can't get scons to configure and build in the proper directories, it always wants to configure and install globally.
the thing to remember about rpm is that the spec file is basically just shell commands and anything else is a macro. If you look in /var/lib/rpm/macros you'll see that %makeinstall is just

# The make install analogue of %configure:
%makeinstall \
make \\\
prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
exec_prefix=%{?buildroot:%{buildroot}}%{_exec_pref ix} \\\
bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\
sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\
sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir } \\\
datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\
includedir=%{?buildroot:%{buildroot}}%{_includedir } \\\
libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\
libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir } \\\
localstatedir=%{?buildroot:%{buildroot}}%{_localst atedir} \\\
sharedstatedir=%{?buildroot:%{buildroot}}%{_shared statedir} \\\
mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\
infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\
install

you can write your own macros for scons and stick them in /etc/rpm/macros.scons
If you come up with a reasonable set you might want to post them so that others can use them

Quote:
Originally Posted by SHtRO
Is there a good comprehensive (and current) document describing the RPM SPEC directives and maybe a tutorial for more intermediate or advanced developers?
http://www.gurulabs.com/GURULABS-RPM...GUIDE-v1.0.PDF

Quote:
Originally Posted by SHtRO
Why do we have scons and dc++ anyway? Seems to be counterproductive, but I don't know enough so my judgement here is not reliable.
because scons doesn't make people bleed from the eyes like autotools does
Reply With Quote
  #3  
Old 10th May 2006, 06:52 PM
huw-l Offline
Registered User
 
Join Date: Apr 2004
Location: Cardiff, UK
Age: 35
Posts: 315
one more thing.

If you haven't already done so do:

yum install fedora-rpmdevtools

then do:

fedora-buildrpmtree

as a non-root user. You can then build rpms as that user without worrying that the build process will write over your system.

fedora-newrpmspec

is also helpful as it generates a template spec file
Reply With Quote
  #4  
Old 10th May 2006, 07:27 PM
SHtRO's Avatar
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
Thanks, much! You're awesome.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
Reply

Tags
files, rpm, scons, spec

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rawhide spec files sanjay_ankur Using Fedora 1 20th January 2009 12:09 PM
.spec files nucleo Using Fedora 2 3rd February 2008 03:05 PM
Where to upload RPM files? and .spec software? markg85 Using Fedora 7 26th October 2006 03:05 AM
What are .spec files for?? odiseo77 Using Fedora 2 24th April 2005 08:53 PM


Current GMT-time: 23:13 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat