LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-24-2008, 10:12 AM   #1
kkprankk
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Can anyone help me understand an rpm spec file


Friends,
can any body help me in explaining the following code in a .spec file which builds the rpm
"instdir="\/var/tmp\/emp"
 
Old 10-25-2008, 07:18 PM   #2
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
Does the spec file work? That line looks strange to me. It appears that the author is trying to set instdir to the name of a temporary directory. The backslashes would, in theory, be there to escape the forward slashes, but only 2 of the 3 occurances are escaped. It should be sufficient to do the following:
Code:
instdir="/var/tmp/emp"
without the escapes. Try it in a shell, and echo $instdir to see what you get.
A spec file is just a script, so all the usual sh syntax applies.
 
  


Reply


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
what is the error in my rpm spec file ukbhan Linux - Newbie 48 06-25-2008 02:24 AM
rpm spec file help AutoC Fedora 3 01-30-2008 08:25 AM
rpm spec file alrawab Linux - General 2 03-28-2007 06:39 AM
RPM Spec file adddy Linux - Software 8 11-07-2006 05:02 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:22 PM.

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