| 1 | Summary: A .wmf file converter. |
|---|
| 2 | Name: libwmf |
|---|
| 3 | Version: 0.2.8.4 |
|---|
| 4 | Release: 6%{?_dist_release} |
|---|
| 5 | License: GPL |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | URL: http://wvware.sourceforge.net/libwmf.html |
|---|
| 8 | Source0: http://prdownloads.sourceforge.net/wvware/libwmf-%{version}.tar.gz |
|---|
| 9 | |
|---|
| 10 | # fix CVE-2006-3376 |
|---|
| 11 | Patch0: libwmf-0.2.8.4-CVE-2006-3376.patch |
|---|
| 12 | # fix CVE-2009-1364 (embedded GD graphics library) |
|---|
| 13 | Patch1: libwmf-0.2.8.4-realloc.patch |
|---|
| 14 | # adapt to standalone gdk-pixbuf |
|---|
| 15 | Patch8: libwmf-0.2.8.4-pixbufloaderdir.patch |
|---|
| 16 | # CVE-2007-0455 |
|---|
| 17 | Patch9: libwmf-0.2.8.4-CVE-2007-0455.patch |
|---|
| 18 | # CVE-2007-3472 |
|---|
| 19 | Patch10: libwmf-0.2.8.4_CVE-2007-3472.patch |
|---|
| 20 | # CVE-2007-3473 |
|---|
| 21 | Patch11: libwmf-0.2.8.4-CVE-2007-3473.patch |
|---|
| 22 | # CVE-2006-2906 affects GIFs, which is not implemented here |
|---|
| 23 | # CVE-2006-4484 affects GIFs, which is not implemented here |
|---|
| 24 | # CVE-2007-3474 affects GIFs, which is not implemented here |
|---|
| 25 | # CVE-2007-3475 affects GIFs, which is not implemented here |
|---|
| 26 | # CVE-2007-3476 affects GIFs, which is not implemented here |
|---|
| 27 | # CVE-2007-3477 |
|---|
| 28 | Patch12: libwmf-0.2.8.4-CVE-2007-3477.patch |
|---|
| 29 | # CVE-2007-3478 affects shared ttf files across threads, which is not implemented here |
|---|
| 30 | # CVE-2007-2756 |
|---|
| 31 | Patch13: libwmf-0.2.8.4-CVE-2007-2756.patch |
|---|
| 32 | # CAN-2004-0941 |
|---|
| 33 | Patch14: libwmf-0.2.8.4-CAN-2004-0941.patch |
|---|
| 34 | # CVE-2009-3546 |
|---|
| 35 | Patch15: libwmf-0.2.8.4-CVE-2009-3546.patch |
|---|
| 36 | |
|---|
| 37 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 38 | BuildRequires: libxml2-devel |
|---|
| 39 | BuildRequires: libpng-devel |
|---|
| 40 | BuildRequires: libjpeg-devel |
|---|
| 41 | BuildRequires: gtk2-devel |
|---|
| 42 | BuildRequires: ghostscript-devel |
|---|
| 43 | BuildRequires: freetype2-devel >= 2.1.7 |
|---|
| 44 | BuildRequires: zlib-devel |
|---|
| 45 | BuildRequires: libX11-devel |
|---|
| 46 | BuildRequires: libXt-devel |
|---|
| 47 | BuildRequires: xorg-x11-proto-devel |
|---|
| 48 | Requires: ghostscript |
|---|
| 49 | Requires: gtk2 >= 2.10.0 |
|---|
| 50 | Requires: freetype2 >= 2.1.7 |
|---|
| 51 | |
|---|
| 52 | Vendor: Project Vine |
|---|
| 53 | Distribution: Vine Linux |
|---|
| 54 | |
|---|
| 55 | %description |
|---|
| 56 | The libwmf library provides routines for converting Microsoft(R) .wmf |
|---|
| 57 | format files. Currently libwmf includes bindings for converting .wmf |
|---|
| 58 | files into onscreen X graphics, to .gif files and to .fig (Xfig) |
|---|
| 59 | files. Future libwmf project plans include completion of the .fig |
|---|
| 60 | conversion process and other vector-based formats conversions. |
|---|
| 61 | |
|---|
| 62 | %package devel |
|---|
| 63 | Summary: Development tools for programs to manipulate metafile images |
|---|
| 64 | Group: Development/Libraries |
|---|
| 65 | Requires: %{name} = %{version}-%{release} |
|---|
| 66 | Requires: zlib-devel |
|---|
| 67 | Requires: libX11-devel |
|---|
| 68 | Requires: libxml2-devel |
|---|
| 69 | Requires: libpng-devel |
|---|
| 70 | Requires: libjpeg-devel |
|---|
| 71 | Requires: freetype2-devel >= 2.1.7 |
|---|
| 72 | |
|---|
| 73 | %description devel |
|---|
| 74 | The libwmf-devel package contains the header files and static |
|---|
| 75 | libraries necessary for developing programs using libwmf. |
|---|
| 76 | |
|---|
| 77 | %prep |
|---|
| 78 | %setup -q |
|---|
| 79 | %patch0 -p1 -b .CVE-2006-3376 |
|---|
| 80 | %patch1 -p1 -b .CVE-2009-1364 |
|---|
| 81 | |
|---|
| 82 | %patch8 -p1 -b .pixbufloaderdir |
|---|
| 83 | %patch9 -p1 -b .CVE-2007-0455 |
|---|
| 84 | %patch10 -p0 -b .CVE-2007-3472 |
|---|
| 85 | %patch11 -p1 -b .CVE-2007-3473 |
|---|
| 86 | %patch12 -p1 -b .CVE-2007-3477 |
|---|
| 87 | %patch13 -p1 -b .CVE-2007-2756 |
|---|
| 88 | %patch14 -p1 -b .CAN-2004-0941 |
|---|
| 89 | %patch15 -p1 -b .CVE-2009-3546 |
|---|
| 90 | |
|---|
| 91 | %build |
|---|
| 92 | %configure --without-expat --with-x --disable-static |
|---|
| 93 | make %{?_smp_mflags} |
|---|
| 94 | |
|---|
| 95 | %install |
|---|
| 96 | rm -rf %{buildroot} |
|---|
| 97 | mkdir -p docs-to-install |
|---|
| 98 | make install DESTDIR=%{buildroot} |
|---|
| 99 | |
|---|
| 100 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 101 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.{la,a} |
|---|
| 102 | |
|---|
| 103 | cp -pr %{buildroot}%{_datadir}/doc/libwmf/* docs-to-install/ |
|---|
| 104 | rm -rf %{buildroot}%{_datadir}/doc/libwmf/ |
|---|
| 105 | |
|---|
| 106 | %clean |
|---|
| 107 | rm -rf %{buildroot} |
|---|
| 108 | |
|---|
| 109 | %post -p /sbin/ldconfig |
|---|
| 110 | |
|---|
| 111 | %postun -p /sbin/ldconfig |
|---|
| 112 | |
|---|
| 113 | %files |
|---|
| 114 | %defattr(-,root,root) |
|---|
| 115 | %doc ChangeLog README CREDITS COPYING TODO docs-to-install/* examples |
|---|
| 116 | %{_bindir}/wmf2eps |
|---|
| 117 | %{_bindir}/wmf2fig |
|---|
| 118 | %{_bindir}/wmf2svg |
|---|
| 119 | %{_bindir}/wmf2gd |
|---|
| 120 | %{_bindir}/wmf2x |
|---|
| 121 | %{_bindir}/libwmf-fontmap |
|---|
| 122 | %{_libdir}/lib*.so.* |
|---|
| 123 | %{_libdir}/gtk-2.0/*/loaders/*.so |
|---|
| 124 | %{_datadir}/libwmf |
|---|
| 125 | |
|---|
| 126 | %files devel |
|---|
| 127 | %defattr(-,root,root) |
|---|
| 128 | %{_bindir}/libwmf-config |
|---|
| 129 | %{_includedir}/libwmf |
|---|
| 130 | #{_libdir}/*.la |
|---|
| 131 | %{_libdir}/lib*.so |
|---|
| 132 | #{_libdir}/gtk-2.0/*/loaders/*a |
|---|
| 133 | |
|---|
| 134 | %changelog |
|---|
| 135 | * Tue Apr 26 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-6 |
|---|
| 136 | - add patch8 - patch15 from fc14 to fix many security issues |
|---|
| 137 | - add vendor/distr tag |
|---|
| 138 | |
|---|
| 139 | * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-5 |
|---|
| 140 | - add BuildRequires: zlib-devel, libX11-devel, libXt-devel, xorg-x11-proto-devel |
|---|
| 141 | - add Requires: zlib-devel, libX11-devel (devel package) |
|---|
| 142 | - add configure option (--disable-static) |
|---|
| 143 | |
|---|
| 144 | * Fri Jul 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-4 |
|---|
| 145 | - merged from VinePlus 4.x (-2,-3 are skipped) |
|---|
| 146 | - * Sun May 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> |
|---|
| 147 | - 0.2.8.4-3vl4 |
|---|
| 148 | - add patch1 for fox CVE-2009-1364 (embedded GD graphics library) |
|---|
| 149 | - new versioning policy |
|---|
| 150 | - add smp_mflags into make section |
|---|
| 151 | - fix spec typo |
|---|
| 152 | |
|---|
| 153 | * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-1 |
|---|
| 154 | - applied new versioning policy |
|---|
| 155 | - removed lib*.la from devel package |
|---|
| 156 | |
|---|
| 157 | * Tue Apr 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.4-0vl3 |
|---|
| 158 | - rebuild with gtk+-2.10 |
|---|
| 159 | |
|---|
| 160 | * Mon Aug 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.8.4-0vl2 |
|---|
| 161 | - [SECURITY] add patch0 |
|---|
| 162 | - WMF file handling integer overflow vulnerability (CVE-2006-3376) |
|---|
| 163 | - update URL |
|---|
| 164 | - drop flase dependencies |
|---|
| 165 | - Requires: gdk-pixbuf |
|---|
| 166 | - BuildPreReq: gdk-pixbuf-devel |
|---|
| 167 | - add deficient dependencies |
|---|
| 168 | - Requires: libjpeg |
|---|
| 169 | - BuildPreReq: libjpeg-devel |
|---|
| 170 | |
|---|
| 171 | * Mon Aug 1 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-0vl1 |
|---|
| 172 | - new upstream release |
|---|
| 173 | |
|---|
| 174 | * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.2-0vl2 |
|---|
| 175 | - rebuild with gtk+-2.4.0 |
|---|
| 176 | |
|---|
| 177 | * Sun Nov 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.2-0vl1 |
|---|
| 178 | - updated to 0.2.8.2 |
|---|
| 179 | - Changed Requires freetype2 >= 2.1.7 (added version dependancy) |
|---|
| 180 | |
|---|
| 181 | * Mon Sep 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8-0vl1 |
|---|
| 182 | - update to 0.2.8 |
|---|
| 183 | - rebuild with new toolchains |
|---|
| 184 | - add Requires to gdk-pixbuf, ghostscript and gtk2 |
|---|
| 185 | |
|---|
| 186 | * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.2.6-0vl1 |
|---|
| 187 | - update |
|---|
| 188 | |
|---|
| 189 | * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org> |
|---|
| 190 | - 0.2.1-0vl1: split devel subpackage |
|---|
| 191 | |
|---|
| 192 | * Fri Nov 10 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp> |
|---|
| 193 | - 0.1.16-1vl1 |
|---|
| 194 | - remove Builarch: |
|---|
| 195 | |
|---|
| 196 | * Tue Nov 16 1999 Tim Powers <timp@redhat.com> |
|---|
| 197 | - updated to 0.1.16 |
|---|
| 198 | |
|---|
| 199 | * Mon Aug 30 1999 Tim Powers <timp@redhat.com> |
|---|
| 200 | - changed group |
|---|
| 201 | |
|---|
| 202 | * Mon Jul 19 1999 Tim Powers <timp@redhat.com> |
|---|
| 203 | - updated source |
|---|
| 204 | - built for 6.1 |
|---|
| 205 | |
|---|
| 206 | * Wed May 12 1999 Cristian Gafton <gafton@redhat.com> |
|---|
| 207 | - build for powertools |
|---|