libwmf-vl.spec 6.1 KB

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