2012-11-27 13:40:57 +08:00
|
|
|
require File.join(File.dirname(__FILE__), "lib/fpm/version")
|
2011-01-04 09:25:06 +08:00
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
|
files = []
|
2011-01-04 10:22:09 +08:00
|
|
|
dirs = %w{lib bin templates}
|
2011-01-04 09:25:06 +08:00
|
|
|
dirs.each do |dir|
|
|
|
|
|
files += Dir["#{dir}/**/*"]
|
|
|
|
|
end
|
|
|
|
|
|
2011-05-17 15:30:34 +08:00
|
|
|
files << "LICENSE"
|
|
|
|
|
files << "CONTRIBUTORS"
|
2016-11-29 07:45:54 +08:00
|
|
|
files << "CHANGELOG.rst"
|
2011-05-17 15:30:34 +08:00
|
|
|
|
2016-09-16 01:33:28 +08:00
|
|
|
files = files.reject { |path| path =~ /\.pyc$/ }
|
|
|
|
|
|
2011-01-04 09:25:06 +08:00
|
|
|
spec.name = "fpm"
|
2012-11-27 13:40:57 +08:00
|
|
|
spec.version = FPM::VERSION
|
2011-01-04 09:25:06 +08:00
|
|
|
spec.summary = "fpm - package building and mangling"
|
2012-03-04 09:50:17 +08:00
|
|
|
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!"
|
2013-07-18 04:26:12 +08:00
|
|
|
spec.license = "MIT-like"
|
2012-03-08 11:44:11 +08:00
|
|
|
|
2017-12-16 11:48:35 +08:00
|
|
|
spec.required_ruby_version = '>= 1.9.3'
|
|
|
|
|
|
2012-03-08 11:44:11 +08:00
|
|
|
# For logging
|
|
|
|
|
# https://github.com/jordansissel/ruby-cabin
|
2016-05-10 19:43:00 +08:00
|
|
|
spec.add_dependency("cabin", ">= 0.6.0") # license: Apache 2
|
2012-03-08 11:44:11 +08:00
|
|
|
|
|
|
|
|
# For backports to older rubies
|
|
|
|
|
# https://github.com/marcandre/backports
|
2013-05-09 00:29:00 +08:00
|
|
|
spec.add_dependency("backports", ">= 2.6.2") # license: MIT
|
2012-03-08 11:44:11 +08:00
|
|
|
|
|
|
|
|
# For reading and writing rpms
|
2021-06-17 22:54:38 +08:00
|
|
|
spec.add_dependency("arr-pm", "~> 0.0.11") # license: Apache 2
|
2012-03-08 11:44:11 +08:00
|
|
|
|
2012-03-10 03:24:31 +08:00
|
|
|
# For command-line flag support
|
|
|
|
|
# https://github.com/mdub/clamp/blob/master/README.markdown
|
2016-05-13 18:27:26 +08:00
|
|
|
spec.add_dependency("clamp", "~> 1.0.0") # license: MIT
|
2012-03-10 03:24:31 +08:00
|
|
|
|
2011-06-15 15:26:13 +08:00
|
|
|
# For sourcing from pleaserun
|
2017-07-29 05:59:15 +08:00
|
|
|
spec.add_dependency("pleaserun", "~> 0.0.29") # license: Apache 2
|
2016-05-13 18:27:26 +08:00
|
|
|
|
2017-07-21 04:05:44 +08:00
|
|
|
spec.add_dependency("stud")
|
|
|
|
|
|
2021-06-16 02:50:23 +08:00
|
|
|
# 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")
|
|
|
|
|
|
2014-06-19 13:32:11 +08:00
|
|
|
spec.add_development_dependency("rspec", "~> 3.0.0") # license: MIT (according to wikipedia)
|
2015-08-25 20:49:03 +08:00
|
|
|
spec.add_development_dependency("insist", "~> 1.0.0") # license: Apache 2
|
2013-05-01 08:56:40 +08:00
|
|
|
spec.add_development_dependency("pry")
|
2012-03-08 16:03:04 +08:00
|
|
|
|
2022-02-24 09:56:47 +08:00
|
|
|
spec.add_development_dependency("rake") # For FPM::RakeTask, #1877, #756
|
|
|
|
|
|
2011-01-04 09:25:06 +08:00
|
|
|
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
|
|
|
|
|
|