Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add the version of the gem to the provides #272

merged 1 commit into from

2 participants


Currently, the only way to depend on specific gem versions is to depend on rubygem-gemname = VERSION while I would prefer depending on rubygem(gemname) = VERSION.

This way of dependencies should be more compatible with rpm packages that use a different prefix (rubygem-) but still have the correct provides rubygem(gemname).

@jordansissel jordansissel merged commit 32edfef into jordansissel:master

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. @vStone

    Add the version of the gem to the provides so we can set dependencies…

    vStone authored
    … on the gem version in other rpms
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/fpm/package/gem.rb
2  lib/fpm/package/gem.rb
@@ -136,7 +136,7 @@ def load_package_info(gem_path)
# By default, we'll usually automatically provide this, but in the case that we are
# composing multiple packages, it's best to explicitly include it in the provides list.
- self.provides << "#{}"
+ self.provides << "#{} = #{self.version}" do |dep|
# rubygems 1.3.5 doesn't have 'Gem::Dependency#requirement'
Something went wrong with that request. Please try again.