rgem2rpm 1.4.3 → 1.4.4

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.
data/lib/rgem2rpm/gem.rb CHANGED
@@ -105,11 +105,9 @@ class RGem2Rpm::Gem
105
105
  @spec[:files][:directories] << 'specifications'
106
106
  @spec[:files][:directories] << 'bin'
107
107
  # get files and directories
108
- %w(gems specifications).each do |path|
109
- Dir.glob("#{path}/**/*") do |file|
110
- key = File.directory?(file) ? :directories : :files
111
- @spec[:files][key] << file
112
- end
108
+ Dir.glob("gems/**/*") do |file|
109
+ key = File.directory?(file) ? :directories : :files
110
+ @spec[:files][key] << file
113
111
  end
114
112
  # get gem path
115
113
  Dir.glob("gems/*") do |file|
data/lib/rgem2rpm/rpm.rb CHANGED
@@ -42,6 +42,11 @@ class RGem2Rpm::Rpm
42
42
  file.gsub!(/%/, '%%')
43
43
  install_str << "install -m 644 \"#{file}\" %{buildroot}%{prefix}/\"#{file}\"\n"
44
44
  }
45
+ # get specification
46
+ @files[:specification].each { |file|
47
+ file.gsub!(/%/, '%%')
48
+ install_str << "install -m 644 \"#{file}\" %{buildroot}%{prefix}/\"#{file}\"\n"
49
+ }
45
50
  # get executables
46
51
  @files[:executables].each { |executable|
47
52
  executable.gsub!(/%/, '%%')
@@ -60,7 +65,7 @@ class RGem2Rpm::Rpm
60
65
  files_str << "%dir %{prefix}/#{@files[:gempath]}\n"
61
66
  files_str << "%dir %{prefix}/specifications\n"
62
67
  files_str << "%{prefix}/#{@files[:specification]}\n"
63
- files_str << "%{prefix}/#{@files[:gempath]}/*\n"
68
+ files_str << "%{prefix}/#{@files[:gempath]}/*\n" unless @files[:files].empty?
64
69
 
65
70
  # get executables
66
71
  @files[:executables].each { |executable|
@@ -1,3 +1,3 @@
1
1
  module RGem2Rpm
2
- VERSION = '1.4.3'
2
+ VERSION = '1.4.4'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rgem2rpm
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.3
5
+ version: 1.4.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Joao Peixoto
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-01 00:00:00 Z
13
+ date: 2012-06-06 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: Application that enables conversion of rubygems to rpms.
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  requirements: []
56
56
 
57
57
  rubyforge_project:
58
- rubygems_version: 1.8.17
58
+ rubygems_version: 1.8.24
59
59
  signing_key:
60
60
  specification_version: 3
61
61
  summary: Convert ruby gems into rpm