rpms/rubygem-RedCloth/F-10 rubygem-RedCloth.spec,1.1,1.2
Darryl L. Pierce
mcpierce at fedoraproject.org
Tue Jul 14 18:39:42 UTC 2009
Author: mcpierce
Update of /cvs/pkgs/rpms/rubygem-RedCloth/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18040
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/F-10/rubygem-RedCloth.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- rubygem-RedCloth.spec 1 May 2009 21:03:17 -0000 1.1
+++ rubygem-RedCloth.spec 14 Jul 2009 18:39:12 -0000 1.2
@@ -1,17 +1,18 @@
# 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}
Version: 4.1.9
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: Development/Languages
License: MIT
URL: http://redcloth.org
@@ -39,15 +40,18 @@ install -d -m0755 %{buildroot}%{gemdir}
install -d -m0755 %{buildroot}%{ruby_sitelib}
install -d -m0755 %{buildroot}%{ruby_sitearch}
-
-gem install --local --install-dir %{buildroot}%{gemdir} \
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+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
@@ -76,6 +80,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Jul 14 2009 Darryl Pierce <dpierce at redhat.com> - 4.1.9-5
+- Resolves: rhbz#505589 - rubygem-RedCloth-debuginfo created from stripped binaries
+
* Fri May 1 2009 Darryl Pierce <dpierce at redhat.com> - 4.1.9-4
- First official build for Fedora.
More information about the fedora-extras-commits
mailing list