Fedora Linux Support Community & Resources Center
  #1  
Old 22nd November 2010, 10:40 AM
chajohari Offline
Registered User
 
Join Date: Nov 2010
Posts: 4
windows_xp_2003ie
Talking Question on RPMBUILD

Hi,
i have a requirement. browsed to find solutions about it.
i am building a binary rpm.

inside the spec file. i will calculate the size of the file being packaged. and i want to store it inside the rpm package as an entry in rpm HEADER/STORE/ or as a RPM_CUSTOM_XXX variables...I want to use it during installation in %pre section..before installing the file inside the package i want to make sure destination holds the enough free space. otherwise fail the installatino (..this is just one requirement..i have other custom requirements).

is it possible to put some hardcoded(userdefined data) value inside the rpm package at build time and use it during installation in %pre section? if yes? how to do it.

thanks
chajo
Reply With Quote
  #2  
Old 22nd November 2010, 07:56 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
linuxfedorafirefox
Re: Question on RPMBUILD

to define a variable:
Code:
%define file_size 100mb
to read back the variable value use:
Code:
%{file_size}
Reply With Quote
  #3  
Old 23rd November 2010, 12:25 PM
chajohari Offline
Registered User
 
Join Date: Nov 2010
Posts: 4
windows_xp_2003ie
[SOLVED]Re: Question on RPMBUILD

Thanks for help.
Reply With Quote
  #4  
Old 23rd November 2010, 01:52 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxopera
Re: Question on RPMBUILD

Not sure how you marked the thread solved, but it doesn't seem to have taken properly--the way to do it is to click the thread tools link at the top of the thread, and then choose marked solved.
Reply With Quote
Reply

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
rpmbuild as user: optimisation flag question a550ee Using Fedora 1 24th August 2006 01:31 PM
rpmbuild: where is it? theprez98 Using Fedora 3 17th January 2005 06:48 AM
rpmbuild question salmankhilji Using Fedora 5 6th January 2005 07:35 AM


Current GMT-time: 20:50 (Thursday, 23-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