Does anyone have example spec files for the new standrds for doing native gems? I am trying to follow the guidelines about not installing in the %build section, but most spec files I see still do that.
Thanks in advance.
-- bk
BTW.. Spec files are like JCL.. no one writes them from scatch :)
On Mon, 2010-02-15 at 10:00 -0500, Bryan Kearney wrote:
Does anyone have example spec files for the new standrds for doing native gems? I am trying to follow the guidelines about not installing in the %build section, but most spec files I see still do that.
IIRC, Mamoru came up with that - so any of his[1] rubygem-* packages are prime candidates for an example ;)
BTW.. Spec files are like JCL.. no one writes them from scatch :)
Sounds gem2rpm needs a facelift to assist with this - any volunteers for a patch ?
David
[1] https://admin.fedoraproject.org/pkgdb/users/packages/mtasaka
On 02/15/2010 07:45 PM, David Lutterkort wrote:
On Mon, 2010-02-15 at 10:00 -0500, Bryan Kearney wrote:
Does anyone have example spec files for the new standrds for doing native gems? I am trying to follow the guidelines about not installing in the %build section, but most spec files I see still do that.
IIRC, Mamoru came up with that - so any of his[1] rubygem-* packages are prime candidates for an example ;)
FWIW.. I do not understand the value of doing the gem-install earlier. Since the spec says to do an install and then copy everything, it seems obtuse.
-- bk
On 02/15/2010 07:57 PM, Bryan Kearney wrote:
On 02/15/2010 07:45 PM, David Lutterkort wrote:
On Mon, 2010-02-15 at 10:00 -0500, Bryan Kearney wrote:
Does anyone have example spec files for the new standrds for doing native gems? I am trying to follow the guidelines about not installing in the %build section, but most spec files I see still do that.
IIRC, Mamoru came up with that - so any of his[1] rubygem-* packages are prime candidates for an example ;)
FWIW.. I do not understand the value of doing the gem-install earlier. Since the spec says to do an install and then copy everything, it seems obtuse.
This is what I came up with:
http://bkearney.fedorapeople.org/rubygem-ffi.spec
-- bk
On Mon, 2010-02-15 at 19:57 -0500, Bryan Kearney wrote:
On 02/15/2010 07:45 PM, David Lutterkort wrote:
On Mon, 2010-02-15 at 10:00 -0500, Bryan Kearney wrote:
Does anyone have example spec files for the new standrds for doing native gems? I am trying to follow the guidelines about not installing in the %build section, but most spec files I see still do that.
IIRC, Mamoru came up with that - so any of his[1] rubygem-* packages are prime candidates for an example ;)
FWIW.. I do not understand the value of doing the gem-install earlier. Since the spec says to do an install and then copy everything, it seems obtuse.
IIRC, the main reason was that if you just do gem install in %install, it's next to impossible to patch a gem. There were a couple of cases where that led to serious gymnastics in the specfile.
David
On 02/15/2010 08:13 PM, David Lutterkort wrote:
On Mon, 2010-02-15 at 19:57 -0500, Bryan Kearney wrote:
On 02/15/2010 07:45 PM, David Lutterkort wrote:
On Mon, 2010-02-15 at 10:00 -0500, Bryan Kearney wrote:
Does anyone have example spec files for the new standrds for doing native gems? I am trying to follow the guidelines about not installing in the %build section, but most spec files I see still do that.
IIRC, Mamoru came up with that - so any of his[1] rubygem-* packages are prime candidates for an example ;)
FWIW.. I do not understand the value of doing the gem-install earlier. Since the spec says to do an install and then copy everything, it seems obtuse.
IIRC, the main reason was that if you just do gem install in %install, it's next to impossible to patch a gem. There were a couple of cases where that led to serious gymnastics in the specfile.
Ok... I am sure there was a valid reason.. but it was not clear from the standards. THanks!
-- bk
ruby-sig@lists.fedoraproject.org