libyui-rake 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/VERSION +1 -1
- data/data/targets.yml +7 -2
- data/lib/libyui/rake.rb +4 -2
- data/lib/libyui/tasks.rb +8 -5
- data/lib/tasks/so_version.rake +3 -1
- data/lib/tasks/test.rake +2 -0
- data/lib/tasks/version.rake +3 -1
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628c79e773ab9286bd477d87379fc9603a0d13e94988c9e2df6bf059c084e5a0
|
4
|
+
data.tar.gz: 2db3b8e03f22243882944f53f9e2b1d6f628f91e633119444940cd0a9ae7becf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a07328e9b67b309e800a360617e1e0d06bf3ae78939f11051bab4d4674631deeba0dfa2bf14e35ca493a71f43f617c4a064618eb5156aefb678569dcfa3a85
|
7
|
+
data.tar.gz: 20376aa46a7ae7b7d74ef4ef6c0ab050dc455cff06f1cbf42b9a13bd16e416e30bea014c2d1b5be6f9dacf4c4ae454527ae348ed772273137b948241794f3e5f
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Libyui::Rake
|
2
2
|
|
3
|
-
[](
|
4
|
+
https://github.com/libyui/libyui-rake/actions?query=branch%3Amaster)
|
5
5
|
|
6
6
|
Rake tasks to help with uniform handling of libyui related projects. It provides setup for
|
7
7
|
[packaging tasks](http://github.com/openSUSE/packaging_tasks) and add some additional tasks.
|
@@ -10,7 +10,7 @@ Rake tasks to help with uniform handling of libyui related projects. It provides
|
|
10
10
|
|
11
11
|
Create a `Rakefile` with this content:
|
12
12
|
|
13
|
-
```
|
13
|
+
```ruby
|
14
14
|
require "libyui/rake"
|
15
15
|
```
|
16
16
|
|
@@ -32,7 +32,7 @@ configuration choosing from a set of [targets
|
|
32
32
|
definitions](https://github.com/libyui/libyui-rake/blob/master/data/targets.yml).
|
33
33
|
For example, if you want to submit to SLE12, you can do:
|
34
34
|
|
35
|
-
```
|
35
|
+
```ruby
|
36
36
|
Libyui::Tasks.submit_to(:sle12)
|
37
37
|
```
|
38
38
|
This method can receive, as a second parameter, the path to your own
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.24
|
data/data/targets.yml
CHANGED
@@ -69,11 +69,16 @@
|
|
69
69
|
obs_project: "Devel:YaST:SLE-15-SP4"
|
70
70
|
obs_sr_project: "SUSE:SLE-15-SP4:Update"
|
71
71
|
obs_target: "SUSE_SLE-15-SP4_GA"
|
72
|
+
:sle15sp5:
|
73
|
+
obs_api: "https://api.suse.de/"
|
74
|
+
obs_project: "Devel:YaST:SLE-15-SP5"
|
75
|
+
obs_sr_project: "SUSE:SLE-15-SP5:Update"
|
76
|
+
obs_target: "SUSE_SLE-15-SP5_GA"
|
72
77
|
:sle_latest:
|
73
78
|
obs_api: "https://api.suse.de/"
|
74
79
|
obs_project: "Devel:YaST:Head"
|
75
|
-
obs_sr_project: "SUSE:SLE-15-
|
76
|
-
obs_target: "SUSE_SLE-15-
|
80
|
+
obs_sr_project: "SUSE:SLE-15-SP5:GA"
|
81
|
+
obs_target: "SUSE_SLE-15-SP5_GA"
|
77
82
|
:factory:
|
78
83
|
obs_project: "devel:libraries:libyui"
|
79
84
|
obs_sr_project: "openSUSE:Factory"
|
data/lib/libyui/rake.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#--
|
2
4
|
# Copyright (C) 2015 SUSE LLC
|
3
5
|
# This library is free software; you can redistribute it and/or modify
|
@@ -23,7 +25,7 @@ Libyui::Tasks.configuration do |conf|
|
|
23
25
|
include Libyui::Tasks::Helpers
|
24
26
|
|
25
27
|
# read package name from spec file name because CWD can have a -branch suffix
|
26
|
-
main_spec = Dir.glob("package/*.spec").
|
28
|
+
main_spec = Dir.glob("package/*.spec").max
|
27
29
|
conf.package_name = main_spec[/package\/(.*)\.spec$/, 1]
|
28
30
|
|
29
31
|
conf.version = cmake_version
|
@@ -36,7 +38,7 @@ Libyui::Tasks.configuration do |conf|
|
|
36
38
|
end
|
37
39
|
|
38
40
|
# load libyui-rake tasks
|
39
|
-
task_path = File.expand_path("
|
41
|
+
task_path = File.expand_path("../tasks", __dir__)
|
40
42
|
Dir["#{task_path}/*.rake"].each do |f|
|
41
43
|
load f
|
42
44
|
end
|
data/lib/libyui/tasks.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#--
|
2
4
|
# Copyright (C) 2015-2021 SUSE LLC
|
3
5
|
# This library is free software; you can redistribute it and/or modify
|
@@ -19,9 +21,9 @@ module Libyui
|
|
19
21
|
# Facilities to write Libyui related rake tasks.
|
20
22
|
module Tasks
|
21
23
|
# Name of the CMake version file
|
22
|
-
VERSION_CMAKE = "VERSION.cmake"
|
24
|
+
VERSION_CMAKE = "VERSION.cmake"
|
23
25
|
# Targets definition
|
24
|
-
TARGETS_FILE = File.expand_path("
|
26
|
+
TARGETS_FILE = File.expand_path("../../data/targets.yml", __dir__)
|
25
27
|
|
26
28
|
# Wrapper to set up packaging tasks
|
27
29
|
def self.configuration(&block)
|
@@ -32,6 +34,7 @@ module Libyui
|
|
32
34
|
targets = YAML.load_file(file)
|
33
35
|
config = targets[target]
|
34
36
|
raise "Not configuration found for #{target}" if config.nil?
|
37
|
+
|
35
38
|
Libyui::Tasks.configuration do |conf|
|
36
39
|
config.each do |meth, val|
|
37
40
|
conf.public_send("#{meth}=", val)
|
@@ -101,9 +104,9 @@ module Libyui
|
|
101
104
|
# @param key [String] e.g., 'VERSION_MAJOR'
|
102
105
|
#
|
103
106
|
# @return [String] e.g., "3"
|
104
|
-
def cmake_value(
|
107
|
+
def cmake_value(text, key)
|
105
108
|
e_key = Regexp.escape(key)
|
106
|
-
m = /SET\s*\(\s*#{e_key}\s+"([^"]*)"\s*\)/.match(
|
109
|
+
m = /SET\s*\(\s*#{e_key}\s+"([^"]*)"\s*\)/.match(text)
|
107
110
|
m ? m[1] : nil
|
108
111
|
end
|
109
112
|
|
@@ -144,7 +147,7 @@ module Libyui
|
|
144
147
|
# @param filename [String, nil] if nil, it uses the shortest spec filename
|
145
148
|
# @return [String]
|
146
149
|
def spec_filename(filename)
|
147
|
-
filename || Dir.glob("package/*.spec").
|
150
|
+
filename || Dir.glob("package/*.spec").min
|
148
151
|
end
|
149
152
|
end
|
150
153
|
end
|
data/lib/tasks/so_version.rake
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#--
|
2
4
|
# Copyright (C) 2021 SUSE LLC
|
3
5
|
# This library is free software; you can redistribute it and/or modify
|
@@ -24,7 +26,7 @@ namespace :so_version do
|
|
24
26
|
filenames = Dir.glob("package/*.spec").sort
|
25
27
|
filenames.reject! { |f| spec_so_version(f).nil? }
|
26
28
|
|
27
|
-
mismatches = filenames.
|
29
|
+
mismatches = filenames.reject { |f| spec_so_version(f) == so_version }
|
28
30
|
|
29
31
|
if mismatches.any?
|
30
32
|
messages = ["so version mismatch:"]
|
data/lib/tasks/test.rake
CHANGED
data/lib/tasks/version.rake
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
#--
|
2
4
|
# Copyright (C) 2015 SUSE LLC
|
3
5
|
# This library is free software; you can redistribute it and/or modify
|
@@ -27,7 +29,7 @@ namespace :version do
|
|
27
29
|
spec_v = spec_version(spec_filename)
|
28
30
|
if cmake_v != spec_v
|
29
31
|
raise "Version mismatch, #{Libyui::Tasks::VERSION_CMAKE}:#{cmake_v} "\
|
30
|
-
|
32
|
+
"#{spec_filename}:#{spec_v}"
|
31
33
|
end
|
32
34
|
end
|
33
35
|
puts cmake_v if verbose
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libyui-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YaST team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: packaging_rake_tasks
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -30,26 +44,12 @@ dependencies:
|
|
30
44
|
- - "<"
|
31
45
|
- !ruby/object:Gem::Version
|
32
46
|
version: '99'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: packaging_rake_tasks
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.5'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '1.5'
|
47
47
|
description: |
|
48
48
|
Rake tasks that support the workflow of a libyui developer. It allows packaging
|
49
49
|
a repo, sending it to the build service, creating a submit request to the
|
50
50
|
target repo or running the client from the git repo.
|
51
51
|
Heavily inspired by yast-rake.
|
52
|
-
email: yast-devel@
|
52
|
+
email: yast-devel@lists.opensuse.org
|
53
53
|
executables: []
|
54
54
|
extensions: []
|
55
55
|
extra_rdoc_files: []
|
@@ -63,11 +63,12 @@ files:
|
|
63
63
|
- lib/tasks/so_version.rake
|
64
64
|
- lib/tasks/test.rake
|
65
65
|
- lib/tasks/version.rake
|
66
|
-
homepage: https://github.com/
|
66
|
+
homepage: https://github.com/libyui/libyui-rake
|
67
67
|
licenses:
|
68
68
|
- LGPL-2.1
|
69
|
-
metadata:
|
70
|
-
|
69
|
+
metadata:
|
70
|
+
rubygems_mfa_required: 'true'
|
71
|
+
post_install_message:
|
71
72
|
rdoc_options: []
|
72
73
|
require_paths:
|
73
74
|
- lib
|
@@ -75,16 +76,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
76
|
requirements:
|
76
77
|
- - ">="
|
77
78
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
+
version: 2.5.0
|
79
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
81
|
requirements:
|
81
82
|
- - ">="
|
82
83
|
- !ruby/object:Gem::Version
|
83
84
|
version: '0'
|
84
85
|
requirements: []
|
85
|
-
|
86
|
-
|
87
|
-
signing_key:
|
86
|
+
rubygems_version: 3.3.7
|
87
|
+
signing_key:
|
88
88
|
specification_version: 4
|
89
|
-
summary: Rake tasks
|
89
|
+
summary: Rake tasks that provide basic workflow for libyui development
|
90
90
|
test_files: []
|