rpms/rubygem-RedCloth/devel rubygem-RedCloth.spec,1.2,1.3

Darryl L. Pierce mcpierce at fedoraproject.org
Tue Jul 14 18:26:06 UTC 2009


Author: mcpierce

Update of /cvs/pkgs/rpms/rubygem-RedCloth/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15571

Modified Files:
	rubygem-RedCloth.spec 
Log Message:
* Tue Jul 14 2009 Darryl Pierce <dpierce at redhat.com> - 4.1.9-5
- Resolves: rhbz#505589 - rubygem-RedCloth-debuginfo created from stripped binaries




Index: rubygem-RedCloth.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-RedCloth/devel/rubygem-RedCloth.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- rubygem-RedCloth.spec	14 Jul 2009 17:36:54 -0000	1.2
+++ rubygem-RedCloth.spec	14 Jul 2009 18:25:36 -0000	1.3
@@ -1,12 +1,13 @@
 # Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%define gemname RedCloth
-%define gemlibname redcloth_scan.so
-%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
-%define installroot %{buildroot}%{geminstdir}
-%define extensionddir %{installroot}/ext/redcloth_scan/
+%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname RedCloth
+%global gemlibname redcloth_scan.so
+%global workdir %(mktemp -d)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global installroot %{buildroot}%{geminstdir}
+%global extensionddir %{installroot}/ext/redcloth_scan/
 
 Summary: Textile parser for Ruby
 Name: rubygem-%{gemname}
@@ -40,15 +41,17 @@ install -d -m0755 %{buildroot}%{ruby_sit
 install -d -m0755 %{buildroot}%{ruby_sitearch}
 
 export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-gem install --local --install-dir %{buildroot}%{gemdir} \
+gem install --local --install-dir %{workdir} \
             --force -V --rdoc %{SOURCE0}
 
+cp -ra %{workdir}/* %{buildroot}%{gemdir}
+
 mkdir -p %{buildroot}/%{_bindir}
 
 cp -a %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
 mv %{extensionddir}%{gemlibname} %{buildroot}%{ruby_sitearch}/%{gemlibname}
 rm -rf %{extensionddir}
-strip %{buildroot}%{ruby_sitearch}/%{gemlibname}
+
 rm %{installroot}/lib/%{gemlibname}
 cp %{installroot}/lib/redcloth.rb %{buildroot}%{ruby_sitelib}/redcloth.rb
 rm -rf %{buildroot}%{gemdir}/bin




More information about the fedora-extras-commits mailing list