source: projects/specs/trunk/lib/libw/libwmf/libwmf-vl.spec @ 3707

Revision 3707, 6.1 KB checked in by iwamoto, 13 years ago (diff)

avahi: add patch for security fix
libwmf: add patch for security fix

RevLine 
[521]1Summary: A .wmf file converter.
2Name: libwmf
3Version: 0.2.8.4
[3707]4Release: 6%{?_dist_release}
[521]5License: GPL
6Group: System Environment/Libraries
7URL: http://wvware.sourceforge.net/libwmf.html
8Source0: http://prdownloads.sourceforge.net/wvware/libwmf-%{version}.tar.gz
[3707]9
10# fix CVE-2006-3376
[521]11Patch0: libwmf-0.2.8.4-CVE-2006-3376.patch
[3707]12# fix CVE-2009-1364 (embedded GD graphics library)
[521]13Patch1: libwmf-0.2.8.4-realloc.patch
[3707]14# adapt to standalone gdk-pixbuf
15Patch8: libwmf-0.2.8.4-pixbufloaderdir.patch
16# CVE-2007-0455
17Patch9:  libwmf-0.2.8.4-CVE-2007-0455.patch
18# CVE-2007-3472
19Patch10: libwmf-0.2.8.4_CVE-2007-3472.patch
20# CVE-2007-3473
21Patch11: 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
28Patch12: 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
31Patch13: libwmf-0.2.8.4-CVE-2007-2756.patch
32# CAN-2004-0941
33Patch14: libwmf-0.2.8.4-CAN-2004-0941.patch
34# CVE-2009-3546
35Patch15: libwmf-0.2.8.4-CVE-2009-3546.patch
[521]36
37Buildroot: %{_tmppath}/%{name}-%{version}-root
38BuildRequires: libxml2-devel
39BuildRequires: libpng-devel
40BuildRequires: libjpeg-devel
41BuildRequires: gtk2-devel
42BuildRequires: ghostscript-devel
43BuildRequires: freetype2-devel >= 2.1.7
[1897]44BuildRequires: zlib-devel
45BuildRequires: libX11-devel
46BuildRequires: libXt-devel
47BuildRequires: xorg-x11-proto-devel
[521]48Requires: ghostscript
49Requires: gtk2 >= 2.10.0
50Requires: freetype2 >= 2.1.7
51
[3707]52Vendor:         Project Vine
53Distribution:   Vine Linux
54
[521]55%description
56The libwmf library provides routines for converting Microsoft(R) .wmf
57format files. Currently libwmf includes bindings for converting .wmf
58files into onscreen X graphics, to .gif files and to .fig (Xfig)
59files. Future libwmf project plans include completion of the .fig
60conversion process and other vector-based formats conversions.
61
62%package devel
63Summary: Development tools for programs to manipulate metafile images
64Group: Development/Libraries
[1897]65Requires: %{name} = %{version}-%{release}
66Requires: zlib-devel
67Requires: libX11-devel
[521]68Requires: libxml2-devel
69Requires: libpng-devel
70Requires: libjpeg-devel
71Requires: freetype2-devel >= 2.1.7
72
73%description devel
74The libwmf-devel package contains the header files and static
75libraries 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]93make %{?_smp_mflags}
94
95%install
96rm -rf %{buildroot}
97mkdir -p docs-to-install
98make install DESTDIR=%{buildroot}
99
100rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
101rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.{la,a}
102
103cp -pr %{buildroot}%{_datadir}/doc/libwmf/* docs-to-install/
104rm -rf %{buildroot}%{_datadir}/doc/libwmf/
105
106%clean
107rm -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
[3707]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
[1897]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
[521]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
Note: See TracBrowser for help on using the repository browser.