libwmf-vl.spec 4.3 KB

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