[pygobject3] Add -lm

Ray Strode rstrode at fedoraproject.org
Wed Sep 28 12:38:34 UTC 2011


commit d8319451bc79ba3d8d24d68e8a793bae65150cf1
Author: Ray Strode <rstrode at redhat.com>
Date:   Wed Sep 28 08:38:03 2011 -0400

    Add -lm

 lm.patch        |   15 +++++++++++++++
 pygobject3.spec |    5 +++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/lm.patch b/lm.patch
new file mode 100644
index 0000000..454af5f
--- /dev/null
+++ b/lm.patch
@@ -0,0 +1,15 @@
+diff -up pygobject-3.0.0/configure.ac.lm pygobject-3.0.0/configure.ac
+--- pygobject-3.0.0/configure.ac.lm	2011-09-28 08:30:20.922562047 -0400
++++ pygobject-3.0.0/configure.ac	2011-09-28 08:30:26.406607623 -0400
+@@ -154,6 +154,11 @@ AM_PATH_GLIB_2_0(glib_required_version,,
+ if test -n "$export_dynamic"; then
+   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
+ fi
++
++AC_CHECK_LIBM
++AC_SUBST(LIBM)
++GLIB_LIBS="$GLIB_LIBS $LIBM"
++
+ PYTHON_BASENAME=`basename $PYTHON`
+ AC_SUBST([PYTHON_BASENAME])
+ 
diff --git a/pygobject3.spec b/pygobject3.spec
index c4e8de4..b3827c5 100644
--- a/pygobject3.spec
+++ b/pygobject3.spec
@@ -22,6 +22,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.0/pygobject-%{version}.tar.xz
 
 ### Patches ###
+Patch0: lm.patch
 
 ### Build Dependencies ###
 
@@ -34,6 +35,7 @@ BuildRequires: python3-cairo-devel
 %endif # if with_python3
 
 BuildRequires: pycairo-devel
+BuildRequires: automake, autoconf, libtool
 
 # The cairo override module depends on this
 Requires: pycairo
@@ -73,6 +75,9 @@ for use in Python 3 programs.
 
 %prep
 %setup -q -n pygobject-%{version}
+%patch0 -p1 -b .lm
+
+autoreconf
 
 %if 0%{?with_python3}
 rm -rf %{py3dir}


More information about the scm-commits mailing list