gem2rpm 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,8 @@ module Gem2Rpm
28
28
  end
29
29
 
30
30
  def self.release_files
31
- @@release_files ||= Dir.glob '/etc/*{_version,-release}*'
31
+ @@release_files ||=
32
+ Dir.glob('/etc/*{_version,-release}*').select {|e| File.file? e}
32
33
  end
33
34
 
34
35
  def self.template_by_os_version(os, version)
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.0"
18
+ Gem2Rpm::VERSION = "0.8.1"
19
19
 
20
20
  if HAS_REMOTE_INSTALLER
21
21
  def self.find_download_url(name, version)
@@ -27,7 +27,7 @@ Requires: rubygem(<%= d.name %>) <%= req %>
27
27
  <% end -%>
28
28
  BuildRequires: ruby(abi) = %{rubyabi}
29
29
  <% for req in spec.required_rubygems_version -%>
30
- BuildRequires: ruby(rubygems) <%= req %>
30
+ BuildRequires: rubygems-devel <%= req %>
31
31
  <% end -%>
32
32
  <%# TODO: Unfortunatelly this do not match with ruby(abi) yet -%>
33
33
  <% for req in spec.required_ruby_version -%>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem2rpm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Lutterkort
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-23 00:00:00 Z
19
+ date: 2012-02-09 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: " Generate source rpms and rpm spec files from a Ruby Gem. \n The spec file tries to follow the gem as closely as possible\n"