bundle2rpm 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. data/bin/bundle2rpm +4 -1
  2. data/bundle2rpm.gemspec +1 -1
  3. metadata +3 -3
data/bin/bundle2rpm CHANGED
@@ -58,6 +58,9 @@ def main
58
58
  o.on("--bundler VERSION", "Pull in and package this version of bundler (from Rubyforge/Gemcutter only). Defaults to the same version of bundler that is used to construct your RPM (first in your PATH).") do |ov|
59
59
  @options[:bundler_version] = ov
60
60
  end
61
+ o.on("--custom-rpm-spec SPECFILE", "If specified, use this RPM spec file to construct the RPM.") do |ov|
62
+ @rpm_spec_file = normalize_path(ov)
63
+ end
61
64
  o.on("--save-rpm-to DIR", "If specified, the RPM built for you will be written to this directory. Defaults to your working directory.") do |ov|
62
65
  @options[:save_rpm_to] = ov
63
66
  end
@@ -112,7 +115,7 @@ def main
112
115
  @package_full_name << @variable_map[:package_release][:value]
113
116
  @package_full_name = @package_full_name.join("-")
114
117
  @working_dir = setup_working_dir
115
- @rpm_spec_file = write_rpm_spec("#{@working_dir}/rpmbuild/SPECS/#{@package_full_name}.spec")
118
+ @rpm_spec_file ||= write_rpm_spec("#{@working_dir}/rpmbuild/SPECS/#{@package_full_name}.spec")
116
119
  prepare_bundle
117
120
  build_rpm
118
121
  end
data/bundle2rpm.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = "bundle2rpm"
3
- s.version = "1.0.2"
3
+ s.version = "1.0.3"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.date = "2011-07-12"
6
6
  s.rubyforge_project = "bundle2rpm"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle2rpm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Savona