Permalink
Browse files

- add better condition on gem hacks

  • Loading branch information...
1 parent 6467395 commit c71a4142b625eee932dc850a5ed352d7cb01af85 @jordansissel committed Aug 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/rpm.erb
View
@@ -31,8 +31,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
nextversion[l-1] = 0
nextversion = nextversion.join(".")
["#{name} >= #{version}", "#{name} < #{nextversion}"]
- # Convert gem >= A.B.C <= X.Y.Z to '>= A.B.C' and '<= X.Y.Z'
- elsif d =~ /\d [<>]=? \d/
+ elsif d =~ /\d [<>]=? [0-9.+] [<>]=? \d/
+ # Convert gem >= A.B.C <= X.Y.Z to '>= A.B.C' and '<= X.Y.Z'
puts d
# split out version numbers with their equality sign
name, lower_version, upper_version = d.scan(/([\w-]+) ([<>]=? [\d\.]+) ([<>]=? [\d\.]+)/)[0]

0 comments on commit c71a414

Please sign in to comment.