simp-rake-helpers 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/simp/rake/helpers/rpm_spec.rb +16 -9
- data/lib/simp/rake/helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae0e7eed768a9536207962b3291397e21e5824c
|
4
|
+
data.tar.gz: 5a787d0b7846d9bee07dd63698e26fd2d35eebb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 424c5d0a81a0801799a244bc81c2fe15e9d2025c4b9fd7182b72fe591395b4a7dfce623ea5e2f825ff5d4b7eac025e00911f8fa4469f113a491f1506a829ad8c
|
7
|
+
data.tar.gz: 3a416aa1cef6aad13cd1ed527aba288c346f4cc139872310d9d11b9f57b28f1cfeb8305cc2b242fe58a7bb91afbbf3e73b19579db3bf5631c4f5f90fd832850a
|
data/CHANGELOG.md
CHANGED
@@ -55,17 +55,24 @@ module_requires = ''
|
|
55
55
|
|
56
56
|
local name_match = string.match(metadata, '"name":%s+"(.-)"%s*,')
|
57
57
|
|
58
|
+
install_name = ''
|
59
|
+
|
58
60
|
if name_match then
|
59
61
|
local i = 0
|
60
62
|
for str in string.gmatch(name_match,'[^-]+') do
|
61
|
-
if i
|
62
|
-
if
|
63
|
-
module_name = str
|
63
|
+
if i == 0 then
|
64
|
+
if str ~= 'simp' then
|
65
|
+
module_name = ('pupmod-' .. str)
|
64
66
|
else
|
65
|
-
module_name =
|
67
|
+
module_name = 'pupmod'
|
66
68
|
end
|
69
|
+
else
|
70
|
+
module_name = (module_name .. '-' .. str)
|
67
71
|
end
|
68
72
|
|
73
|
+
-- We want the last dash split item as our module path name
|
74
|
+
install_name = str
|
75
|
+
|
69
76
|
i = i+1
|
70
77
|
end
|
71
78
|
end
|
@@ -160,8 +167,8 @@ if req_file then
|
|
160
167
|
end
|
161
168
|
}
|
162
169
|
|
163
|
-
%define
|
164
|
-
%define base_name
|
170
|
+
%define install_name %{lua: print(install_name)}
|
171
|
+
%define base_name %{lua: print(module_name)}
|
165
172
|
|
166
173
|
%{lua:
|
167
174
|
-- Determine which Variant we are going to build
|
@@ -205,7 +212,7 @@ else
|
|
205
212
|
end
|
206
213
|
}
|
207
214
|
|
208
|
-
Summary: %{
|
215
|
+
Summary: %{install_name} Puppet Module
|
209
216
|
%if 0%{?_variant:1}
|
210
217
|
Name: %{base_name}-%{_variant}
|
211
218
|
%else
|
@@ -253,7 +260,7 @@ rm -rf log
|
|
253
260
|
|
254
261
|
curdir=`pwd`
|
255
262
|
dirname=`basename $curdir`
|
256
|
-
cp -r ../$dirname %{buildroot}/%{prefix}/%{
|
263
|
+
cp -r ../$dirname %{buildroot}/%{prefix}/%{install_name}
|
257
264
|
|
258
265
|
%clean
|
259
266
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
@@ -262,7 +269,7 @@ mkdir -p %{buildroot}/%{prefix}
|
|
262
269
|
|
263
270
|
%files
|
264
271
|
%defattr(0640,root,%{puppet_user},0750)
|
265
|
-
%{prefix}/%{
|
272
|
+
%{prefix}/%{install_name}
|
266
273
|
|
267
274
|
%changelog
|
268
275
|
%{lua:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rake-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|