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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0804d79f5af26fb909c8f9dbe745c503515ed72c
4
- data.tar.gz: b0fbb44adfee8b3ea53f15a88715ae33289eaaf5
3
+ metadata.gz: cae0e7eed768a9536207962b3291397e21e5824c
4
+ data.tar.gz: 5a787d0b7846d9bee07dd63698e26fd2d35eebb2
5
5
  SHA512:
6
- metadata.gz: 4c59fd53d33e24218a21cad227ea27d01052d152c0e016cf4632b85688d12501755ced61c6d30bec16fba5c97ec8f53b1557abf84b4cd18d9897a4cb37657504
7
- data.tar.gz: b431ebc4958b3de9e4e279fd079611d91de79f2f0f2302925076ca5fc69963ecf02b12a3b6a1ffea98d39e9e70d201f071401f5b0529e3dfe770ba333b8525c3
6
+ metadata.gz: 424c5d0a81a0801799a244bc81c2fe15e9d2025c4b9fd7182b72fe591395b4a7dfce623ea5e2f825ff5d4b7eac025e00911f8fa4469f113a491f1506a829ad8c
7
+ data.tar.gz: 3a416aa1cef6aad13cd1ed527aba288c346f4cc139872310d9d11b9f57b28f1cfeb8305cc2b242fe58a7bb91afbbf3e73b19579db3bf5631c4f5f90fd832850a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 2.4.2 / 2016-07-13
2
+ * Ensure that RPM names are properly structured between SIMP and non-SIMP RPMs
3
+ * Make sure that the install path is proper
4
+
1
5
  ### 2.4.1 / 2016-07-05
2
6
  * Fixed a misnamed variable causing build failures
3
7
 
@@ -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 ~= 0 then
62
- if i == 1 then
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 = (module_name .. '-' .. str)
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 module_name %{lua: print(module_name)}
164
- %define base_name pupmod-%{module_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: %{module_name} Puppet Module
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}/%{module_name}
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}/%{module_name}
272
+ %{prefix}/%{install_name}
266
273
 
267
274
  %changelog
268
275
  %{lua:
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '2.4.1'
5
+ VERSION = '2.4.2'
6
6
  end
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.1
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-06 00:00:00.000000000 Z
12
+ date: 2016-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler