Hello community,
here is the log from the commit of package libspectre for openSUSE:Factory
checked in at Wed Feb 24 02:17:25 CET 2010.
--------
--- libspectre/libspectre.changes 2009-11-13 12:37:19.000000000 +0100
+++ /mounts/work_src_done/STABLE/libspectre/libspectre.changes 2010-02-22 00:20:28.000000000 +0100
@@ -1,0 +2,12 @@
+Mon Feb 22 00:19:10 CET 2010 - vuntz@opensuse.org
+
+- Update to version 0.2.4:
+ + Documents containing embedded documents inside the prolog,
+ typically font resources, were not correctly rendered
+ (fdo#25573)
+ + Fix some portability issues to make libspectre build and work
+ on Windows (fdo#26377)
+ + PDF exporter was broken which might cause a crash when printing
+ some documents (fdo#26592)
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
libspectre-0.2.3.tar.bz2
New:
----
libspectre-0.2.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libspectre.spec ++++++
--- /var/tmp/diff_new_pack.DLkeya/_old 2010-02-24 02:16:57.000000000 +0100
+++ /var/tmp/diff_new_pack.DLkeya/_new 2010-02-24 02:16:57.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package libspectre (Version 0.2.3)
+# spec file for package libspectre (Version 0.2.4)
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,10 +20,10 @@
Url: http://libspectre.freedesktop.org/wiki/
Name: libspectre
-License: GPL v2 or later
+License: GPLv2+
Group: Development/Libraries/C and C++
Summary: Library for Rendering PostScript Documents
-Version: 0.2.3
+Version: 0.2.4
Release: 1
Source0: %name-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -36,7 +36,7 @@
Postscript documents.
%package -n libspectre1
-License: GPL v2 or later
+License: GPLv2+
Group: Development/Libraries/C and C++
Summary: Library for Rendering PostScript Documents
@@ -46,7 +46,7 @@
Postscript documents.
%package -n libspectre-devel
-License: GPL v2 or later
+License: GPLv2+
Group: Development/Libraries/C and C++
Summary: Library for Rendering PostScript Documents
Requires: libspectre1 >= %version
++++++ libspectre-0.2.3.tar.bz2 -> libspectre-0.2.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/ChangeLog new/libspectre-0.2.4/ChangeLog
--- old/libspectre-0.2.3/ChangeLog 2009-10-18 16:49:36.000000000 +0200
+++ new/libspectre-0.2.4/ChangeLog 2010-02-21 20:48:15.000000000 +0100
@@ -1,3 +1,127 @@
+commit 6dc6c41ba977e8bee0fd71f3db4c3c92287ee71f
+Author: Carlos Garcia Campos
+Date: Sun Feb 21 17:49:05 2010 +0100
+
+ Fix compile warning
+
+ libspectre/spectre-render-context.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+commit 51c6a92e7bf7261a19eb1d9e776ce11957c213c4
+Author: Carlos Garcia Campos
+Date: Sun Feb 21 17:46:17 2010 +0100
+
+ Use AM_SILENT_RULES when available
+
+ autogen.sh | 10 +++++-----
+ configure.ac | 2 ++
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+commit 8a720825f6ee77d6945833c59609f6a9141dad19
+Author: Carlos Garcia Campos
+Date: Sun Feb 21 17:24:54 2010 +0100
+
+ Use spectre_gs_process() instead of spectre_gs_send_page() in pdf exporter
+
+ When rendering with the display device we use a new gs instance for
+ every page and we have to process prolog, setup and trailer for every
+ page. PDF exporter is different, we use a single gs instance created in
+ exporter_pdf_begin() and destroyed in exporter_pdf_end(). Now we use
+ spectre_gs_process() to send prolog and setup in begin() and trailer in
+ end() so that we just send the page contents in do_page().
+ Fixes bug #26592.
+
+ libspectre/spectre-exporter-pdf.c | 43 ++++++++++++++++++++++++++++++++++--
+ 1 files changed, 40 insertions(+), 3 deletions(-)
+
+commit 18a4e6d9746614227b404df4399471d2a2858f1f
+Author: Carlos Garcia Campos
+Date: Sun Feb 21 17:22:07 2010 +0100
+
+ Make spectre_gs_process() public so that it can be used by exporters
+
+ It's public in the internal private API
+
+ libspectre/spectre-gs.c | 2 +-
+ libspectre/spectre-gs.h | 6 ++++++
+ 2 files changed, 7 insertions(+), 1 deletions(-)
+
+commit d25e37b5e52d83af50924a548da6f10983960735
+Author: Carlos Garcia Campos
+Date: Sun Feb 21 13:22:18 2010 +0100
+
+ Ignore page order parameter of %%Pages if there's a %%PageOrder comment
+
+ It caused problems in documents where there's a %%PageOrder after the
+ %%Pages comment. See evince bug https://bugzilla.gnome.org/show_bug.cgi?id=585436
+
+ libspectre/ps.c | 3 ---
+ 1 files changed, 0 insertions(+), 3 deletions(-)
+
+commit b039f45f826e4516b8717d0bcfbee692fab4d385
+Author: Hib Eris
+Date: Tue Feb 2 11:38:04 2010 +0100
+
+ Add -no-undefined to LDFLAGS for building w32 dll
+
+ libspectre/Makefile.am | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+commit a03d49102e2d83b1ee008296da426b67e5585302
+Author: Hib Eris
+Date: Tue Feb 2 11:13:53 2010 +0100
+
+ Use _vscprintf instead of vsnprintf when available
+
+ On Windows, if output was truncated, vsnprintf() does not return
+ the number of characters which would have been written to the string
+ if enough space had been available.
+
+ To work around this, use _vcsprintf() instead.
+
+ configure.ac | 2 ++
+ libspectre/spectre-utils.c | 8 +++++++-
+ 2 files changed, 9 insertions(+), 1 deletions(-)
+
+commit 5f261f571d1cd6bbd6dd12ca5eacb0edc79ebc06
+Author: Carlos Garcia Campos
+Date: Fri Dec 11 14:05:21 2009 +0100
+
+ Skip documents in the Prolog like Resource-Font
+
+ Fixes bug #25573.
+
+ libspectre/ps.c | 14 ++++++++++++++
+ 1 files changed, 14 insertions(+), 0 deletions(-)
+
+commit 889996f195d0a432f1e2a72645d6700aab96764c
+Author: Albert Astals Cid
+Date: Mon Oct 19 21:04:11 2009 +0200
+
+ fix some warnings of sscanf scanning signed but ending up in unsigned
+
+ libspectre/ps.c | 10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+commit fb787ddb26d471707f036e72e27a095976b8ee2a
+Author: Albert Astals Cid
+Date: Mon Oct 19 21:03:24 2009 +0200
+
+ commit some more warning flags
+
+ configure.ac | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+commit 5acf95a74ec2e4940818a50e59e50f5ec1175b39
+Author: Carlos Garcia Campos
+Date: Sun Oct 18 16:52:00 2009 +0200
+
+ Update for release 0.2.3
+
+ NEWS | 27 +++++++++++++++++++++++++++
+ configure.ac | 4 ++--
+ 2 files changed, 29 insertions(+), 2 deletions(-)
+
commit a25264c609f2d2cc6a837aef6744f58a5f04064f
Author: Carlos Garcia Campos
Date: Sun Oct 18 16:15:30 2009 +0200
@@ -624,7 +748,7 @@
1 files changed, 1 insertions(+), 0 deletions(-)
commit da5ef29ee05eaca46d588e5c46c6f0120a5ca228
-Merge: 0f85e0a... d53d9fc...
+Merge: 0f85e0a d53d9fc
Author: Albert Astals Cid
Date: Sun Dec 9 20:34:17 2007 +0100
@@ -640,7 +764,7 @@
1 files changed, 28 insertions(+), 0 deletions(-)
commit 0f85e0aede7bad490433f982163b8184dabbed28
-Merge: 708c652... 3d2c0fd...
+Merge: 708c652 3d2c0fd
Author: Albert Astals Cid
Date: Sun Dec 9 19:15:55 2007 +0100
@@ -669,7 +793,7 @@
5 files changed, 46 insertions(+), 1 deletions(-)
commit 708c6525124c3c6a4ecd82caabf6d8358b5469cc
-Merge: 41ee378... 43024fb...
+Merge: 41ee378 43024fb
Author: Albert Astals Cid
Date: Sun Dec 9 18:07:46 2007 +0100
@@ -708,7 +832,7 @@
3 files changed, 27 insertions(+), 0 deletions(-)
commit f1d8d85556bfd7ac4efd78d0dbc1f65180e45565
-Merge: d216ccd... c04b5db...
+Merge: d216ccd c04b5db
Author: Albert Astals Cid
Date: Sun Dec 9 17:27:54 2007 +0100
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/Makefile.in new/libspectre-0.2.4/Makefile.in
--- old/libspectre-0.2.3/Makefile.in 2009-10-18 16:49:00.000000000 +0200
+++ new/libspectre-0.2.4/Makefile.in 2010-02-21 20:47:45.000000000 +0100
@@ -52,6 +52,12 @@
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = Doxyfile libspectre.pc
CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
@@ -130,6 +136,7 @@
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/NEWS new/libspectre-0.2.4/NEWS
--- old/libspectre-0.2.3/NEWS 2009-10-18 16:44:57.000000000 +0200
+++ new/libspectre-0.2.4/NEWS 2010-02-21 19:36:12.000000000 +0100
@@ -1,3 +1,18 @@
+libspectre 0.2.4 (21 February 2010)
+===================================
+
+This is another bugfix only release in the libspectre's 0.2 series.
+
+Documents containing embedded documents inside the prolog,
+typically font resources, were not correctly rendered (Bug #25573)
+
+Hib Eris fixed some portability issues to make libspectre build and
+work on Windows (Bug #26377)
+
+PDF exporter was broken which might cause a crash when printing some
+documents (Bug #26592)
+
+
libspectre 0.2.3 (18 October 2009)
==================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/aclocal.m4 new/libspectre-0.2.4/aclocal.m4
--- old/libspectre-0.2.3/aclocal.m4 2009-10-18 16:48:58.000000000 +0200
+++ new/libspectre-0.2.4/aclocal.m4 2010-02-21 20:47:43.000000000 +0100
@@ -846,6 +846,33 @@
fi
AC_MSG_RESULT(yes)])
+# Copyright (C) 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_SILENT_RULES([DEFAULT])
+# --------------------------
+# Enable less verbose build rules; with the default set to DEFAULT
+# (`yes' being less verbose, `no' or empty being verbose).
+AC_DEFUN([AM_SILENT_RULES],
+[AC_ARG_ENABLE([silent-rules],
+[ --enable-silent-rules less verbose build output (undo: `make V=1')
+ --disable-silent-rules verbose build output (undo: `make V=0')])
+case $enable_silent_rules in
+yes) AM_DEFAULT_VERBOSITY=0;;
+no) AM_DEFAULT_VERBOSITY=1;;
+*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
+esac
+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
+AM_BACKSLASH='\'
+AC_SUBST([AM_BACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
+])
+
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/config.h.in new/libspectre-0.2.4/config.h.in
--- old/libspectre-0.2.3/config.h.in 2009-10-10 12:40:02.000000000 +0200
+++ new/libspectre-0.2.4/config.h.in 2010-02-03 12:48:21.000000000 +0100
@@ -36,6 +36,9 @@
/* Define if the 'vasprintf' function is available. */
#undef HAVE_VASPRINTF
+/* Define if the '_vscprintf' function is available. */
+#undef HAVE__VSCPRINTF
+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/configure new/libspectre-0.2.4/configure
--- old/libspectre-0.2.3/configure 2009-10-18 16:49:01.000000000 +0200
+++ new/libspectre-0.2.4/configure 2010-02-21 20:47:46.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for libspectre 0.2.3.
+# Generated by GNU Autoconf 2.63 for libspectre 0.2.4.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
@@ -743,8 +743,8 @@
# Identity of this package.
PACKAGE_NAME='libspectre'
PACKAGE_TARNAME='libspectre'
-PACKAGE_VERSION='0.2.3'
-PACKAGE_STRING='libspectre 0.2.3'
+PACKAGE_VERSION='0.2.4'
+PACKAGE_STRING='libspectre 0.2.4'
PACKAGE_BUGREPORT=''
# Factoring default headers for most tests.
@@ -850,6 +850,8 @@
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
+AM_BACKSLASH
+AM_DEFAULT_VERBOSITY
am__untar
am__tar
AMTAR
@@ -913,6 +915,7 @@
ac_subst_files=''
ac_user_opts='
enable_option_checking
+enable_silent_rules
enable_maintainer_mode
enable_shared
enable_static
@@ -1489,7 +1492,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures libspectre 0.2.3 to adapt to many kinds of systems.
+\`configure' configures libspectre 0.2.4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1559,7 +1562,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of libspectre 0.2.3:";;
+ short | recursive ) echo "Configuration of libspectre 0.2.4:";;
esac
cat <<\_ACEOF
@@ -1567,6 +1570,8 @@
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --enable-silent-rules less verbose build output (undo: `make V=1')
+ --disable-silent-rules verbose build output (undo: `make V=0')
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--enable-shared[=PKGS] build shared libraries [default=yes]
@@ -1666,7 +1671,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-libspectre configure 0.2.3
+libspectre configure 0.2.4
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1680,7 +1685,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by libspectre $as_me 0.2.3, which was
+It was created by libspectre $as_me 0.2.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -2532,7 +2537,7 @@
# Define the identity of the package.
PACKAGE='libspectre'
- VERSION='0.2.3'
+ VERSION='0.2.4'
cat >>confdefs.h <<_ACEOF
@@ -2573,6 +2578,19 @@
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then
+ enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in
+yes) AM_DEFAULT_VERBOSITY=0;;
+no) AM_DEFAULT_VERBOSITY=1;;
+*) AM_DEFAULT_VERBOSITY=0;;
+esac
+AM_BACKSLASH='\'
+
+
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
@@ -2607,7 +2625,7 @@
## increment any time the source changes; set to
## 0 if you increment CURRENT
-LT_REVISION=3
+LT_REVISION=4
## increment if any interfaces have been added; set to 0
## if any interfaces have been changed or removed. removal has
@@ -2626,8 +2644,8 @@
SPECTRE_MAJOR_VERSION=0
SPECTRE_MINOR_VERSION=2
-SPECTRE_MICRO_VERSION=3
-SPECTRE_VERSION=0.2.3
+SPECTRE_MICRO_VERSION=4
+SPECTRE_VERSION=0.2.4
@@ -4458,13 +4476,13 @@
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
- (eval echo "\"\$as_me:4461: $ac_compile\"" >&5)
+ (eval echo "\"\$as_me:4479: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
- (eval echo "\"\$as_me:4464: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval echo "\"\$as_me:4482: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
- (eval echo "\"\$as_me:4467: output\"" >&5)
+ (eval echo "\"\$as_me:4485: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@@ -5670,7 +5688,7 @@
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 5673 "configure"' > conftest.$ac_ext
+ echo '#line 5691 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -7523,11 +7541,11 @@
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7544: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7530: \$? = $ac_status" >&5
+ echo "$as_me:7548: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -7862,11 +7880,11 @@
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7865: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7869: \$? = $ac_status" >&5
+ echo "$as_me:7887: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -7967,11 +7985,11 @@
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7970: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:7974: \$? = $ac_status" >&5
+ echo "$as_me:7992: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -8022,11 +8040,11 @@
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8025: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8029: \$? = $ac_status" >&5
+ echo "$as_me:8047: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -10822,7 +10840,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10825 "configure"
+#line 10843 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10918,7 +10936,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10921 "configure"
+#line 10939 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13051,6 +13069,100 @@
fi
+{ $as_echo "$as_me:$LINENO: checking for _vscprintf" >&5
+$as_echo_n "checking for _vscprintf... " >&6; }
+if test "${ac_cv_func__vscprintf+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define _vscprintf to an innocuous variant, in case declares _vscprintf.
+ For example, HP-UX 11i declares gettimeofday. */
+#define _vscprintf innocuous__vscprintf
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char _vscprintf (); below.
+ Prefer to if __STDC__ is defined, since
+ exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include
+#else
+# include
+#endif
+
+#undef _vscprintf
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char _vscprintf ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub__vscprintf || defined __stub____vscprintf
+choke me
+#endif
+
+int
+main ()
+{
+return _vscprintf ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func__vscprintf=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func__vscprintf=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__vscprintf" >&5
+$as_echo "$ac_cv_func__vscprintf" >&6; }
+if test "x$ac_cv_func__vscprintf" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE__VSCPRINTF 1
+_ACEOF
+
+fi
+
+
LIBGS_REQUIRED="8.62"
{ $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
@@ -13466,7 +13578,7 @@
-MAYBE_WARN="-Wall \
+MAYBE_WARN="-Wall -Wextra -pedantic \
-Wsign-compare -Werror-implicit-function-declaration \
-Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
@@ -14261,7 +14373,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by libspectre $as_me 0.2.3, which was
+This file was extended by libspectre $as_me 0.2.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -14324,7 +14436,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-libspectre config.status 0.2.3
+libspectre config.status 0.2.4
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/configure.ac new/libspectre-0.2.4/configure.ac
--- old/libspectre-0.2.3/configure.ac 2009-10-18 16:48:48.000000000 +0200
+++ new/libspectre-0.2.4/configure.ac 2010-02-21 20:47:25.000000000 +0100
@@ -2,7 +2,7 @@
m4_define([spectre_major_version], [0])
m4_define([spectre_minor_version], [2])
-m4_define([spectre_micro_version], [3])
+m4_define([spectre_micro_version], [4])
m4_define([spectre_version],
[spectre_major_version.spectre_minor_version.spectre_micro_version])
@@ -11,6 +11,8 @@
AM_INIT_AUTOMAKE([1.7])
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+
AM_MAINTAINER_MODE
# libtool versioning
@@ -23,7 +25,7 @@
## increment any time the source changes; set to
## 0 if you increment CURRENT
-LT_REVISION=3
+LT_REVISION=4
## increment if any interfaces have been added; set to 0
## if any interfaces have been changed or removed. removal has
@@ -59,6 +61,8 @@
AC_CHECK_FUNC(vasprintf, [ AC_DEFINE(HAVE_VASPRINTF, 1, [Define if the 'vasprintf' function is available.]) ])
+AC_CHECK_FUNC(_vscprintf, [ AC_DEFINE(HAVE__VSCPRINTF, 1, [Define if the '_vscprintf' function is available.]) ])
+
LIBGS_REQUIRED="8.62"
AC_CHECK_LIB(gs, gsapi_new_instance, have_libgs=yes, have_libgs=no)
@@ -154,7 +158,7 @@
dnl else. If for any reason you need to force a recheck, just change
dnl MAYBE_WARN in an ignorable way (like adding whitespace)
-MAYBE_WARN="-Wall \
+MAYBE_WARN="-Wall -Wextra -pedantic \
-Wsign-compare -Werror-implicit-function-declaration \
-Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/Makefile.am new/libspectre-0.2.4/libspectre/Makefile.am
--- old/libspectre-0.2.3/libspectre/Makefile.am 2009-10-10 12:42:34.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/Makefile.am 2010-02-03 12:50:02.000000000 +0100
@@ -48,4 +48,4 @@
$(gv_sources)
libspectre_la_LIBADD = $(LIB_GS)
-libspectre_la_LDFLAGS = -version-info @VERSION_INFO@
+libspectre_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/Makefile.in new/libspectre-0.2.4/libspectre/Makefile.in
--- old/libspectre-0.2.3/libspectre/Makefile.in 2009-10-18 16:49:00.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/Makefile.in 2010-02-21 20:47:45.000000000 +0100
@@ -78,7 +78,10 @@
spectre-page.lo spectre-exporter.lo spectre-exporter-pdf.lo \
spectre-exporter-ps.lo spectre-utils.lo $(am__objects_1)
libspectre_la_OBJECTS = $(am_libspectre_la_OBJECTS)
-libspectre_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+libspectre_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(libspectre_la_LDFLAGS) $(LDFLAGS) -o $@
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
@@ -87,13 +90,26 @@
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(libspectre_la_SOURCES)
DIST_SOURCES = $(libspectre_la_SOURCES)
HEADERS = $(libspectreinclude_HEADERS)
@@ -102,6 +118,7 @@
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
@@ -273,7 +290,7 @@
$(gv_sources)
libspectre_la_LIBADD = $(LIB_GS)
-libspectre_la_LDFLAGS = -version-info @VERSION_INFO@
+libspectre_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
all: all-am
.SUFFIXES:
@@ -342,7 +359,7 @@
rm -f "$${dir}/so_locations"; \
done
libspectre.la: $(libspectre_la_OBJECTS) $(libspectre_la_DEPENDENCIES)
- $(libspectre_la_LINK) -rpath $(libdir) $(libspectre_la_OBJECTS) $(libspectre_la_LIBADD) $(LIBS)
+ $(AM_V_CCLD)$(libspectre_la_LINK) -rpath $(libdir) $(libspectre_la_OBJECTS) $(libspectre_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
@@ -363,22 +380,25 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spectre-utils.Plo@am__quote@
.c.o:
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/ps.c new/libspectre-0.2.4/libspectre/ps.c
--- old/libspectre-0.2.3/libspectre/ps.c 2009-10-10 11:41:43.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/ps.c 2010-02-21 13:19:38.000000000 +0100
@@ -581,19 +581,16 @@
} else {
int page_order;
- switch (sscanf(line+length("%%Pages:"), "%d %d",
+ switch (sscanf(line+length("%%Pages:"), "%u %d",
&maxpages, &page_order)) {
case 2:
if (page_order_set == NONE) {
if (page_order == -1) {
doc->pageorder = DESCEND;
- page_order_set = 1;
} else if (page_order == 0) {
doc->pageorder = SPECIAL;
- page_order_set = 1;
} else if (page_order == 1) {
doc->pageorder = ASCEND;
- page_order_set = 1;
}
}
case 1:
@@ -864,6 +861,20 @@
iscomment(line+2, "Page:") ||
iscomment(line+2, "Trailer") ||
iscomment(line+2, "EOF")))) {
+ if (iscomment(line, "%!PS")) {
+ /* Embedded document in Prolog, typically font resources.
+ * Skip until end of resource or Prolog
+ */
+ while (readline(fd, enddoseps, &line, &position, &line_len) &&
+ !(DSCcomment(line) &&
+ (iscomment(line+2, "EndProlog") ||
+ iscomment(line+2, "BeginSetup") ||
+ iscomment(line+2, "Page:") ||
+ iscomment(line+2, "Trailer") ||
+ iscomment(line+2, "EOF")))) {
+ section_len += line_len;
+ }
+ }
if (!preread) section_len += line_len;
preread = 0;
}
@@ -1000,7 +1011,7 @@
CHECK_MALLOCED(doc->pages);
}
label = ps_gettext(line+length("%%Page:"), &next_char);
- if (sscanf(next_char, "%d", &thispage) != 1) thispage = 0;
+ if (sscanf(next_char, "%u", &thispage) != 1) thispage = 0;
if (nextpage == 1) {
ignore = thispage != 1;
}
@@ -1111,7 +1122,7 @@
/* Do nothing */
} else if (iscomment(line+2, "Page:")) {
PS_free(ps_gettext(line+length("%%Page:"), &next_char));
- if (sscanf(next_char, "%d", &thispage) != 1) thispage = 0;
+ if (sscanf(next_char, "%u", &thispage) != 1) thispage = 0;
if (!ignore && thispage == nextpage) {
if (doc->numpages > 0) {
doc->pages[doc->numpages-1].end = position;
@@ -2116,7 +2127,7 @@
fputs(comment, dest_file);
pages_atend = True;
} else {
- switch (sscanf(comment+length("%%Pages:"), "%*d %d", &i)) {
+ switch (sscanf(comment+length("%%Pages:"), "%*d %u", &i)) {
case 1:
fprintf(dest_file, "%%%%Pages: %d %d\n", pages, i);
break;
@@ -2151,7 +2162,7 @@
PS_free(comment);
continue;
}
- switch (sscanf(comment+length("%%Pages:"), "%*d %d", &i)) {
+ switch (sscanf(comment+length("%%Pages:"), "%*d %u", &i)) {
case 1:
fprintf(dest_file, "%%%%Pages: %d %d\n", pages, i);
break;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/spectre-exporter-pdf.c new/libspectre-0.2.4/libspectre/spectre-exporter-pdf.c
--- old/libspectre-0.2.3/libspectre/spectre-exporter-pdf.c 2009-09-11 11:47:36.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/spectre-exporter-pdf.c 2010-02-21 17:15:57.000000000 +0100
@@ -30,7 +30,8 @@
char *args[9];
int arg = 0;
char *output_file;
-
+ struct document *doc = exporter->doc;
+
exporter->gs = spectre_gs_new ();
if (!spectre_gs_create_instance (exporter->gs, NULL)) {
spectre_gs_cleanup (exporter->gs, CLEANUP_DELETE_INSTANCE);
@@ -61,6 +62,28 @@
free (output_file);
+ if (!spectre_gs_process (exporter->gs,
+ doc->filename,
+ 0, 0,
+ doc->beginprolog,
+ doc->endprolog)) {
+ spectre_gs_free (exporter->gs);
+ exporter->gs = NULL;
+
+ return SPECTRE_STATUS_EXPORTER_ERROR;
+ }
+
+ if (!spectre_gs_process (exporter->gs,
+ doc->filename,
+ 0, 0,
+ doc->beginsetup,
+ doc->endsetup)) {
+ spectre_gs_free (exporter->gs);
+ exporter->gs = NULL;
+
+ return SPECTRE_STATUS_EXPORTER_ERROR;
+ }
+
return SPECTRE_STATUS_SUCCESS;
}
@@ -68,7 +91,13 @@
spectre_exporter_pdf_do_page (SpectreExporter *exporter,
unsigned int page_index)
{
- if (!spectre_gs_send_page (exporter->gs, exporter->doc, page_index, 0, 0)) {
+ struct document *doc = exporter->doc;
+
+ if (!spectre_gs_process (exporter->gs,
+ doc->filename,
+ 0, 0,
+ doc->pages[page_index].begin,
+ doc->pages[page_index].end)) {
spectre_gs_free (exporter->gs);
exporter->gs = NULL;
@@ -81,10 +110,18 @@
static SpectreStatus
spectre_exporter_pdf_end (SpectreExporter *exporter)
{
+ int ret;
+ struct document *doc = exporter->doc;
+
+ ret = spectre_gs_process (exporter->gs,
+ doc->filename,
+ 0, 0,
+ doc->begintrailer,
+ doc->endtrailer);
spectre_gs_free (exporter->gs);
exporter->gs = NULL;
- return SPECTRE_STATUS_SUCCESS;
+ return ret ? SPECTRE_STATUS_SUCCESS : SPECTRE_STATUS_EXPORTER_ERROR;
}
SpectreExporter *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/spectre-gs.c new/libspectre-0.2.4/libspectre/spectre-gs.c
--- old/libspectre-0.2.3/libspectre/spectre-gs.c 2009-10-10 12:37:02.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/spectre-gs.c 2010-02-21 17:24:35.000000000 +0100
@@ -74,7 +74,7 @@
return len;
}
-static int
+int
spectre_gs_process (SpectreGS *gs,
const char *filename,
int x,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/spectre-gs.h new/libspectre-0.2.4/libspectre/spectre-gs.h
--- old/libspectre-0.2.3/libspectre/spectre-gs.h 2008-09-15 12:21:51.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/spectre-gs.h 2010-02-21 17:07:22.000000000 +0100
@@ -42,6 +42,12 @@
int spectre_gs_run (SpectreGS *gs,
int n_args,
char **args);
+int spectre_gs_process (SpectreGS *gs,
+ const char *filename,
+ int x,
+ int y,
+ long begin,
+ long end);
int spectre_gs_send_string (SpectreGS *gs,
const char *str);
int spectre_gs_send_page (SpectreGS *gs,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/spectre-render-context.c new/libspectre-0.2.4/libspectre/spectre-render-context.c
--- old/libspectre-0.2.3/libspectre/spectre-render-context.c 2008-09-15 12:21:51.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/spectre-render-context.c 2010-02-21 17:48:55.000000000 +0100
@@ -89,7 +89,7 @@
rotation %= 360;
- if (rotation >= 0 && rotation < 90)
+ if (rotation < 90)
rc->orientation = SPECTRE_ORIENTATION_PORTRAIT;
else if (rotation >= 90 && rotation < 180)
rc->orientation = SPECTRE_ORIENTATION_LANDSCAPE;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/spectre-utils.c new/libspectre-0.2.4/libspectre/spectre-utils.c
--- old/libspectre-0.2.3/libspectre/spectre-utils.c 2008-11-25 14:36:23.000000000 +0100
+++ new/libspectre-0.2.4/libspectre/spectre-utils.c 2010-02-03 12:47:57.000000000 +0100
@@ -162,11 +162,17 @@
string = NULL;
#else /* !HAVE_VASPRINTF */
va_list args_copy;
+ int n;
char c;
SPECTRE_VA_COPY (args_copy, args);
- string = malloc ((vsnprintf (&c, 1, format, args) + 1) * sizeof (char));
+#if HAVE__VSCPRINTF
+ n = _vscprintf (format, args);
+#else
+ n = vsnprintf (&c, 1, format, args);
+#endif
+ string = malloc ((n + 1) * sizeof (char));
if (string) {
len = vsprintf (string, format, args_copy);
if (len < 0) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/libspectre/spectre-version.h new/libspectre-0.2.4/libspectre/spectre-version.h
--- old/libspectre-0.2.3/libspectre/spectre-version.h 2009-10-18 16:49:09.000000000 +0200
+++ new/libspectre-0.2.4/libspectre/spectre-version.h 2010-02-21 20:47:53.000000000 +0100
@@ -27,11 +27,11 @@
#define SPECTRE_MAJOR_VERSION 0
#define SPECTRE_MINOR_VERSION 2
-#define SPECTRE_MICRO_VERSION 3
+#define SPECTRE_MICRO_VERSION 4
-#define SPECTRE_VERSION_STRING "0.2.3"
+#define SPECTRE_VERSION_STRING "0.2.4"
-#define SPECTRE_VERSION ((0 << 16) | (2 << 8) | (3))
+#define SPECTRE_VERSION ((0 << 16) | (2 << 8) | (4))
SPECTRE_END_DECLS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspectre-0.2.3/test/Makefile.in new/libspectre-0.2.4/test/Makefile.in
--- old/libspectre-0.2.3/test/Makefile.in 2009-10-18 16:49:00.000000000 +0200
+++ new/libspectre-0.2.4/test/Makefile.in 2010-02-21 20:47:45.000000000 +0100
@@ -49,6 +49,9 @@
am_parser_test_OBJECTS = parser-test.$(OBJEXT)
parser_test_OBJECTS = $(am_parser_test_OBJECTS)
parser_test_DEPENDENCIES = $(top_builddir)/libspectre/libspectre.la
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
am_spectre_test_OBJECTS = spectre-test.$(OBJEXT)
spectre_test_OBJECTS = $(am_spectre_test_OBJECTS)
am__DEPENDENCIES_1 =
@@ -60,13 +63,26 @@
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(parser_test_SOURCES) $(spectre_test_SOURCES)
DIST_SOURCES = $(parser_test_SOURCES) $(spectre_test_SOURCES)
ETAGS = etags
@@ -74,6 +90,7 @@
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
@@ -255,10 +272,10 @@
rm -f $$list
parser-test$(EXEEXT): $(parser_test_OBJECTS) $(parser_test_DEPENDENCIES)
@rm -f parser-test$(EXEEXT)
- $(LINK) $(parser_test_OBJECTS) $(parser_test_LDADD) $(LIBS)
+ $(AM_V_CCLD)$(LINK) $(parser_test_OBJECTS) $(parser_test_LDADD) $(LIBS)
spectre-test$(EXEEXT): $(spectre_test_OBJECTS) $(spectre_test_DEPENDENCIES)
@rm -f spectre-test$(EXEEXT)
- $(LINK) $(spectre_test_OBJECTS) $(spectre_test_LDADD) $(LIBS)
+ $(AM_V_CCLD)$(LINK) $(spectre_test_OBJECTS) $(spectre_test_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
@@ -270,22 +287,25 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spectre-test.Po@am__quote@
.c.o:
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org