-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-12031) Consolidate gem depenendencies & metadata into puppet.gem…
…spec This commit moves the puppet gem metadata from ext/project_yaml.data and .gemspec into puppet.gemspec. This change allows the puppet gem to be built using `gem build puppet.gemspec`. Additionally, for platform specific gems (e.g. puppet-universal-darwin.gem and puppet-x64-mingw32.gem), there is conditional logic in puppet.gemspec so platform specific dependecies such as ffi are appended when building those platform-specific gems. (cherry picked from commit 867ce9c)
- Loading branch information
Showing
4 changed files
with
53 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,10 @@ | ||
--- | ||
project: 'puppet' | ||
author: 'Puppet Labs' | ||
email: '[email protected]' | ||
homepage: 'https://github.com/puppetlabs/puppet' | ||
summary: 'Puppet, an automated configuration management tool' | ||
description: 'Puppet, an automated configuration management tool' | ||
version_file: 'lib/puppet/version.rb' | ||
# files and gem_files are space separated lists | ||
files: '[A-Z]* install.rb bin lib conf man examples ext tasks locales' | ||
# Make sure these gem requirements are in sync with the gemspec and Gemfile | ||
gem_files: '[A-Z]* install.rb bin lib conf man examples ext tasks locales' | ||
gem_test_files: | ||
gem_executables: 'puppet' | ||
gem_default_executables: 'puppet' | ||
gem_license: 'Apache-2.0' | ||
gem_forge_project: 'puppet' | ||
gem_required_ruby_version: '>= 2.5.0' | ||
gem_required_rubygems_version: '> 1.3.1' | ||
gem_runtime_dependencies: | ||
facter: ['> 2.0.1', '< 5'] | ||
hiera: ['>= 3.2.1', '< 4'] | ||
semantic_puppet: '~> 1.0' | ||
fast_gettext: ['>= 1.1', '< 3'] | ||
locale: '~> 2.1' | ||
multi_json: '~> 1.10' | ||
puppet-resource_api: '~>1.5' | ||
concurrent-ruby: "~> 1.0" | ||
deep_merge: '~> 1.0' | ||
scanf: '~> 1.0' | ||
gem_rdoc_options: | ||
- --title | ||
- "Puppet - Configuration Management" | ||
- --main | ||
- README.md | ||
- --line-numbers | ||
gem_platform_dependencies: | ||
universal-darwin: | ||
gem_runtime_dependencies: | ||
CFPropertyList: '~> 2.2' | ||
x86-mingw32: | ||
gem_runtime_dependencies: | ||
ffi: '1.15.5' | ||
minitar: '~> 0.9' | ||
x64-mingw32: | ||
gem_runtime_dependencies: | ||
ffi: '1.15.5' | ||
minitar: '~> 0.9' | ||
bundle_platforms: | ||
universal-darwin: all | ||
x86-mingw32: mingw | ||
x64-mingw32: x64_mingw | ||
pre_tasks: | ||
'package:apple': 'cfpropertylist' | ||
'package:apple': 'cfpropertylist' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Gem::Specification.new do |s| | ||
s.name = "puppet" | ||
version = "7.31.0" | ||
mdata = version.match(/(\d+\.\d+\.\d+)/) | ||
s.version = mdata ? mdata[1] : version | ||
s.license = 'Apache-2.0' | ||
|
||
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") | ||
s.required_ruby_version = Gem::Requirement.new(">= 2.5.0") | ||
s.authors = ["Puppet Labs"] | ||
s.date = "2012-08-17" | ||
s.description = <<~EOF | ||
Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks | ||
(such as adding users, installing packages, and updating server configurations) based on a centralized specification. | ||
EOF | ||
s.email = "[email protected]" | ||
s.executables = ["puppet"] | ||
s.files = Dir['[A-Z]*'] + Dir['install.rb'] + Dir['bin/*'] + Dir['lib/**/*'] + Dir['conf/*'] + Dir['man/**/*'] + Dir['tasks/*'] + Dir['locales/**/*'] + Dir['ext/**/*'] + Dir['examples/**/*'] | ||
s.homepage = "https://github.com/puppetlabs/puppet" | ||
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 = 4 | ||
s.add_runtime_dependency(%q<facter>, ["> 2.0.1", "< 5"]) | ||
s.add_runtime_dependency(%q<hiera>, [">= 3.2.1", "< 4"]) | ||
s.add_runtime_dependency(%q<semantic_puppet>, "~> 1.0") | ||
s.add_runtime_dependency(%q<fast_gettext>, ">= 1.1", "< 3") | ||
s.add_runtime_dependency(%q<locale>, "~> 2.1") | ||
s.add_runtime_dependency(%q<multi_json>, "~> 1.10") | ||
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") | ||
|
||
# For building platform specific puppet gems...the --platform flag is only supported in newer Ruby versions | ||
platform = s.platform.to_s | ||
if platform == 'universal-darwin' | ||
s.add_runtime_dependency('CFPropertyList', '~> 2.2') | ||
end | ||
|
||
if platform == 'x64-mingw32' || platform == 'x86-mingw32' | ||
s.add_runtime_dependency('ffi', '1.15.5') | ||
s.add_runtime_dependency('minitar', '~> 0.9') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters