[521] | 1 | Summary: A .wmf file converter. |
---|
| 2 | Name: libwmf |
---|
| 3 | Version: 0.2.8.4 |
---|
[8793] | 4 | Release: 7%{?_dist_release} |
---|
[521] | 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 |
---|
[3707] | 9 | |
---|
| 10 | # fix CVE-2006-3376 |
---|
[521] | 11 | Patch0: libwmf-0.2.8.4-CVE-2006-3376.patch |
---|
[3707] | 12 | # fix CVE-2009-1364 (embedded GD graphics library) |
---|
[521] | 13 | Patch1: libwmf-0.2.8.4-realloc.patch |
---|
[3707] | 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 |
---|
[521] | 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 |
---|
[1897] | 44 | BuildRequires: zlib-devel |
---|
| 45 | BuildRequires: libX11-devel |
---|
| 46 | BuildRequires: libXt-devel |
---|
| 47 | BuildRequires: xorg-x11-proto-devel |
---|
[521] | 48 | Requires: ghostscript |
---|
| 49 | Requires: gtk2 >= 2.10.0 |
---|
| 50 | Requires: freetype2 >= 2.1.7 |
---|
| 51 | |
---|
[3707] | 52 | Vendor: Project Vine |
---|
| 53 | Distribution: Vine Linux |
---|
| 54 | |
---|
[521] | 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 |
---|
[1897] | 65 | Requires: %{name} = %{version}-%{release} |
---|
| 66 | Requires: zlib-devel |
---|
| 67 | Requires: libX11-devel |
---|
[521] | 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 | |
---|
[3707] | 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 |
---|
[521] | 90 | |
---|
| 91 | %build |
---|
[1897] | 92 | %configure --without-expat --with-x --disable-static |
---|
[521] | 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}/lib*.so |
---|
| 131 | |
---|
| 132 | %changelog |
---|
[8793] | 133 | * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-7 |
---|
| 134 | - rebuld with VineSeed environment |
---|
| 135 | |
---|
[3707] | 136 | * Tue Apr 26 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-6 |
---|
| 137 | - add patch8 - patch15 from fc14 to fix many security issues |
---|
| 138 | - add vendor/distr tag |
---|
| 139 | |
---|
[1897] | 140 | * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-5 |
---|
| 141 | - add BuildRequires: zlib-devel, libX11-devel, libXt-devel, xorg-x11-proto-devel |
---|
| 142 | - add Requires: zlib-devel, libX11-devel (devel package) |
---|
| 143 | - add configure option (--disable-static) |
---|
| 144 | |
---|
[521] | 145 | * Fri Jul 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-4 |
---|
| 146 | - merged from VinePlus 4.x (-2,-3 are skipped) |
---|
| 147 | - * Sun May 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> |
---|
| 148 | - 0.2.8.4-3vl4 |
---|
| 149 | - add patch1 for fox CVE-2009-1364 (embedded GD graphics library) |
---|
| 150 | - new versioning policy |
---|
| 151 | - add smp_mflags into make section |
---|
| 152 | - fix spec typo |
---|
| 153 | |
---|
| 154 | * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-1 |
---|
| 155 | - applied new versioning policy |
---|
| 156 | - removed lib*.la from devel package |
---|
| 157 | |
---|
| 158 | * Tue Apr 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.4-0vl3 |
---|
| 159 | - rebuild with gtk+-2.10 |
---|
| 160 | |
---|
[8793] | 161 | * Tue Aug 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.8.4-0vl2 |
---|
[521] | 162 | - [SECURITY] add patch0 |
---|
| 163 | - WMF file handling integer overflow vulnerability (CVE-2006-3376) |
---|
| 164 | - update URL |
---|
| 165 | - drop flase dependencies |
---|
| 166 | - Requires: gdk-pixbuf |
---|
| 167 | - BuildPreReq: gdk-pixbuf-devel |
---|
| 168 | - add deficient dependencies |
---|
| 169 | - Requires: libjpeg |
---|
| 170 | - BuildPreReq: libjpeg-devel |
---|
| 171 | |
---|
| 172 | * Mon Aug 1 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-0vl1 |
---|
| 173 | - new upstream release |
---|
| 174 | |
---|
| 175 | * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.2-0vl2 |
---|
| 176 | - rebuild with gtk+-2.4.0 |
---|
| 177 | |
---|
| 178 | * Sun Nov 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.2-0vl1 |
---|
| 179 | - updated to 0.2.8.2 |
---|
| 180 | - Changed Requires freetype2 >= 2.1.7 (added version dependancy) |
---|
| 181 | |
---|
| 182 | * Mon Sep 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8-0vl1 |
---|
| 183 | - update to 0.2.8 |
---|
| 184 | - rebuild with new toolchains |
---|
| 185 | - add Requires to gdk-pixbuf, ghostscript and gtk2 |
---|
| 186 | |
---|
| 187 | * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.2.6-0vl1 |
---|
| 188 | - update |
---|
| 189 | |
---|
| 190 | * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org> |
---|
| 191 | - 0.2.1-0vl1: split devel subpackage |
---|
| 192 | |
---|
| 193 | * Fri Nov 10 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp> |
---|
| 194 | - 0.1.16-1vl1 |
---|
| 195 | - remove Builarch: |
---|
| 196 | |
---|
| 197 | * Tue Nov 16 1999 Tim Powers <timp@redhat.com> |
---|
| 198 | - updated to 0.1.16 |
---|
| 199 | |
---|
| 200 | * Mon Aug 30 1999 Tim Powers <timp@redhat.com> |
---|
| 201 | - changed group |
---|
| 202 | |
---|
| 203 | * Mon Jul 19 1999 Tim Powers <timp@redhat.com> |
---|
| 204 | - updated source |
---|
| 205 | - built for 6.1 |
---|
| 206 | |
---|
| 207 | * Wed May 12 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 208 | - build for powertools |
---|