libwpd-vl.spec 7.0 KB

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