SPECS: ruby-redcloth.spec - modifying sources should be done in %prep

glen glen at pld-linux.org
Sat Nov 19 12:56:30 CET 2005


Author: glen                         Date: Sat Nov 19 11:56:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- modifying sources should be done in %prep

---- Files affected:
SPECS:
   ruby-redcloth.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/ruby-redcloth.spec
diff -u SPECS/ruby-redcloth.spec:1.4 SPECS/ruby-redcloth.spec:1.5
--- SPECS/ruby-redcloth.spec:1.4	Sat Nov 19 06:40:52 2005
+++ SPECS/ruby-redcloth.spec	Sat Nov 19 12:56:24 2005
@@ -12,7 +12,7 @@
 # Source0-md5:	6f076b94e783149adf96102c574a233c
 URL:		http://www.whytheluckystiff.net/ruby/redcloth/
 BuildRequires: setup.rb
-BuildRequires: perl
+BuildRequires: sed >= 4.0
 Requires:	ruby
 #BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,6 +29,7 @@
 
 %prep
 %setup -q -n RedCloth-%{version}
+sed -i -e "s#/usr/bin/ruby18#/usr/bin/ruby#" bin/*
 
 %build
 cp %{_datadir}/setup.rb .
@@ -40,9 +41,6 @@
 
 rdoc -o rdoc doc lib
 
-find bin -type f | xargs perl -pi -e "s#/usr/bin/ruby18#/usr/bin/ruby#"
-
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
@@ -64,6 +62,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/11/19 11:56:24  glen
+- modifying sources should be done in %prep
+
 Revision 1.4  2005/11/19 05:40:52  aredridel
 - up to 3.0.4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ruby-redcloth.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list