I have two packages (qpid-cpp and qpid-proton) that, as part of their source code, can generate a Ruby gem. In both cases the Ruby gem is directly dependant on shared libraries produced by the codebase, and those gems are already packaged separately for Fedora.
What I want to do is to create the gem, which is easy, and then install and package it as a subpackage, which is proving to be hard. The problem is that the %gem_install macro won't let me override where it looks for the shared libraries and header files that it needs to create its makefile.
Is there a way, during the packaging process, to do this? I need to have the %gem_install macro either accept commandline options (--without-qpid-lib-dir=[path], for example) or else put things where they're discoverable by the %gem_install macro.
Any help?
Hi,
it should be possible to pass options after double dash:
%gem_install -- --without-qpid-lib-dir=[path]
This should be the same as with normal 'gem install'.
Regards Josef
----- Original Message ----- From: "Darryl L. Pierce" mcpierce@gmail.com To: packaging@lists.fedoraproject.org Sent: Tuesday, March 17, 2015 4:18:17 PM Subject: [Fedora-packaging] Packaging a library that creates a Ruby gem...
I have two packages (qpid-cpp and qpid-proton) that, as part of their source code, can generate a Ruby gem. In both cases the Ruby gem is directly dependant on shared libraries produced by the codebase, and those gems are already packaged separately for Fedora.
What I want to do is to create the gem, which is easy, and then install and package it as a subpackage, which is proving to be hard. The problem is that the %gem_install macro won't let me override where it looks for the shared libraries and header files that it needs to create its makefile.
Is there a way, during the packaging process, to do this? I need to have the %gem_install macro either accept commandline options (--without-qpid-lib-dir=[path], for example) or else put things where they're discoverable by the %gem_install macro.
Any help?
On Wed, Mar 18, 2015 at 04:11:18AM -0400, Josef Stribny wrote:
Hi,
it should be possible to pass options after double dash:
%gem_install -- --without-qpid-lib-dir=[path]
This should be the same as with normal 'gem install'.
It doesn't. The %gem_install macro doesn't accept the optional arguments (I tried before posting).
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dne 18.3.2015 v 19:18 Darryl L. Pierce napsal(a):
On Wed, Mar 18, 2015 at 04:11:18AM -0400, Josef Stribny wrote:
Hi,
it should be possible to pass options after double dash:
%gem_install -- --without-qpid-lib-dir=[path]
This should be the same as with normal 'gem install'.
It doesn't. The %gem_install macro doesn't accept the optional arguments (I tried before posting).
You don't have to use %gem_install at all, use "gem install" instead if you need to. Also, you might find this ticket [1] interesting.
Vít
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1121649
On Fri, Mar 20, 2015 at 10:33:17AM +0100, Vít Ondruch wrote:
Dne 18.3.2015 v 19:18 Darryl L. Pierce napsal(a):
On Wed, Mar 18, 2015 at 04:11:18AM -0400, Josef Stribny wrote:
Hi,
it should be possible to pass options after double dash:
%gem_install -- --without-qpid-lib-dir=[path]
This should be the same as with normal 'gem install'.
It doesn't. The %gem_install macro doesn't accept the optional arguments (I tried before posting).
You don't have to use %gem_install at all, use "gem install" instead if you need to. Also, you might find this ticket [1] interesting.
Vít
Yep, I can use what Jeroen did there until such a time as the macro is changed. Thanks for the link!
packaging@lists.fedoraproject.org