mirror of
https://github.com/jordansissel/fpm
synced 2025-04-20 13:28:00 +02:00
A prior commit removed `rake` as a development dependency on the assumption that nothing in fpm's development process actually required the use of `rake`. However, I had forgotten about #756 (year 2014) which adds FPM::RakeTask and some test coverage. FPM::RakeTask was added to allow folks to more easily invoke FPM from within a Rake task. At this time, I see no reason to remove FPM::RakeTask. Further, because `rake` is typically (in my experience) used only in development environments. Therefore, I believe the right solution is to restore `rake` as a development_dependency in order to allow the test suite to pass. For users of FPM::RakeTask, I would assume (hopefully correctly!) that they already have `rake` installed as a dependency in their own project, so the `fpm` gem has no need to specify `rake` as a general-use dependency. When studying newer versions of Rake, I found: * Rake v13 requires Ruby 2.2 or newer. * Rake v12.xx and older are flagged as having security vulnerabilities. In order to minimize chaos, this commit adds an unversioned dependency on rake. This is to help fpm service more versions of Ruby and resist efforts by any dependency to dictate which version of Ruby is used. This reverts db9db670c39a84dccc92123eed4413bf09d89bc5. Fixes #1877
72 lines
2.3 KiB
Ruby
72 lines
2.3 KiB
Ruby
require File.join(File.dirname(__FILE__), "lib/fpm/version")
|
|
Gem::Specification.new do |spec|
|
|
files = []
|
|
dirs = %w{lib bin templates}
|
|
dirs.each do |dir|
|
|
files += Dir["#{dir}/**/*"]
|
|
end
|
|
|
|
files << "LICENSE"
|
|
files << "CONTRIBUTORS"
|
|
files << "CHANGELOG.rst"
|
|
|
|
files = files.reject { |path| path =~ /\.pyc$/ }
|
|
|
|
spec.name = "fpm"
|
|
spec.version = FPM::VERSION
|
|
spec.summary = "fpm - package building and mangling"
|
|
spec.description = "Convert directories, rpms, python eggs, rubygems, and " \
|
|
"more to rpms, debs, solaris packages and more. Win at package " \
|
|
"management without wasting pointless hours debugging bad rpm specs!"
|
|
spec.license = "MIT-like"
|
|
|
|
spec.required_ruby_version = '>= 1.9.3'
|
|
|
|
# For parsing JSON (required for some Python support, etc)
|
|
# http://flori.github.com/json/doc/index.html
|
|
spec.add_dependency("json", ">= 1.7.7", "< 3.0") # license: Ruby License
|
|
|
|
# For logging
|
|
# https://github.com/jordansissel/ruby-cabin
|
|
spec.add_dependency("cabin", ">= 0.6.0") # license: Apache 2
|
|
|
|
# For backports to older rubies
|
|
# https://github.com/marcandre/backports
|
|
spec.add_dependency("backports", ">= 2.6.2") # license: MIT
|
|
|
|
# For reading and writing rpms
|
|
spec.add_dependency("arr-pm", "~> 0.0.11") # license: Apache 2
|
|
|
|
# For command-line flag support
|
|
# https://github.com/mdub/clamp/blob/master/README.markdown
|
|
spec.add_dependency("clamp", "~> 1.0.0") # license: MIT
|
|
|
|
# For sourcing from pleaserun
|
|
spec.add_dependency("pleaserun", "~> 0.0.29") # license: Apache 2
|
|
|
|
# For sourcing from git repos
|
|
spec.add_dependency("git", ">= 1.3.0", "< 2.0") # license: MIT
|
|
|
|
spec.add_dependency("stud")
|
|
|
|
# In Ruby 3.0, rexml was moved to a bundled gem instead of a default one,
|
|
# so I think this needs to be added explicitly?
|
|
spec.add_dependency("rexml")
|
|
|
|
spec.add_development_dependency("rspec", "~> 3.0.0") # license: MIT (according to wikipedia)
|
|
spec.add_development_dependency("insist", "~> 1.0.0") # license: Apache 2
|
|
spec.add_development_dependency("pry")
|
|
|
|
spec.add_development_dependency("rake") # For FPM::RakeTask, #1877, #756
|
|
|
|
spec.files = files
|
|
spec.require_paths << "lib"
|
|
spec.bindir = "bin"
|
|
spec.executables << "fpm"
|
|
|
|
spec.author = "Jordan Sissel"
|
|
spec.email = "jls@semicomplete.com"
|
|
spec.homepage = "https://github.com/jordansissel/fpm"
|
|
end
|
|
|