Permalink
Browse files

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

… on the gem version in other rpms
  • Loading branch information...
1 parent 7842a6c commit c3fcb8132c26cf27525f71b94bbeafca320c9323 @vStone vStone committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.name}"
+ self.provides << "#{self.name} = #{self.version}"
spec.runtime_dependencies.map do |dep|
# rubygems 1.3.5 doesn't have 'Gem::Dependency#requirement'

0 comments on commit c3fcb81

Please sign in to comment.