[a2ps] Link to libm in liba2ps (bug #809673).

Tim Waugh twaugh at fedoraproject.org
Wed Apr 4 12:10:38 UTC 2012


commit f7903682032b7a373a9381249c2118696355ed19
Author: Tim Waugh <twaugh at redhat.com>
Date:   Wed Apr 4 09:27:00 2012 +0100

    Link to libm in liba2ps (bug #809673).

 a2ps-lm.patch |   25 +++++++++++++++++++++++++
 a2ps.spec     |    9 ++++++++-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/a2ps-lm.patch b/a2ps-lm.patch
new file mode 100644
index 0000000..b4d5908
--- /dev/null
+++ b/a2ps-lm.patch
@@ -0,0 +1,25 @@
+diff -up a2ps-4.14/lib/Makefile.am.lm a2ps-4.14/lib/Makefile.am
+--- a2ps-4.14/lib/Makefile.am.lm	2007-12-29 01:38:03.000000000 +0000
++++ a2ps-4.14/lib/Makefile.am	2012-04-04 09:25:00.709845857 +0100
+@@ -32,7 +32,7 @@ YFLAGS = -dtv
+ GPERFFLAGS = -t -D -L ANSI-C
+ BUILT_SOURCES = parseppd.c parseppd.h liba2ps.h confg.c
+ 
+-liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@
++liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@ -lm
+ liba2ps_la_LDFLAGS = -version-info @LIBVERSION@
+ 
+ liba2psheaders = encoding.h media.h jobs.h output.h		\
+diff -up a2ps-4.14/lib/Makefile.in.lm a2ps-4.14/lib/Makefile.in
+--- a2ps-4.14/lib/Makefile.in.lm	2012-04-04 09:25:25.091842586 +0100
++++ a2ps-4.14/lib/Makefile.in	2012-04-04 09:25:32.889841559 +0100
+@@ -322,7 +322,7 @@ INCLUDES = -I$(top_builddir) -I$(top_bui
+ # Use a struct, handle duplicates, produce ANSI-C
+ GPERFFLAGS = -t -D -L ANSI-C
+ BUILT_SOURCES = parseppd.c parseppd.h liba2ps.h confg.c
+-liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@
++liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@ -lm
+ liba2ps_la_LDFLAGS = -version-info @LIBVERSION@
+ liba2psheaders = encoding.h media.h jobs.h output.h		\
+ routines.h psgen.h prolog.h faces.h confg.h useropt.h		\
+diff -up a2ps-4.14/Makefile.in.lm a2ps-4.14/Makefile.in
diff --git a/a2ps.spec b/a2ps.spec
index db07e9a..3b01d4b 100644
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,13 +1,14 @@
 Summary: Converts text and other types of files to PostScript
 Name: a2ps
 Version: 4.14
-Release: 14%{?dist}
+Release: 15%{?dist}
 License: GPLv3+
 Group: Applications/Publishing
 Source0: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz
 Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
 Patch0: a2ps-4.13-conf.patch
 Patch1: a2ps-4.13-etc.patch
+Patch2: a2ps-lm.patch
 Patch3: a2ps-4.13-security.patch
 Patch4: a2ps-4.13-glibcpaper.patch
 Patch7: a2ps-sort.patch
@@ -96,6 +97,9 @@ the emacs-%{name} package to use emacs-%{name} with GNU Emacs.
 # add /etc/a2ps in directories searched for config files
 %patch1 -p1 -b .etc 
 
+# Link to libm in liba2ps (bug #809673).
+%patch2 -p1 -b .lm
+
 %patch3 -p1 -b .security
 %patch4 -p1 -b .glibcpaper
 %patch7 -p1 -b .sort
@@ -294,6 +298,9 @@ exit 0
 %{_emacs_sitelispdir}/%{name}/*.el
 
 %changelog
+* Wed Apr  4 2012 Tim Waugh <twaugh at redhat.com> - 4.14-15
+- Link to libm in liba2ps (bug #809673).
+
 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.14-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list