gem2rpm 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gem2rpm.rb CHANGED
@@ -15,7 +15,7 @@ if HAS_REMOTE_INSTALLER
15
15
  end
16
16
 
17
17
  module Gem2Rpm
18
- Gem2Rpm::VERSION = "0.8.2"
18
+ Gem2Rpm::VERSION = "0.8.3"
19
19
 
20
20
  if HAS_REMOTE_INSTALLER
21
21
  def self.find_download_url(name, version)
@@ -84,8 +84,9 @@ cp -pa .%{gem_dir}/* \
84
84
  %{buildroot}%{gem_dir}/
85
85
 
86
86
  <% unless spec.extensions.empty? -%>
87
- mkdir -p %{buildroot}%{gem_extdir}/<%= spec.require_paths.first %>
88
- mv %{buildroot}%{gem_instdir}/<%= spec.require_paths.first %>/shared_object.so %{buildroot}%{gem_extdir}/<%= spec.require_paths.first %>/
87
+ mkdir -p %{buildroot}%{gem_extdir_mri}/<%= spec.require_paths.first %>
88
+ # TODO: move the extensions
89
+ mv %{buildroot}%{gem_instdir}/<%= spec.require_paths.first %>/shared_object.so %{buildroot}%{gem_extdir_mri}/<%= spec.require_paths.first %>/
89
90
  <% end -%>
90
91
 
91
92
  <% unless spec.executables.nil? or spec.executables.empty? -%>
@@ -109,7 +110,7 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
109
110
  %{gem_libdir}
110
111
  <% unless spec.extensions.empty? -%>
111
112
  %exclude %{gem_instdir}/ext
112
- %{gem_extdir}
113
+ %{gem_extdir_mri}
113
114
  <% end -%>
114
115
  <% unless doc_subpackage -%>
115
116
  %doc %{gem_docdir}
@@ -68,9 +68,9 @@ cp -pa .%{gem_dir}/* \
68
68
  %{buildroot}%{gem_dir}/
69
69
 
70
70
  <% unless spec.extensions.empty? -%>
71
- mkdir -p %{buildroot}%{gem_extdir}/<%= spec.require_paths.first %>
71
+ mkdir -p %{buildroot}%{gem_extdir_mri}/<%= spec.require_paths.first %>
72
72
  # TODO: move the extensions
73
- mv %{buildroot}%{gem_instdir}/<%= spec.require_paths.first %>/shared_object.so %{buildroot}%{gem_extdir}/<%= spec.require_paths.first %>/
73
+ mv %{buildroot}%{gem_instdir}/<%= spec.require_paths.first %>/shared_object.so %{buildroot}%{gem_extdir_mri}/<%= spec.require_paths.first %>/
74
74
  <% end -%>
75
75
 
76
76
  <% unless spec.executables.nil? or spec.executables.empty? -%>
@@ -94,7 +94,7 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
94
94
  %{gem_libdir}
95
95
  <% unless spec.extensions.empty? -%>
96
96
  %exclude %{gem_instdir}/ext
97
- %{gem_extdir}
97
+ %{gem_extdir_mri}
98
98
  <% end -%>
99
99
  <% unless doc_subpackage -%>
100
100
  %doc %{gem_docdir}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem2rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-21 00:00:00.000000000 Z
13
+ date: 2013-02-27 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: ! " Generate source rpms and rpm spec files from a Ruby Gem. \n The
16
16
  spec file tries to follow the gem as closely as possible\n"