packages: ruby-grit/ruby-grit.spec, ruby-grit/ruby-grit-nogems.patch (NEW) ...
aredridel
aredridel at pld-linux.org
Sat Aug 28 19:22:41 CEST 2010
Author: aredridel Date: Sat Aug 28 17:22:41 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- patch out gems into an option
---- Files affected:
packages/ruby-grit:
ruby-grit.spec (1.1 -> 1.2) , ruby-grit-nogems.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/ruby-grit/ruby-grit.spec
diff -u packages/ruby-grit/ruby-grit.spec:1.1 packages/ruby-grit/ruby-grit.spec:1.2
--- packages/ruby-grit/ruby-grit.spec:1.1 Sat Aug 28 17:43:05 2010
+++ packages/ruby-grit/ruby-grit.spec Sat Aug 28 19:22:36 2010
@@ -11,6 +11,7 @@
Group: Development/Tools
Source0: http://download.github.com/%{gitauthor}-grit-v%{version}-0-g%{gitrev}.tar.gz
# Source0-md5: 5e6a2d136de6c66059d439f3e2a41b55
+Patch0: %{name}-nogems.patch
URL: http://grit.rubyforge.org/
BuildRequires: rpmbuild(macros) >= 1.277
BuildRequires: ruby
@@ -30,6 +31,7 @@
%prep
%setup -q -n %{gitauthor}-grit-%{gitrev}
+%patch0 -p1
cp %{_datadir}/setup.rb .
ruby setup.rb config \
--installdirs=std
@@ -55,6 +57,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2010/08/28 17:22:36 aredridel
+- patch out gems into an option
+
Revision 1.1 2010/08/28 15:43:05 aredridel
- added
================================================================
Index: packages/ruby-grit/ruby-grit-nogems.patch
diff -u /dev/null packages/ruby-grit/ruby-grit-nogems.patch:1.1
--- /dev/null Sat Aug 28 19:22:41 2010
+++ packages/ruby-grit/ruby-grit-nogems.patch Sat Aug 28 19:22:36 2010
@@ -0,0 +1,15 @@
+diff -ur mojombo-grit-7609e74-o/lib/grit.rb mojombo-grit-7609e74/lib/grit.rb
+--- mojombo-grit-7609e74-o/lib/grit.rb 2010-08-19 18:55:45.000000000 -0600
++++ mojombo-grit-7609e74/lib/grit.rb 2010-08-28 11:19:44.000000000 -0600
+@@ -18,7 +18,10 @@
+ end
+
+ # third party
+-require 'rubygems'
++begin
++ require 'rubygems'
++rescue LoadError
++end
+ begin
+ gem "mime-types", ">=0"
+ require 'mime/types'
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-grit/ruby-grit.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list