Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-05-2005, 05:32 AM   #1
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15


Im trying to make a customised rpm ,
which install's at a different location.

One thing i did not get is where are the variables
mentioned in the .spec file set?
%{_sysconfdir} which is /etc
%{_libdir} etc.

Can any one help me with that?
Old 12-05-2005, 10:04 PM   #2
Registered: Sep 2004
Location: Hyderabad
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
what ever ur looking for are macros.
Please google for RPM how to?
That will surely help u.
What kind of a RPM are u customizing?
Old 12-05-2005, 10:10 PM   #3
Registered: Apr 2005
Location: India
Distribution: fedora
Posts: 43

Rep: Reputation: 15
RPM -Build

Which os are u using?
All the macros used in the system are mentioned
in /usr/lib/rpm/macros file.

The macros are defined in various sections
of spec file......
In install section,to determine where the files
should be dropped when rpm is installed.
In File section,what files shold be included in rpm.
Like /usr/bin/ is mentioned by %_bindir
/usr/sbin/ is mentioned by %_sbindir
Old 12-06-2005, 01:06 AM   #4
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Original Poster
Rep: Reputation: 15
Hey thanks a ton..

I think that is what i was looking for.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
How to build RPM from Tar.gz fireedo SUSE / openSUSE 4 05-13-2005 02:00 PM
rpm-build-tools-4.3.1? hotpepsi Linux - Newbie 0 01-03-2005 06:43 AM
build rpm Santas Linux - Software 1 11-21-2003 05:45 PM
RPM build question NetScripter Linux - General 3 10-20-2003 02:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration