libwmf-vl.spec 4.7 KB

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