forked from puppetlabs/puppet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2.7.x: (puppetlabs#7422) Support arrow syntax with metaparams rm packaging artifacts in rpm spec, debian rules Fix build targets for 2.7.x Preserve timestamps when installing files Replace dashes with dots for gem version Conflicts: ext/build_defaults.yaml ext/debian/rules ext/redhat/puppet.spec.erb tasks/rake/gem.rake
- Loading branch information
Showing
5 changed files
with
98 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
packaging_url: 'git://github.com/puppetlabs/packaging.git --branch=master' | ||
packaging_repo: 'packaging' | ||
default_cow: 'base-squeeze-i386.cow' | ||
cows: 'base-lucid-i386.cow base-natty-i386.cow base-oneiric-i386.cow base-precise-i386.cow base-sid-i386.cow base-squeeze-i386.cow base-stable-i386.cow base-testing-i386.cow base-unstable-i386.cow base-wheezy-i386.cow' | ||
cows: 'base-lucid-i386.cow base-natty-i386.cow base-oneiric-i386.cow base-precise-i386.cow base-quantal-i386.cow base-sid-i386.cow base-squeeze-i386.cow base-stable-i386.cow base-testing-i386.cow base-unstable-i386.cow base-wheezy-i386.cow' | ||
pbuild_conf: '/etc/pbuilderrc' | ||
packager: 'puppetlabs' | ||
gpg_name: '[email protected]' | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
require 'fileutils' | ||
require 'puppet/version' | ||
|
||
GEM_FILES = FileList[ | ||
'[A-Z]*', | ||
'install.rb', | ||
'bin/**/*', | ||
'lib/**/*', | ||
'conf/**/*', | ||
'man/**/*', | ||
'examples/**/*', | ||
'ext/**/*', | ||
'tasks/**/*', | ||
'test/**/*', | ||
'spec/**/*' | ||
] | ||
|
||
EXECUTABLES = FileList[ | ||
'bin/**/*', | ||
'sbin/**/*' | ||
] | ||
|
||
SBIN = Dir.glob("sbin/*") | ||
GEMVERSION = Puppet.version.gsub('-','.') | ||
|
||
spec = Gem::Specification.new do |spec| | ||
spec.platform = Gem::Platform::RUBY | ||
spec.name = 'puppet' | ||
spec.files = GEM_FILES.to_a | ||
spec.executables = EXECUTABLES.gsub(/sbin\/|bin\//, '').to_a | ||
spec.version = GEMVERSION | ||
spec.add_dependency('facter', '~> 1.5') | ||
spec.summary = 'Puppet, an automated configuration management tool' | ||
spec.description = 'Puppet, an automated configuration management tool' | ||
spec.author = 'Puppet Labs' | ||
spec.email = '[email protected]' | ||
spec.homepage = 'http://puppetlabs.com' | ||
spec.rubyforge_project = 'puppet' | ||
spec.has_rdoc = true | ||
spec.rdoc_options << | ||
'--title' << 'Puppet - Configuration Management' << | ||
'--main' << 'README' << | ||
'--line-numbers' | ||
end | ||
|
||
desc "Prepare binaries for gem creation" | ||
task :prepare_gem do | ||
SBIN.each do |f| | ||
FileUtils.copy(f,"bin") | ||
end | ||
end | ||
|
||
desc "Create the gem" | ||
task :create_gem => :prepare_gem do | ||
Dir.mkdir("pkg") rescue nil | ||
Gem::Builder.new(spec).build | ||
FileUtils.move("puppet-#{GEMVERSION}.gem", "pkg") | ||
SBIN.each do |f| | ||
fn = f.gsub(/sbin\/(.*)/, '\1') | ||
FileUtils.rm_r "bin/" + fn | ||
end | ||
end |