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

Revision 8793, 6.1 KB checked in by Takemikaduchi, 8 years ago (diff)

libXi, libcdio, libusb1, qt4: new upstream release
others: rebuild

Line 
1Summary: A .wmf file converter.
2Name: libwmf
3Version: 0.2.8.4
4Release: 7%{?_dist_release}
5License: GPL
6Group: System Environment/Libraries
7URL: http://wvware.sourceforge.net/libwmf.html
8Source0: http://prdownloads.sourceforge.net/wvware/libwmf-%{version}.tar.gz
9
10# fix CVE-2006-3376
11Patch0: libwmf-0.2.8.4-CVE-2006-3376.patch
12# fix CVE-2009-1364 (embedded GD graphics library)
13Patch1: libwmf-0.2.8.4-realloc.patch
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
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
44BuildRequires: zlib-devel
45BuildRequires: libX11-devel
46BuildRequires: libXt-devel
47BuildRequires: xorg-x11-proto-devel
48Requires: ghostscript
49Requires: gtk2 >= 2.10.0
50Requires: freetype2 >= 2.1.7
51
52Vendor:         Project Vine
53Distribution:   Vine Linux
54
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
65Requires: %{name} = %{version}-%{release}
66Requires: zlib-devel
67Requires: libX11-devel
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
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
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}/lib*.so
131
132%changelog
133* Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-7
134- rebuld with VineSeed environment
135
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
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
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
161* Tue Aug 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.8.4-0vl2
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
Note: See TracBrowser for help on using the repository browser.