wv-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. # option for not using libwmf-0.2.0 or higher
  2. # rpmbuild -ba | --rebuild --without libwmf
  3. %define LIBWMF 1
  4. %{?_without_libwmf:%define LIBWMF 0}
  5. Summary: an MS-Word document converter
  6. Summary(ja): MS Word 文章コンバータ
  7. Name: wv
  8. Version: 1.2.4
  9. Release: 1%{?_dist_release}
  10. Group: Applications/Text
  11. License: GPLv2
  12. URL: http://wvware.sourceforge.net/
  13. Source0: http://download.sourceforge.net/wvware/%{name}-%{version}.tar.gz
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: zlib-devel
  16. BuildRequires: glib2-devel
  17. BuildRequires: libgsf-devel
  18. BuildRequires: libpng-devel
  19. BuildRequires: libxml2-devel
  20. BuildRequires: libjpeg-devel
  21. %if %{LIBWMF}
  22. BuildRequires: libwmf-devel >= 0.2.6
  23. Requires: libwmf >= 0.2.6
  24. %endif
  25. %description
  26. wv is an MS-Word document converter.
  27. If you want to get EUC-JP html files, see the example below.
  28. wvHtml foobar.doc foobar.html.utf8
  29. iconv -f UTF-8 -t EUC-JP foobar.html.utf8 | \
  30. sed 's/UTF-8/EUC-JP/g' > foobar.html.euc
  31. %if %{LIBWMF}
  32. This package is configured to use libwmf, so it can convert wmf files
  33. into png. Please install libwmf-0.2.0 or higher too.
  34. %else
  35. This package is configured not to use libwmf, so it can't convert
  36. wmf files into png.
  37. %endif
  38. %description -l ja
  39. wv は MS Word ドキュメントのコンバータです.EUC-JP エンコードの
  40. html ファイルを作成したいのであれば,次の例を参考にしてください.
  41. wvHtml foobar.doc foobar.html.utf8
  42. iconv -f UTF-8 -t EUC-JP foobar.html.utf8 | \
  43. sed 's/UTF-8/EUC-JP/g' > foobar.html.euc
  44. %if %{LIBWMF}
  45. このパッケージは libwmf を使用するように設定されているので,wmf
  46. ファイルを png に変換することができます.libwmf のバージョン 0.2.0 以上
  47. をあわせてインストールしてください.
  48. %else
  49. このパッケージは libwmf を使用しないように設定されているので,
  50. wmf ファイルを png に変換することはできません.
  51. %endif
  52. %package devel
  53. Summary: Development tools for programs to manipulate MS-Word documents
  54. Summary(ja): MS Word ドキュメントを処理するプログラムを開発するためのツール
  55. Group: Development/Libraries
  56. Requires: wv = %{version}
  57. Requires: zlib-devel
  58. Requires: glib2-devel
  59. Requires: libgsf-devel
  60. Requires: libpng-devel
  61. Requires: libxml2-devel
  62. Requires: libjpeg-devel
  63. %if %{LIBWMF}
  64. Requires: libwmf-devel >= 0.2.6
  65. %endif
  66. %description devel
  67. The wv-devel package contains the header files and static
  68. libraries necessary for developing programs using wv.
  69. If you want to develop programs which will manipulate MS-Word documents, you
  70. should install wv-devel. You'll also need to install the wv package.
  71. %description devel -l ja
  72. wv-devel パッケージには wv を使用したプログラムの開発に必要な
  73. ヘッダファイルおよび静的ライブラリが含まれています.
  74. MS Word ドキュメントを処理するプログラムを開発したいのであれば,
  75. wv-devel パッケージをインストールすべきです.wv パッケージを
  76. インストールする必要もあります.
  77. %prep
  78. %setup -q
  79. %build
  80. %configure --disable-static \
  81. %if %{LIBWMF}
  82. --with-libwmf \
  83. %endif
  84. make %{?_smp_mflags}
  85. %install
  86. rm -rf $RPM_BUILD_ROOT
  87. %makeinstall
  88. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT
  91. %post -p /sbin/ldconfig
  92. %postun -p /sbin/ldconfig
  93. %files
  94. %defattr(-,root,root)
  95. %doc COPYING README
  96. %{_bindir}/wv[A-Z]*
  97. %{_libdir}/lib*.so.*
  98. %{_datadir}/wv
  99. %{_mandir}/man1/*
  100. %files devel
  101. %defattr(-,root,root)
  102. %{_includedir}/wv
  103. #{_libdir}/lib*.a
  104. %{_libdir}/lib*.so
  105. %{_libdir}/pkgconfig/*.pc
  106. %changelog
  107. * Tue May 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-2
  108. - spec in UTF-8
  109. - removed *.a file from devel package
  110. * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-1
  111. - applied new versioning policy
  112. - removed *.la file from devel package
  113. - added %%post and %%postun for /sbin/ldconfig
  114. * Thu Dec 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl1
  115. - new upstream release
  116. includes security fix CVE-2006-4513 <BTS:428>
  117. * Sat Jun 17 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.0-0vl4
  118. - rebuild
  119. * Thu May 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl3
  120. - added Requires: libwmf-devel to wv-devel
  121. * Tue Mar 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl2
  122. - rebuilt with libgsf-1.14.0
  123. * Thu Nov 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
  124. - new upstream release
  125. * Fri Feb 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl1
  126. - updated to 1.0.3
  127. - Patch1 was merged to upstream, dropped
  128. - added Japanese summary and description
  129. - added --with-expat to %configure
  130. - rewrite build option "--without libwmf"
  131. * Sat Sep 29 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl3
  132. - correct wv.spec for CAN-2004-0645
  133. * Sat Aug 28 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl2
  134. - added patch1 for CAN-2004-0645
  135. * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-0vl1
  136. - update to 1.0.0
  137. - rebuild with new toolchains
  138. - fixed spec file
  139. * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.7.2-0vl1
  140. - update
  141. * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
  142. - 0.6.7-0vl1: was ported to VineSeedPlus with better macros
  143. - build with libwmf by default
  144. * Fri Jun 2 2001 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
  145. - 0.6.5-0vl1
  146. - subpackage devel
  147. - not to require libwmf by default
  148. - macro-usage change
  149. * Mon Dec 6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  150. - [wv-0.5.41-1]
  151. - First attempt.