diff --git a/rubygem-bundler.spec b/rubygem-bundler.spec index 9ae4904..b8a8d97 100644 --- a/rubygem-bundler.spec +++ b/rubygem-bundler.spec @@ -12,8 +12,6 @@ URL: http://gembundler.com Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(release) Requires: ruby(rubygems) -Requires: rubygem(thor) -Requires: rubygem(net-http-persistent) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby @@ -62,6 +60,11 @@ chmod 755 %{buildroot}%{gem_instdir}/lib/bundler/templates/Executable* # Remove bundled libraries rm -rf %{buildroot}/%{gem_libdir}/bundler/vendor +# Let the RubyGems load the Bundler dependencies. This comes handy when Bundler +# is executed from Bundlerized environment. +sed -i "/if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then/ a\ s.add_runtime_dependency(%q)" %{buildroot}%{gem_spec} +sed -i "/if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then/ a\ s.add_runtime_dependency(%q)" %{buildroot}%{gem_spec} + # Man pages are used by Bundler internally, do not remove them! mkdir -p %{buildroot}%{_mandir}/man5 cp -a %{buildroot}%{gem_libdir}/bundler/man/gemfile.5 %{buildroot}%{_mandir}/man5 @@ -133,6 +136,7 @@ EOF` rspec spec/ %changelog * Mon Oct 27 2014 Vít Ondruch - 1.7.4-1 - Update to Bundler 1.7.4. +- Add thor and net-http-persistent dependencies into .gemspec. * Mon Sep 22 2014 Josef Stribny - 1.7.3-1 - Update to 1.7.3