[pygobject3/f16] Add -lm
Ray Strode
rstrode at fedoraproject.org
Wed Sep 28 12:34:47 UTC 2011
commit dd4ea62d8f3f3b1202c4fbbeadb33c1a2f947381
Author: Ray Strode <rstrode at redhat.com>
Date: Wed Sep 28 08:34:21 2011 -0400
Add -lm
lm.patch | 15 +++++++++++++++
pygobject3.spec | 4 ++++
2 files changed, 19 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 1e24288..2e659a7 100644
--- a/pygobject3.spec
+++ b/pygobject3.spec
@@ -20,6 +20,7 @@ URL: https://live.gnome.org/PyGObject
BuildRoot: %{_tmppath}/%{name}-%{version}-root
#VCS: git:git://git.gnome.org/pygobject
Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.90/pygobject-%{version}.tar.xz
+Patch0: lm.patch
### Patches ###
@@ -34,6 +35,7 @@ BuildRequires: python3-cairo-devel
%endif # if with_python3
BuildRequires: pycairo-devel
+BuildRequires: autoconf, automake, libtool
# The cairo override module depends on this
Requires: pycairo
@@ -73,6 +75,8 @@ 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