From f665bea1c464d304d1f6badddc3e05853611edb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 3 Jun 2011 19:26:15 +0200 Subject: [PATCH] Pass CFLAGS to extconf.rb. --- rubygem-pg.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rubygem-pg.spec b/rubygem-pg.spec index 67b0248..6255fef 100644 --- a/rubygem-pg.spec +++ b/rubygem-pg.spec @@ -8,7 +8,7 @@ Summary: A Ruby interface to the PostgreSQL RDBMS Name: rubygem-%{gemname} Version: 0.11.0 -Release: 4%{?dist} +Release: 5%{?dist} Group: Development/Languages # Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) # @@ -47,8 +47,9 @@ Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gemdir} +export CONFIGURE_ARGS="--with-cflags='%{optflags}'" gem install --local --install-dir .%{gemdir} \ - --force %{SOURCE0} + -V --force %{SOURCE0} %build @@ -106,6 +107,9 @@ popd %changelog +* Fri Jun 03 2011 Vít Ondruch - 0.11.0-5 +- Pass CFLAGS to extconf.rb. + * Fri Jun 03 2011 Vít Ondruch - 0.11.0-4 - Binary extension moved into ruby_sitearch dir. - -doc subpackage made architecture independent.