Fedora Linux Support Community & Resources Center
  #1  
Old 14th March 2012, 05:57 PM
digimars Offline
Registered User
 
Join Date: May 2005
Posts: 47
linuxfirefox
subpackage %install section?

Hi all.

I'm wanting to separate out the gui that is an option for an application I'm compiling.

I know that for the subpackage, I need the extra %package name, %summary, %description, and %files section, but do I also make a separate %install section as well to install the binary?

Thanks.
Reply With Quote
  #2  
Old 14th March 2012, 06:03 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,054
linuxchrome
Re: subpackage %install section?

No, you don't need a separate %install section for the sub-package as that should have already been done in the main %install section. Just don't duplicate any of the files in the two %files sections, one for the main package and one for the sub-package.

Last edited by PabloTwo; 14th March 2012 at 06:05 PM.
Reply With Quote
  #3  
Old 14th March 2012, 06:05 PM
digimars Offline
Registered User
 
Join Date: May 2005
Posts: 47
linuxfirefox
Re: subpackage %install section?

Ok, cool. That's what I was thinking.

Thanks!
Reply With Quote
  #4  
Old 14th March 2012, 06:20 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,054
linuxchrome
Re: subpackage %install section?

You can learn a lot by looking at the spec files for other Fedora packages. Pick a package that you know has one or more sub-packages (e.g. *-libs, *-devel, *-common) and use something like,

"yumdownloader --source ncurses" to pull down the src.rpm package.

Then, "rpm -ivh ncurses-5.9-2.20110716.fc16.src.rpm"

Then you can examine the spec file.
Reply With Quote
  #5  
Old 14th March 2012, 06:27 PM
digimars Offline
Registered User
 
Join Date: May 2005
Posts: 47
linuxfirefox
Re: subpackage %install section?

Awesome. Thanks for the tip!
Reply With Quote
  #6  
Old 14th March 2012, 06:29 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,054
linuxchrome
Re: subpackage %install section?

Or.. just get the spec file directly from the git repo
Reply With Quote
Reply

Tags
%install, section, subpackage

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
Fedora Kickstart Install - Post Section Problems phatmack18 Installation, Upgrades and Live Media 0 9th November 2007 01:57 AM
Art section? deepfreeze Suggestions & Feedback 4 11th October 2005 02:21 AM
New Section bamboo_spider Suggestions & Feedback 7 2nd December 2004 03:32 PM


Current GMT-time: 03:05 (Saturday, 26-07-2014)

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