packaging 0.118.0 → 0.120.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1b41756b1e69f37e70e46b4cb8efac82a8a64722d01ca578b73657c01b889cd
4
- data.tar.gz: 7835d3b37e2090da5265eea585d9e4fb0f68847ec4eb467301408213917227e7
3
+ metadata.gz: 7b18ea5a4fbf5f94f741269f71ca9a48f682f589244d901c7d1b47bf6b8a65a0
4
+ data.tar.gz: d946ded712a46f846434a7362077556847254425b6be295afd60b71ed34df2fe
5
5
  SHA512:
6
- metadata.gz: 6a6bb1684deca5aa04bf1e8fefaaebc9b64be735675d8d69fb284f2d3b6d49fdeaba59fa28e07aaa2037e5d24db713c0e046e107c3c41b07c84b67c6de3add58
7
- data.tar.gz: e0016808e5792f0399e9aef46ff539a8b3ac30954188f9221a222c84a1bc0c0167499e0aa77bbf6e3d47d2c0d27163bbc51176901bebe75d70f835b5f658c3d3
6
+ metadata.gz: 5f19e8d594c0aa4d784ff04d38614c55d4ca3c47f6be2cf2758fad1577bc9d6f442b25dc74e1806431773893dd94b3e90fe548f5f7e09fad862547136e8c9c97
7
+ data.tar.gz: 9b9f26cd0d61b7e5d1020284098076a3d5863814594fb2944cdbca437f30740983a1ab14aa9470437b30bcb4dc32ce79fcd0f3f536af6982a465955d297a6973
@@ -36,6 +36,22 @@ module Pkg
36
36
  signature_format: 'v4',
37
37
  repo: true,
38
38
  },
39
+ '7' => {
40
+ architectures: ['aarch64'],
41
+ source_architecture: 'SRPMS',
42
+ package_format: 'rpm',
43
+ source_package_formats: ['src.rpm'],
44
+ signature_format: 'v4',
45
+ repo: true,
46
+ },
47
+ '2' => {
48
+ architectures: ['aarch64'],
49
+ source_architecture: 'SRPMS',
50
+ package_format: 'rpm',
51
+ source_package_formats: ['src.rpm'],
52
+ signature_format: 'v4',
53
+ repo: true,
54
+ },
39
55
  },
40
56
 
41
57
  'debian' => {
@@ -117,6 +133,14 @@ module Pkg
117
133
  signature_format: 'v4',
118
134
  repo: true,
119
135
  },
136
+ '40' => {
137
+ architectures: ['x86_64'],
138
+ source_architecture: 'SRPMS',
139
+ package_format: 'rpm',
140
+ source_package_formats: ['src.rpm'],
141
+ signature_format: 'v4',
142
+ repo: true,
143
+ },
120
144
  },
121
145
 
