This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
forked from puppetlabs/puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gemspec
81 lines (76 loc) · 3.2 KB
/
.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- encoding: utf-8 -*-
#
# PLEASE NOTE
# This gemspec is not intended to be used for building the Puppet gem. This
# gemspec is intended for use with bundler when Puppet is a dependency of
# another project. For example, the stdlib project is able to integrate with
# the main branch of Puppet by using a Gemfile path of
# https://github.com/puppetlabs/puppet
#
# Please see the [packaging
# repository](https://github.com/puppetlabs/packaging) for information on how
# to build the Puppet gem package.
#
# Make sure these gem requirements are in sync with ext/project_data.yaml and
# the Gemfile
Gem::Specification.new do |s|
s.name = "puppet"
version = "8.6.0"
mdata = version.match(/(\d+\.\d+\.\d+)/)
s.version = mdata ? mdata[1] : version
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1")
s.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
s.authors = ["Puppet Labs"]
s.date = "2012-08-17"
s.description = "Puppet, an automated configuration management tool"
s.email = "puppet@puppetlabs.com"
s.executables = ["puppet"]
s.files = ["bin/puppet"]
s.license = "Apache-2.0"
s.homepage = "https://puppetlabs.com"
s.rdoc_options = ["--title", "Puppet - Configuration Management", "--main", "README", "--line-numbers"]
s.require_paths = ["lib"]
s.summary = "Puppet, an automated configuration management tool"
s.specification_version = 3
s.add_runtime_dependency(%q<facter>, [">= 4.3.0", "< 5"])
s.add_runtime_dependency(%q<semantic_puppet>, "~> 1.0")
s.add_runtime_dependency(%q<fast_gettext>, ">= 2.1", "< 3")
s.add_runtime_dependency(%q<locale>, "~> 2.1")
s.add_runtime_dependency(%q<multi_json>, "~> 1.13")
s.add_runtime_dependency(%q<puppet-resource_api>, "~> 1.5")
s.add_runtime_dependency(%q<concurrent-ruby>, "~> 1.0")
s.add_runtime_dependency(%q<deep_merge>, "~> 1.0")
s.add_runtime_dependency(%q<scanf>, "~> 1.0")
# loads platform specific gems like ffi, win32 platform gems
# as additional runtime dependencies
gem_deps_path = File.join(File.dirname(__FILE__), 'ext', 'project_data.yaml')
# inside of a Vanagon produced package, project_data.yaml does not exist
next unless File.exist?(gem_deps_path)
# so only load these dependencies from a git clone / bundle install workflow
require 'yaml'
data = YAML.load_file(gem_deps_path)
bundle_platforms = data['bundle_platforms']
x64_platform = Gem::Platform.local.cpu == 'x64'
data['gem_platform_dependencies'].each_pair do |gem_platform, info|
next if gem_platform == 'x86-mingw32' && x64_platform
next if gem_platform == 'x64-mingw32' && !x64_platform
if bundle_deps = info['gem_runtime_dependencies']
bundle_platform = bundle_platforms[gem_platform] or raise "Missing bundle_platform"
if bundle_platform == "all"
bundle_deps.each_pair do |name, version|
s.add_runtime_dependency(name, version)
end
else
# important to use .to_s and not .os for the sake of Windows
# .cpu => x64
# .os => mingw32
# .to_s => x64-mingw32
if Gem::Platform.local.to_s == gem_platform
bundle_deps.each_pair do |name, version|
s.add_runtime_dependency(name, version)
end
end
end
end
end
end