wv-vl.spec 5.7 KB

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