LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2006, 01:57 AM   #1
naihe2010
Member
 
Registered: Oct 2005
Location: China
Distribution: ArchLinux
Posts: 103

Rep: Reputation: 15
Is there rpm spec %tags docs?


Hi,

Now, I am writing a utility to translate a .spec file to a shell script.

But, I find lots of words those confusing me.
like:
Code:
%{make}
%{__make}
%{_bindir}
%{__ln_s}
%{_make}
%make
And, when someone write a .spec file, how many words like this he can use?

Is there some regular?

Thank you!

Last edited by naihe2010; 11-23-2006 at 01:58 AM.
 
Old 11-23-2006, 03:04 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Now, I am writing a utility to translate a .spec file to a shell script.
Interesting. Where to get it?


But, I find lots of words those confusing me.
Those are macro's. If they are not %define'd in the .spec file: check contents of /etc/rpm and /usr/lib/rpm/. Or try for instance "rpm --showrc|grep __make".


And, when someone write a .spec file, how many words like this he can use?
As long as the .spec file conforms to the standard my guess would be "as much as you need".

The trouble with translating could be that even if .spec files streamlines building packages for ninety percent there still are packages that for one reason or another can't or won't use the default "logic". Then there's spec files whose output (packages) can be altered by %define values (like %define debug_package) and spec files that build more than one package (like OpenSSH) and defines that don't do nothing for building packages (like %dump). All in all not an easy task.

Good luck.
 
Old 11-23-2006, 03:23 AM   #3
naihe2010
Member
 
Registered: Oct 2005
Location: China
Distribution: ArchLinux
Posts: 103

Original Poster
Rep: Reputation: 15
If you really be interested on it, I can mail you.
And, we could cooperate on it.

?
 
Old 11-23-2006, 05:52 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Can't you post it here? Or is it that large? If you post it here you may get cooperation from more than one person. There's lotsa people here that are willing to chip in.
 
Old 11-23-2006, 06:17 AM   #5
naihe2010
Member
 
Registered: Oct 2005
Location: China
Distribution: ArchLinux
Posts: 103

Original Poster
Rep: Reputation: 15
I will post it after I wrote completely.
 
Old 11-23-2006, 12:35 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
OK, good luck then.
 
  


Reply



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
RPM Spec file adddy Linux - Software 8 11-07-2006 05:02 AM
questions on writing own rpm .spec file adrianmak Linux - Software 0 08-18-2005 06:03 AM
%file attribute for RPM SPEC files Brian of Gep Linux - Software 3 06-18-2004 04:51 AM
%file attribute for RPM SPEC files Brian of Gep Fedora 0 06-15-2004 07:12 PM
rpm spec files pk21 Programming 3 06-11-2003 04:53 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 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