[packages/libwmf] Up to 0.2.17
arekm
arekm at pld-linux.org
Thu Nov 26 09:26:48 CET 2026
commit f636d201e8ad79705ea278e8059f8a4939b1924b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 26 00:16:39 2026 +0100
Up to 0.2.17
libwmf-ah.patch | 18 ------------------
libwmf-includes.patch | 10 ----------
libwmf-segv.patch | 49 -------------------------------------------------
libwmf-stdint.patch | 11 +++++++++++
libwmf.spec | 14 +++++---------
5 files changed, 16 insertions(+), 86 deletions(-)
---
diff --git a/libwmf.spec b/libwmf.spec
index 694b0b0..2601fda 100644
--- a/libwmf.spec
+++ b/libwmf.spec
@@ -9,8 +9,8 @@
Summary: libwmf - library to convert WMF files
Summary(pl.UTF-8): libwmf - biblioteka z funkcjami do konwersji plików WMF
Name: libwmf
-Version: 0.2.13
-Release: 2
+Version: 0.2.17
+Release: 1
Epoch: 2
License: LGPL v2+
Group: Applications/Text
@@ -19,12 +19,10 @@ Group: Applications/Text
# RedHat supported fork
#Source0Download: https://github.com/caolanm/libwmf/releases
Source0: https://github.com/caolanm/libwmf/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 1c95363fd3c2f7b92bb4f4026aeab8d6
+# Source0-md5: 5418d200816b6123abd420d61a3e8930
Patch0: %{name}-fontmap-pld.patch
-Patch1: %{name}-includes.patch
-Patch2: %{name}-segv.patch
-Patch3: %{name}-png12.patch
-Patch4: %{name}-ah.patch
+Patch1: %{name}-png12.patch
+Patch2: %{name}-stdint.patch
URL: http://wvware.sourceforge.net/
BuildRequires: autoconf >= 2.59-9
BuildRequires: automake
@@ -111,8 +109,6 @@ Moduł wczytujący WMF dla biblioteki gdk_pixbuf 2.x
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
-%patch -P3 -p1
-%patch -P4 -p1
%build
%{__libtoolize}
diff --git a/libwmf-ah.patch b/libwmf-ah.patch
deleted file mode 100644
index 3d58e94..0000000
--- a/libwmf-ah.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- libwmf-0.2.12/configure.ac.orig 2019-02-01 18:51:32.000000000 +0100
-+++ libwmf-0.2.12/configure.ac 2019-04-24 22:01:22.848914667 +0200
-@@ -143,6 +143,15 @@
- #end libtool stuff
-
- dnl Checks for header files.
-+AH_TEMPLATE([HAVE_EXPAT], [Define if you have expat.])
-+AH_TEMPLATE([HAVE_GD], [Define if you have libgd])
-+AH_TEMPLATE([HAVE_LIBJPEG], [Define if you have libjpeg.])
-+AH_TEMPLATE([HAVE_LIBPLOT], [Define if you have GNU plotutils (libplot) >= 2.4.0.])
-+AH_TEMPLATE([HAVE_LIBPNG], [Define if you have libpng.])
-+AH_TEMPLATE([HAVE_LIBXML2], [Define if you have libxml2.])
-+AH_TEMPLATE([WITHOUT_LAYERS], [defining this will disable egs, fig, svg & foreign layers])
-+AH_TEMPLATE([snprintf], [Define to _snprintf if necessary])
-+AH_TEMPLATE([vsnprintf], [Define to _vsnprintf if necessary])
- AC_HEADER_STDC
- AC_CHECK_HEADERS(time.h)
- AC_CHECK_HEADER(unistd.h,[
diff --git a/libwmf-includes.patch b/libwmf-includes.patch
deleted file mode 100644
index 1823c0e..0000000
--- a/libwmf-includes.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- libwmf-0.2.1/src/ipa/Makefile.am.orig Sun Jul 15 18:11:57 2001
-+++ libwmf-0.2.1/src/ipa/Makefile.am Sat Sep 1 12:14:53 2001
-@@ -1,5 +1,7 @@
- CFLAGS = @CFLAGS@ @WMF_CFLAGS@
-
-+DEFAULT_INCLUDES =
-+
- LDFLAGS = @LDFLAGS@
-
- DEFS = @DEFS@ @WMF_DEFS@ \
diff --git a/libwmf-segv.patch b/libwmf-segv.patch
deleted file mode 100644
index f4ab85f..0000000
--- a/libwmf-segv.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff -Nur libwmf-0.2.6.orig/src/font.c libwmf-0.2.6/src/font.c
---- libwmf-0.2.6.orig/src/font.c Wed Jun 12 20:22:02 2002
-+++ libwmf-0.2.6/src/font.c Sun Jul 7 19:09:15 2002
-@@ -512,6 +512,9 @@
-
- FT_Set_Transform (face,0,0);
-
-+ if (!face)
-+ return 0;
-+
- use_kerning = FT_HAS_KERNING (face);
-
- previous = 0;
-@@ -559,6 +562,9 @@
-
- FT_Set_Transform (face,0,0);
-
-+ if (!face)
-+ return 0;
-+
- use_kerning = FT_HAS_KERNING (face);
-
- previous = 0;
-diff -Nur libwmf-0.2.6.orig/src/ipa/x/font.h libwmf-0.2.6/src/ipa/x/font.h
---- libwmf-0.2.6.orig/src/ipa/x/font.h Tue Oct 16 10:11:46 2001
-+++ libwmf-0.2.6/src/ipa/x/font.h Sun Jul 7 19:07:39 2002
-@@ -122,6 +122,9 @@
-
- FT_Load_Char (face,draw_text->str[0],FT_LOAD_RENDER);
-
-+ if (!face)
-+ return;
-+
- pt.x += face->glyph->bitmap_left;
- pt.y -= face->glyph->bitmap_top;
-
-diff -Nur libwmf-0.2.6.orig/src/ipa/xgd/font.h libwmf-0.2.6/src/ipa/xgd/font.h
---- libwmf-0.2.6.orig/src/ipa/xgd/font.h Sun Oct 28 15:07:21 2001
-+++ libwmf-0.2.6/src/ipa/xgd/font.h Sun Jul 7 19:07:17 2002
-@@ -119,6 +119,9 @@
-
- FT_Load_Char (face,draw_text->str[0],FT_LOAD_RENDER);
-
-+ if (!face)
-+ return;
-+
- pt.x += face->glyph->bitmap_left;
- pt.y -= face->glyph->bitmap_top;
-
diff --git a/libwmf-stdint.patch b/libwmf-stdint.patch
new file mode 100644
index 0000000..43c8060
--- /dev/null
+++ b/libwmf-stdint.patch
@@ -0,0 +1,11 @@
+# bmp.h uses uint64_t but nothing includes <stdint.h>
+--- libwmf-0.2.17/src/ipa/ipa.c.orig
++++ libwmf-0.2.17/src/ipa/ipa.c
+@@ -22,6 +22,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <limits.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libwmf.git/commitdiff/f636d201e8ad79705ea278e8059f8a4939b1924b
More information about the pld-cvs-commit
mailing list