wv-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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.9
  9. Release: 1%{?_dist_release}
  10. Group: Applications/Text
  11. License: GPLv2
  12. URL: http://www.abisource.com/
  13. Source0: http://www.abisource.com/downloads/wv/%{version}/wv-%{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. * Sat Jul 19 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.2.9-1
  108. - new upstream release
  109. - changed URL, Source0 tag
  110. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-3
  111. - rebuild with rpm-4.8.1 for pkg-config file
  112. * Tue May 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-2
  113. - spec in UTF-8
  114. - removed *.a file from devel package
  115. * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-1
  116. - applied new versioning policy
  117. - removed *.la file from devel package
  118. - added %%post and %%postun for /sbin/ldconfig
  119. * Thu Dec 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl1
  120. - new upstream release
  121. includes security fix CVE-2006-4513 <BTS:428>
  122. * Sat Jun 17 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.0-0vl4
  123. - rebuild
  124. * Thu May 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl3
  125. - added Requires: libwmf-devel to wv-devel
  126. * Tue Mar 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl2
  127. - rebuilt with libgsf-1.14.0
  128. * Thu Nov 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
  129. - new upstream release
  130. * Fri Feb 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl1
  131. - updated to 1.0.3
  132. - Patch1 was merged to upstream, dropped
  133. - added Japanese summary and description
  134. - added --with-expat to %configure
  135. - rewrite build option "--without libwmf"
  136. * Sat Sep 29 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl3
  137. - correct wv.spec for CAN-2004-0645
  138. * Sat Aug 28 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl2
  139. - added patch1 for CAN-2004-0645
  140. * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-0vl1
  141. - update to 1.0.0
  142. - rebuild with new toolchains
  143. - fixed spec file
  144. * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.7.2-0vl1
  145. - update
  146. * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
  147. - 0.6.7-0vl1: was ported to VineSeedPlus with better macros
  148. - build with libwmf by default
  149. * Fri Jun 2 2001 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
  150. - 0.6.5-0vl1
  151. - subpackage devel
  152. - not to require libwmf by default
  153. - macro-usage change
  154. * Mon Dec 6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
  155. - [wv-0.5.41-1]
  156. - First attempt.