libwmf-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. Summary: A .wmf file converter.
  2. Name: libwmf
  3. Version: 0.2.12
  4. Release: 1%{?_dist_release}
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: LGPLv2+ and GPLv2+ and GPL+
  9. URL: https://github.com/caolanm/libwmf
  10. Source0: https://github.com/caolanm/libwmf/archive/v%{version}.tar.gz#/libwmf-%{version}.tar.gz
  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: freetype2 >= 2.1.7
  24. Requires: urw-fonts
  25. # for file triggers
  26. Requires: gdk-pixbuf2%{?_isa}
  27. %description
  28. The libwmf library provides routines for converting Microsoft(R) .wmf
  29. format files. Currently libwmf includes bindings for converting .wmf
  30. files into onscreen X graphics, to .gif files and to .fig (Xfig)
  31. files. Future libwmf project plans include completion of the .fig
  32. conversion process and other vector-based formats conversions.
  33. %package devel
  34. Summary: Development tools for programs to manipulate metafile images
  35. Group: programming
  36. Requires: %{name} = %{version}-%{release}
  37. Requires: zlib-devel
  38. Requires: gtk2-devel, libxml2-devel, libjpeg-devel
  39. Requires: libpng-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. %debug_package
  45. %prep
  46. %setup -q
  47. %build
  48. %configure --without-expat --with-x --disable-static
  49. %configure --with-libxml2 --disable-static --disable-dependency-tracking --with-
  50. gsfontdir=/usr/share/fonts/default/Type1
  51. make %{?_smp_mflags}
  52. %install
  53. rm -rf %{buildroot}
  54. make install DESTDIR=%{buildroot}
  55. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  56. rm -rf %{buildroot}%{_includedir}/libwmf/gd
  57. find doc -name "Makefile*" -exec rm {} \;
  58. #we're carrying around duplicate fonts
  59. rm -rf %{buildroot}%{_datadir}/libwmf/fonts/*afm
  60. rm -rf %{buildroot}%{_datadir}/libwmf/fonts/*t1
  61. sed -i %{buildroot}%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/default/Type1#g'
  62. %clean
  63. rm -rf %{buildroot}
  64. %ldconfig_scriptlets
  65. %files
  66. %defattr(-,root,root)
  67. %license COPYING
  68. %doc AUTHORS README
  69. %{_bindir}/wmf2eps
  70. %{_bindir}/wmf2fig
  71. %{_bindir}/wmf2svg
  72. %{_bindir}/wmf2gd
  73. %{_bindir}/wmf2x
  74. %{_bindir}/libwmf-fontmap
  75. %{_libdir}/lib*.so.*
  76. %{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
  77. %{_datadir}/libwmf
  78. %files devel
  79. %defattr(-,root,root)
  80. %doc examples
  81. %doc doc/*.html
  82. %doc doc/*.png
  83. %doc doc/*.gif
  84. %doc doc/html
  85. %doc doc/caolan
  86. %{_bindir}/libwmf-config
  87. %{_includedir}/libwmf
  88. %{_libdir}/lib*.so
  89. %{_libdir}/pkgconfig/libwmf.pc
  90. %changelog
  91. * Mon Mar 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.2.12-1
  92. - switched to the forked project.
  93. - new upstream release.
  94. * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-7
  95. - rebuld with VineSeed environment
  96. * Tue Apr 26 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-6
  97. - add patch8 - patch15 from fc14 to fix many security issues
  98. - add vendor/distr tag
  99. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-5
  100. - add BuildRequires: zlib-devel, libX11-devel, libXt-devel, xorg-x11-proto-devel
  101. - add Requires: zlib-devel, libX11-devel (devel package)
  102. - add configure option (--disable-static)
  103. * Fri Jul 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-4
  104. - merged from VinePlus 4.x (-2,-3 are skipped)
  105. - * Sun May 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  106. - 0.2.8.4-3vl4
  107. - add patch1 for fox CVE-2009-1364 (embedded GD graphics library)
  108. - new versioning policy
  109. - add smp_mflags into make section
  110. - fix spec typo
  111. * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-1
  112. - applied new versioning policy
  113. - removed lib*.la from devel package
  114. * Tue Apr 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.4-0vl3
  115. - rebuild with gtk+-2.10
  116. * Tue Aug 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.8.4-0vl2
  117. - [SECURITY] add patch0
  118. - WMF file handling integer overflow vulnerability (CVE-2006-3376)
  119. - update URL
  120. - drop flase dependencies
  121. - Requires: gdk-pixbuf
  122. - BuildPreReq: gdk-pixbuf-devel
  123. - add deficient dependencies
  124. - Requires: libjpeg
  125. - BuildPreReq: libjpeg-devel
  126. * Mon Aug 1 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-0vl1
  127. - new upstream release
  128. * Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.2-0vl2
  129. - rebuild with gtk+-2.4.0
  130. * Sun Nov 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.2-0vl1
  131. - updated to 0.2.8.2
  132. - Changed Requires freetype2 >= 2.1.7 (added version dependancy)
  133. * Mon Sep 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8-0vl1
  134. - update to 0.2.8
  135. - rebuild with new toolchains
  136. - add Requires to gdk-pixbuf, ghostscript and gtk2
  137. * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.2.6-0vl1
  138. - update
  139. * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
  140. - 0.2.1-0vl1: split devel subpackage
  141. * Fri Nov 10 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  142. - 0.1.16-1vl1
  143. - remove Builarch:
  144. * Tue Nov 16 1999 Tim Powers <timp@redhat.com>
  145. - updated to 0.1.16
  146. * Mon Aug 30 1999 Tim Powers <timp@redhat.com>
  147. - changed group
  148. * Mon Jul 19 1999 Tim Powers <timp@redhat.com>
  149. - updated source
  150. - built for 6.1
  151. * Wed May 12 1999 Cristian Gafton <gafton@redhat.com>
  152. - build for powertools