Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add the version of the gem to the provides #272

Merged
merged 1 commit into from

2 participants

@vStone

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
@jordansissel
Owner

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
View
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.name}"
+ self.provides << "#{self.name} = #{self.version}"
spec.runtime_dependencies.map do |dep|
# rubygems 1.3.5 doesn't have 'Gem::Dependency#requirement'
Something went wrong with that request. Please try again.