[rubygem-poppler] debugging...

Mamoru Tasaka mtasaka at fedoraproject.org
Fri Oct 28 19:11:23 UTC 2011


commit fd8642804334c4d94a931333e43886fdecdc8887
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Sat Oct 29 04:11:20 2011 +0900

    debugging...

 rubygem-poppler.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/rubygem-poppler.spec b/rubygem-poppler.spec
index eb4ed38..d8eb185 100644
--- a/rubygem-poppler.spec
+++ b/rubygem-poppler.spec
@@ -82,6 +82,7 @@ rubygem-%{gemname}
 %setup -q -c -T
 mkdir -p .%{gemdir}
 
+status=0
 export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
 export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
 gem install \
@@ -90,7 +91,13 @@ gem install \
 	--install-dir .%{gemdir} \
 	--force \
 	--rdoc \
-	%{SOURCE0}
+	%{SOURCE0} || status=1
+if [ $status = 1 ] ; then
+	pushd .%{geminstdir}
+	cat ext/poppler/mkmf.log
+	sleep 10
+	exit 1
+fi
 
 find . -name \*.gem | xargs chmod 0644
 


More information about the scm-commits mailing list