Mamoru TASAKA wrote, at 01/20/2014 07:00 PM +9:00:
Achilleas Pipinellis wrote, at 01/20/2014 07:37 AM +9:00:
I know that both result to the same thing (if I remember correctly I had asked Vit about this in IRC), but I have forgotten their real difference.
My attention got caught by a comment Josef made in one of his reviews [0], saying that rubygem-foo is the new syntax. If that's the case, I would like to propose 2 changes:
a) A reference in the wiki b) An implementation for gem2rpm
I guess b) could be fairly easy by changing the templates.
By starting with these steps, there will be a push to use the new syntax from now on. What do you think?
Please use syntax other interpreters do: https://fedoraproject.org/wiki/Packaging:Perl?rd=Packaging/Perl#Perl_Require... https://fedoraproject.org/wiki/Packaging:PHP?rd=Packaging/PHP#Requires_and_P... https://fedoraproject.org/wiki/Packaging:OCaml?rd=Packaging/OCaml#Requires_a...
i.e. use rubygem(foo), not rubygem-foo.
Additional explanation:
The idea here is that ideally like perl or so and pkgconfig(foo), etc, this type of dependency should be handled by rpmbuild _automatically_, i.e. rpmbuild automatically adds provides/requires rubygem(foo). Currently this is done by gem2rpm, however if this could be done on building rpmbuild side, it would be more appreciated.
Regards, Mamoru