[packages/ruby-mixlib-shellout] new version 1.1.0

glen glen at pld-linux.org
Mon Apr 29 21:52:32 CEST 2013


commit b1339e9f93b4e91de0217b635e1ad3b00f9410d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Apr 14 16:25:18 2013 +0300

    new version 1.1.0
    
    based on fedora rubygem-mixlib-shellout package
    90b2a55ebfc6f4b63118f7d93da6498515aabffe

 mixlib-shellout-awesomeprint-removal.patch | 27 +++++++++++++
 mixlib-shellout-usrmove.patch              | 13 +++++++
 ruby-mixlib-shellout.spec                  | 62 ++++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+)
---
diff --git a/ruby-mixlib-shellout.spec b/ruby-mixlib-shellout.spec
new file mode 100644
index 0000000..08e8f9a
--- /dev/null
+++ b/ruby-mixlib-shellout.spec
@@ -0,0 +1,62 @@
+%define gem_name mixlib-shellout
+Summary:	Run external commands on Unix or Windows
+Name:		ruby-%{gem_name}
+Version:	1.1.0
+Release:	1
+License:	Apache v2.0
+Group:		Development/Languages
+Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# Source0-md5:	94d5aedb7c30a7b10d3b0da03bc4d62a
+# Tests for this package are not in the gem. To update:
+# git clone https://github.com/opscode/mixlib-shellout.git && cd mixlib-shellout
+# git checkout 1.1.0
+# tar czvf rubygem-mixlib-shellout-1.1.0-specs.tgz spec/
+Source1:	rubygem-%{gem_name}-%{version}-specs.tgz
+# Patch for UsrMove, see http://tickets.opscode.com/browse/MIXLIB-6
+Patch0:		mixlib-shellout-usrmove.patch
+# Patch for removal of awesomeprint, see http://tickets.opscode.com/browse/MIXLIB-7
+Patch1:		mixlib-shellout-awesomeprint-removal.patch
+URL:		https://github.com/opscode/mixlib-shellout
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	ruby-rspec
+BuildRequires:	ruby-rubygems
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Run external commands on Unix or Windows
+
+%package doc
+Summary:	Documentation for %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+%if %{with tests}
+tar zxvf %{SOURCE1}
+patch -p1 < %{PATCH0}
+patch -p1 < %{PATCH1}
+# One of the tests involves a fork && sleep 10 that may not finish before mock
+rspec && sleep 10
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%{ruby_vendorlibdir}/mixlib/shellout.rb
+%{ruby_vendorlibdir}/mixlib/shellout
diff --git a/mixlib-shellout-awesomeprint-removal.patch b/mixlib-shellout-awesomeprint-removal.patch
new file mode 100644
index 0000000..4e0f4c3
--- /dev/null
+++ b/mixlib-shellout-awesomeprint-removal.patch
@@ -0,0 +1,27 @@
+diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
+index cc59829..5d2c93d 100644
+--- a/spec/mixlib/shellout_spec.rb
++++ b/spec/mixlib/shellout_spec.rb
+@@ -422,7 +422,6 @@ describe Mixlib::ShellOut do
+             end
+ 
+             context 'when not using a batch file' do
+-              let(:watch) { lambda { |a| ap a } }
+               let(:cmd) { "#{executable_file_name} #{script_name}" }
+ 
+               let(:executable_file_name) { "\"#{dir}/Ruby Parser.exe\"".tap(&make_executable!) }
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 0eab6ba..23908f3 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -6,10 +6,6 @@ require 'tmpdir'
+ require 'tempfile'
+ require 'timeout'
+ 
+-require 'ap'
+-
+-WATCH = lambda { |x| ap x } unless defined?(WATCH)
+-
+ # Load everything from spec/support
+ # Do not change the gsub.
+ Dir["spec/support/**/*.rb"].map { |f| f.gsub(%r{.rb$}, '') }.each { |f| require f }
diff --git a/mixlib-shellout-usrmove.patch b/mixlib-shellout-usrmove.patch
new file mode 100644
index 0000000..dccebc5
--- /dev/null
+++ b/mixlib-shellout-usrmove.patch
@@ -0,0 +1,13 @@
+diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
+index cc59829..cecd585 100644
+--- a/spec/mixlib/shellout_spec.rb
++++ b/spec/mixlib/shellout_spec.rb
+@@ -298,7 +298,7 @@ describe Mixlib::ShellOut do
+       let(:options) { { :cwd => cwd } }
+ 
+       context 'when running under Unix', :unix_only do
+-        let(:cwd) { '/bin' }
++        let(:cwd) { '/tmp' }
+         let(:cmd) { 'pwd' }
+ 
+         it "should chdir to the working directory" do
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-mixlib-shellout.git/commitdiff/b1339e9f93b4e91de0217b635e1ad3b00f9410d2



More information about the pld-cvs-commit mailing list