122
146
  'osx' => {
@@ -0,0 +1,13 @@
1
+ module Pkg::Sign::Ips
2
+ module_function
3
+
4
+ def sign(ips_dir = 'pkg')
5
+ packages = Dir["#{ips_dir}/**/*.p5p"]
6
+ return if packages.empty?
7
+
8
+ Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain')
9
+ packages.each do |p5p_package|
10
+ Pkg::Util::Gpg.sign_file(p5p_package)
11
+ end
12
+ end
13
+ end
@@ -1,6 +1,7 @@
1
1
  module Pkg::Sign
2
2
  require 'packaging/sign/deb'
3
3
  require 'packaging/sign/dmg'
4
+ require 'packaging/sign/ips'
4
5
  require 'packaging/sign/msi'
5
6
  require 'packaging/sign/rpm'
6
7
  end
@@ -39,8 +39,7 @@ namespace :pl do
39
39
  Pkg::Rpm::Repo.sign_repos('repos')
40
40
  Pkg::Deb::Repo.sign_repos('repos', 'Apt repository for signed builds')
41
41
  Pkg::Sign::Dmg.sign('repos') unless Dir['repos/apple/**/*.dmg'].empty?
42
- ### RE-16211: we should put this back and unify with the code in sign.rake
43
- # Pkg::Sign::Ips.sign('repos') unless Dir['repos/solaris/11/**/*.p5p'].empty?
42
+ Pkg::Sign::Ips.sign('repos') unless Dir['repos/solaris/11/**/*.p5p'].empty?
44
43
  Pkg::Sign::Msi.sign('repos') unless Dir['repos/windows/**/*.msi'].empty?
45
44
  end
46
45
 
data/tasks/sign.rake CHANGED
@@ -45,13 +45,8 @@ namespace :pl do
45
45
  desc "Sign ips package, defaults to PL key, pass GPG_KEY to override"
46
46
  task :sign_ips, :root_dir do |_t, args|
47
47
  ips_dir = args.root_dir || $DEFAULT_DIRECTORY
48
- packages = Dir["#{ips_dir}/**/*.p5p"]
49
- next if packages.empty?
50
-
51
- Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain')
52
- packages.each do |p5p_package|
53
- Pkg::Util::Gpg.sign_file p5p_package
54
- end
48
+ next if Dir["#{ips_dir}/**/*.p5p"].empty?
49
+ Pkg::Sign::Ips.sign(ips_dir)
55
50
  end
56
51
 
57
52
  desc "Sign built gems, defaults to PL key, pass GPG_KEY to override or edit build_defaults"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.118.0
4
+ version: 0.120.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet By Perforce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-05 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: apt_stage_artifacts
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: artifactory
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -180,6 +166,7 @@ files:
180
166
  - lib/packaging/sign.rb
181
167
  - lib/packaging/sign/deb.rb
182
168
  - lib/packaging/sign/dmg.rb
169
+ - lib/packaging/sign/ips.rb
183
170
  - lib/packaging/sign/msi.rb
184
171
  - lib/packaging/sign/rpm.rb
185
172
  - lib/packaging/tar.rb
@@ -306,28 +293,28 @@ signing_key:
306
293
  specification_version: 4
307
294
  summary: Puppet by Perforce packaging automation
308
295
  test_files:
309
- - spec/lib/packaging_spec.rb
296
+ - spec/lib/packaging/rpm/repo_spec.rb
310
297
  - spec/lib/packaging/repo_spec.rb
311
- - spec/lib/packaging/config_spec.rb
312
- - spec/lib/packaging/sign_spec.rb
313
- - spec/lib/packaging/artifactory_spec.rb
314
298
  - spec/lib/packaging/tar_spec.rb
315
- - spec/lib/packaging/platforms_spec.rb
316
- - spec/lib/packaging/deb/repo_spec.rb
317
- - spec/lib/packaging/util/net_spec.rb
299
+ - spec/lib/packaging/config_spec.rb
300
+ - spec/lib/packaging/util/jenkins_spec.rb
301
+ - spec/lib/packaging/util/rake_utils_spec.rb
318
302
  - spec/lib/packaging/util/git_spec.rb
303
+ - spec/lib/packaging/util/misc_spec.rb
319
304
  - spec/lib/packaging/util/ship_spec.rb
320
- - spec/lib/packaging/util/jenkins_spec.rb
321
- - spec/lib/packaging/util/execution_spec.rb
322
- - spec/lib/packaging/util/file_spec.rb
323
305
  - spec/lib/packaging/util/git_tag_spec.rb
324
- - spec/lib/packaging/util/version_spec.rb
325
306
  - spec/lib/packaging/util/gpg_spec.rb
326
- - spec/lib/packaging/util/rake_utils_spec.rb
307
+ - spec/lib/packaging/util/version_spec.rb
308
+ - spec/lib/packaging/util/file_spec.rb
309
+ - spec/lib/packaging/util/execution_spec.rb
327
310
  - spec/lib/packaging/util/os_spec.rb
328
- - spec/lib/packaging/util/misc_spec.rb
329
- - spec/lib/packaging/paths_spec.rb
330
- - spec/lib/packaging/retrieve_spec.rb
331
- - spec/lib/packaging/rpm/repo_spec.rb
311
+ - spec/lib/packaging/util/net_spec.rb
332
312
  - spec/lib/packaging/deb_spec.rb
313
+ - spec/lib/packaging/artifactory_spec.rb
314
+ - spec/lib/packaging/retrieve_spec.rb
315
+ - spec/lib/packaging/sign_spec.rb
333
316
  - spec/lib/packaging/gem_spec.rb
317
+ - spec/lib/packaging/paths_spec.rb
318
+ - spec/lib/packaging/deb/repo_spec.rb
319
+ - spec/lib/packaging/platforms_spec.rb
320
+ - spec/lib/packaging_spec.rb