libwpd-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. %global apiversion 0.10
  2. Summary: A library for import of WordPerfect documents
  3. Summary(ja): WordPerfect ドキュメントのインポートを行うためのライブラリ
  4. Name: libwpd
  5. Version: 0.10.0
  6. Release: 1%{?_dist_release}
  7. License: LGPLv2+ or MPLv2.0
  8. Group: System Environment/Libraries
  9. URL: http://libwpd.sf.net/
  10. Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: cppunit-devel
  13. BuildRequires: doxygen
  14. BuildRequires: help2man
  15. BuildRequires: librevenge-devel
  16. BuildRequires: zlib-devel
  17. %description
  18. libwpd is a library for import of WordPerfect documents.
  19. %description -l ja
  20. libwpd は WordPerfect 文書をインポートするためのライブラリです。
  21. %package devel
  22. Summary: Development files for libwpd
  23. Summary(ja): libwpd の開発用ファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: pkgconfig
  27. %description devel
  28. Includes and definitions for developing with libwpd.
  29. %package tools
  30. Summary: Tools to transform WordPerfect documents into other formats
  31. Summary(ja): WordPerfect 文書を他のフォーマットに変換するツール
  32. Requires: %{name} = %{version}-%{release}
  33. Group: Applications/Text
  34. %description tools
  35. Tools to transform WordPerfect Documents into other formats.
  36. Currently supported: html, raw, text.
  37. %package doc
  38. Summary: Documentation of %{name} API
  39. Summary(ja): %{name} API のドキュメント
  40. Group: Documentation
  41. BuildArch: noarch
  42. %description doc
  43. The %{name}-doc package contains API documentation for %{name}.
  44. %prep
  45. %setup -q
  46. chmod -x docs/%{name}.dia
  47. %build
  48. %configure --disable-static --disable-werror
  49. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  50. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  51. make %{?_smp_mflags} V=1
  52. export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  53. help2man -N -n 'debug the conversion library' -o wpd2raw.1 ./src/conv/raw/.libs/wpd2raw
  54. help2man -N -n 'convert WordPerfect document into HTML' -o wpd2html.1 ./src/conv/html/.libs/wpd2html
  55. help2man -N -n 'convert WordPerfect document into plain text' -o wpd2text.1 ./src/conv/text/.libs/wpd2text
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. make DESTDIR=$RPM_BUILD_ROOT install
  59. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  60. # we install API docs directly from build
  61. rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
  62. install -m 0755 -d %{buildroot}/%{_mandir}/man1
  63. install -m 0644 wpd2*.1 %{buildroot}/%{_mandir}/man1
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root,-)
  70. %doc COPYING.LGPL COPYING.MPL CREDITS README
  71. %{_libdir}/%{name}-%{apiversion}.so.*
  72. %files devel
  73. %defattr(-,root,root,-)
  74. %doc HACKING TODO
  75. %{_includedir}/%{name}-%{apiversion}
  76. %{_libdir}/%{name}-%{apiversion}.so
  77. %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
  78. %files tools
  79. %defattr(-,root,root,-)
  80. %{_bindir}/wpd2html
  81. %{_bindir}/wpd2raw
  82. %{_bindir}/wpd2text
  83. %{_mandir}/man1/wpd2html.1*
  84. %{_mandir}/man1/wpd2raw.1*
  85. %{_mandir}/man1/wpd2text.1*
  86. %files doc
  87. %doc COPYING.LGPL COPYING.MPL
  88. %doc docs/doxygen/html
  89. %doc docs/%{name}.dia
  90. %doc docs/%{name}.png
  91. %changelog
  92. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.10.0-1
  93. - new upstream release
  94. - split documents to doc subpackage
  95. * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-1
  96. - new upstream release
  97. - add BuildRequires: zlib-devel
  98. * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwa.com> 0.9.0-1
  99. - new upstream release
  100. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.14-3
  101. - rebuild with rpm-4.8.1 for pkg-config file
  102. * Fri Jul 3 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.14-2
  103. - spec in UTF-8
  104. * Mon May 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwa.com> 0.8.14-1
  105. - new upstream release
  106. * Sat May 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.9-0vl1
  107. - initial build for Vine Linux
  108. * Tue Mar 27 2007 Caolan McNamara <caolanm@redhat.com> - 0.8.9-2
  109. - Resolves: rhbz#233876: add unowned directory fix from Michael Schwendt
  110. * Fri Mar 16 2007 Caolan McNamara <caolanm@redhat.com> - 0.8.9-1
  111. - next version
  112. * Fri Feb 09 2007 Caolan McNamara <caolanm@redhat.com> - 0.8.8-2
  113. - spec cleanups
  114. * Thu Jan 11 2007 Caolan McNamara <caolanm@redhat.com> - 0.8.8-1
  115. - next version
  116. * Mon Oct 09 2006 Caolan McNamara <caolanm@redhat.com> - 0.8.7-1
  117. - next version
  118. * Mon Jul 17 2006 Caolan McNamara <caolanm@redhat.com> - 0.8.6-1
  119. - next version
  120. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.8.5-3.1
  121. - rebuild
  122. * Sun Jun 11 2006 Caolan McNamara <caolanm@redhat.com> 0.8.5-3
  123. - add wp5nofontlistcrash
  124. * Fri Jun 02 2006 Caolan McNamara <caolanm@redhat.com> 0.8.5-2
  125. - build through brew
  126. * Thu Jun 01 2006 Caolan McNamara <caolanm@redhat.com> 0.8.5-1
  127. - next version
  128. * Tue Mar 21 2006 Caolan McNamara <caolanm@redhat.com> 0.8.4-2
  129. - rebuild for libgsf
  130. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-1.2.1
  131. - bump again for double-long bug on ppc(64)
  132. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-1.2
  133. - rebuilt for new gcc4.1 snapshot and glibc changes
  134. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0.8.4-1.1
  135. - rebuilt
  136. * Fri Dec 02 2005 Caolan McNamara <caolanm@redhat.com> 0.8.4-1
  137. - next version
  138. * Fri Dec 02 2005 Caolan McNamara <caolanm@redhat.com> 0.8.3-2
  139. - rebuild because of libgsf
  140. * Tue Jun 28 2005 Caolan McNamara <caolanm@redhat.com> 0.8.3-1
  141. - update to latest libwpd
  142. * Tue Jun 28 2005 Caolan McNamara <caolanm@redhat.com> 0.8.2-2.fc5
  143. - export to other formats twiddle
  144. * Wed Jun 22 2005 Caolan McNamara <caolanm@redhat.com> 0.8.2-1
  145. - bump to latest version
  146. * Fri Apr 29 2005 Caolan McNamara <caolanm@redhat.com> 0.8.1-1
  147. - bump to latest version kudos Fridrich Strba
  148. - drop integrated patch
  149. * Wed Apr 6 2005 Caolan McNamara <caolanm@redhat.com> 0.8.0-4
  150. - add libwpd devel provided patch for endless loops on some wpd documents
  151. * Wed Mar 30 2005 Caolan McNamara <caolanm@redhat.com> 0.8.0-3
  152. - rh#152503# add some Requires for -devel package
  153. * Wed Mar 2 2005 Caolan McNamara <caolanm@redhat.com> 0.8.0-2
  154. - rebuild with gcc4
  155. * Fri Feb 11 2005 Caolan McNamara <caolanm@redhat.com> 0.8.0-1
  156. - new version
  157. * Wed Feb 9 2005 Caolan McNamara <caolanm@redhat.com> 0.7.2-2
  158. - rebuild
  159. * Fri Jul 23 2004 Caolan McNamara <caolanm@redhat.com> 0.7.2-1
  160. - bump to 0.7.2
  161. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  162. - rebuilt
  163. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  164. - rebuilt
  165. * Thu Feb 19 2004 Jeremy Katz <katzj@redhat.com> - 0.7.1-1
  166. - update to 0.7.1
  167. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  168. - rebuilt
  169. * Tue Dec 16 2003 Jeremy Katz <katzj@redhat.com> 0.6.6-1
  170. - 0.6.6
  171. * Tue Nov 4 2003 Jeremy Katz <katzj@redhat.com> 0.6.5-1
  172. - 0.6.5
  173. * Mon Sep 15 2003 Jeremy Katz <katzj@redhat.com> 0.6.2-1
  174. - 0.6.2
  175. * Sun Jul 6 2003 Jeremy Katz <katzj@redhat.com> 0.5.0-1
  176. - initial build for Red Hat Linux, tweak accordingly
  177. * Sat Apr 26 2003 Rui M. Seabra <rms@1407.org>
  178. - Create rpm spec