diff --git a/libspiro-0.2-libm.patch b/libspiro-0.2-libm.patch new file mode 100644 index 0000000..b24b399 --- /dev/null +++ b/libspiro-0.2-libm.patch @@ -0,0 +1,29 @@ +From 3b6723f326704e3e3b2d99b75f4fcf3d02d02bf5 Mon Sep 17 00:00:00 2001 +From: Joe Da Silva +Date: Sat, 2 Nov 2013 21:02:42 -0700 +Subject: [PATCH] Same Check used in FontForge needed here too for '-lm' for + math libraries + +Some distros like Ubuntu, and operating systems such as BeOS require -lm +--- + configure.ac | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 5c5cc70..aa5bf06 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -74,6 +74,10 @@ dnl AM_MAINTAINER_MODE([enable]) + m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],[AC_SUBST([AM_DEFAULT_VERBOSITY],[1])]) + + #------------------------------------------- ++# Check for libraries ++AC_SEARCH_LIBS([cos],[m]) ++ ++#------------------------------------------- + # Check for finite or isfinite. Use one. + AC_CHECK_FUNCS(finite, ,[ + AC_MSG_CHECKING(for finite in ) +-- +2.1.0 + diff --git a/libspiro.spec b/libspiro.spec index 3cca058..9c6bcdb 100644 --- a/libspiro.spec +++ b/libspiro.spec @@ -1,12 +1,14 @@ Name: libspiro Version: 20130930 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Library to simplify the drawing of beautiful curves Group: System Environment/Libraries License: GPLv2+ URL: http://libspiro.sourceforge.net/ Source0: https://github.com/fontforge/libspiro/archive/v0.2.tar.gz +# Upstream commit 3b6723f326704e3e3b2d99b75f4fcf3d02d02bf5 +Patch0: libspiro-0.2-libm.patch BuildRequires: automake autoconf libtool %description @@ -25,6 +27,7 @@ developing applications that use %{name}. %prep %setup -q -n libspiro-0.2 +%patch0 -p1 -b .libm %build autoreconf -i @@ -50,6 +53,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %{_libdir}/*.so %changelog +* Mon Dec 08 2014 Nils Philippsen - 20130930-4 +- explicitly link against libm + * Sun Aug 17 2014 Fedora Release Engineering - 20130930-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild