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