packaging 0.118.0 → 0.119.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: f9b826603e9021b617f6ebd794189aefc48eac9d35d0dbd41bdc507340a64472
4
+ data.tar.gz: 95f34b49c2c1ad926fcbb79730a667dead2f333fde651f10b7a219e5f0a4ca82
5
5
  SHA512:
6
- metadata.gz: 6a6bb1684deca5aa04bf1e8fefaaebc9b64be735675d8d69fb284f2d3b6d49fdeaba59fa28e07aaa2037e5d24db713c0e046e107c3c41b07c84b67c6de3add58
7
- data.tar.gz: e0016808e5792f0399e9aef46ff539a8b3ac30954188f9221a222c84a1bc0c0167499e0aa77bbf6e3d47d2c0d27163bbc51176901bebe75d70f835b5f658c3d3
6
+ metadata.gz: c53db3d79e10b84fd1db3bab50b26de971712b25aba0843c21cbc056165b71c7612c8d44fd42b3fbcfd909006fd02fcf31adaafa4b1f763deacba1773c20889e
7
+ data.tar.gz: 8628225fecfe6afb175fcff7efb70edb724fe7b6fd96cf6d2ddbc232ffb7e3b88e9008b2b5b04badb0b15cf231aa55a15d510a29d5a604907025949da73021cf
@@ -36,6 +36,14 @@ 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
+ },
39
47
  },
40
48
 
41
49
  'debian' => {
@@ -117,6 +125,14 @@ module Pkg
117
125
  signature_format: 'v4',
118
126
  repo: true,
119
127
  },
128
+ '40' => {
129
+ architectures: ['x86_64'],
130
+ source_architecture: 'SRPMS',
131
+ package_format: 'rpm',
132
+ source_package_formats: ['src.rpm'],
133
+ signature_format: 'v4',
134
+ repo: true,
135
+ },
120
136
  },
121
137
 
122
138
  '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.119.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-05-09 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
310
- - 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
- - spec/lib/packaging/tar_spec.rb
315
- - spec/lib/packaging/platforms_spec.rb
316
296
  - spec/lib/packaging/deb/repo_spec.rb
297
+ - spec/lib/packaging/repo_spec.rb
298
+ - spec/lib/packaging/rpm/repo_spec.rb
299
+ - spec/lib/packaging/deb_spec.rb
317
300
  - spec/lib/packaging/util/net_spec.rb
318
- - spec/lib/packaging/util/git_spec.rb
301
+ - spec/lib/packaging/util/os_spec.rb
319
302
  - spec/lib/packaging/util/ship_spec.rb
303
+ - spec/lib/packaging/util/version_spec.rb
320
304
  - 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
- - spec/lib/packaging/util/gpg_spec.rb
306
+ - spec/lib/packaging/util/execution_spec.rb
326
307
  - spec/lib/packaging/util/rake_utils_spec.rb
327
- - spec/lib/packaging/util/os_spec.rb
308
+ - spec/lib/packaging/util/git_spec.rb
328
309
  - spec/lib/packaging/util/misc_spec.rb
310
+ - spec/lib/packaging/util/file_spec.rb
311
+ - spec/lib/packaging/util/gpg_spec.rb
312
+ - spec/lib/packaging/platforms_spec.rb
313
+ - spec/lib/packaging/config_spec.rb
314
+ - spec/lib/packaging/sign_spec.rb
315
+ - spec/lib/packaging/tar_spec.rb
316
+ - spec/lib/packaging/gem_spec.rb
329
317
  - spec/lib/packaging/paths_spec.rb
330
318
  - spec/lib/packaging/retrieve_spec.rb
331
- - spec/lib/packaging/rpm/repo_spec.rb
332
- - spec/lib/packaging/deb_spec.rb
333
- - spec/lib/packaging/gem_spec.rb
319
+ - spec/lib/packaging/artifactory_spec.rb
320
+ - spec/lib/packaging_spec.rb