[packages/ruby-mixlib-authentication] not sure why rspec deps added as runtime deps

glen glen at pld-linux.org
Thu Jun 2 18:38:28 CEST 2016


commit dd67ca072bc5edf6ca1688faa1148c12914f1e67
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 2 19:34:59 2016 +0300

    not sure why rspec deps added as runtime deps
    
    https://github.com/chef/mixlib-authentication/commit/93d555012c0ac0e53ec672fda610a114953c37ce
    looks like a mistake

 deps.patch                      | 10 ++++++++++
 ruby-mixlib-authentication.spec |  7 ++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ruby-mixlib-authentication.spec b/ruby-mixlib-authentication.spec
index ba5e537..d321c9a 100644
--- a/ruby-mixlib-authentication.spec
+++ b/ruby-mixlib-authentication.spec
@@ -6,11 +6,12 @@
 Summary:	Simple per-request authentication
 Name:		ruby-%{pkgname}
 Version:	1.4.0
-Release:	0.1
+Release:	0.2
 License:	Apache v2.0
 Group:		Development/Languages
 Source0:	http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem
 # Source0-md5:	10f53cce9daa6d60b414bb2cb77557fa
+Patch0:		deps.patch
 URL:		http://github.com/opscode/mixlib-authentication
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
@@ -35,10 +36,10 @@ This package contains documentation for %{name}.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-# write .gemspec
-%__gem_helper spec
+%__gem_helper spec-dump %{pkgname}.gemspec
 
 %check
 %if %{with tests}
diff --git a/deps.patch b/deps.patch
new file mode 100644
index 0000000..6ca35a3
--- /dev/null
+++ b/deps.patch
@@ -0,0 +1,10 @@
+--- ruby-mixlib-authentication-1.4.0/mixlib-authentication.gemspec~	2016-06-02 19:29:52.000000000 +0300
++++ ruby-mixlib-authentication-1.4.0/mixlib-authentication.gemspec	2016-06-02 19:31:40.599501191 +0300
+@@ -20,6 +20,6 @@
+   s.files = %w(LICENSE README.rdoc Gemfile Rakefile NOTICE) + Dir.glob("*.gemspec") +
+       Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
+ 
+-  %w(rspec-core rspec-expectations rspec-mocks).each { |gem| s.add_dependency gem, "~> 3.2" }
++  %w(rspec-core rspec-expectations rspec-mocks).each { |gem| s.add_development_dependency gem, "~> 3.2" }
+   s.add_development_dependency "rake", "~> 10.4"
+ end
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-mixlib-authentication.git/commitdiff/76bb3177468f23b853055f3a45b5b925c6abe948



More information about the pld-cvs-commit mailing list