libwps-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. %global apiversion 0.4
  2. Name: libwps
  3. Version: 0.4.3
  4. Release: 1%{?_dist_release}
  5. Summary: A library for import of Microsoft Works documents
  6. Summary(ja): Microsoft Works ドキュメントをインポートするためのライブラリ
  7. License: LGPLv2+ or MPLv2.0
  8. Group: System Environment/Libraries
  9. URL: http://libwps.sourceforge.net/
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: doxygen
  15. BuildRequires: help2man
  16. BuildRequires: libboost-devel
  17. BuildRequires: librevenge-devel
  18. %description
  19. %{name} is a library for import of Microsoft Works text documents,
  20. spreadsheets and (in a limited way) databases.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Summary(ja): %{name} の開発用ファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. The %{name}-devel package contains libraries and header files for
  28. developing applications that use %{name}.
  29. %package tools
  30. Summary: Tools to transform Microsoft Works documents into other formats
  31. Summary(ja): Microsoft Works ドキュメントを他のフォーマットに変換するツール
  32. Group: Applications/Text
  33. Requires: %{name} = %{version}-%{release}
  34. %description tools
  35. Tools to transform Microsoft Works documents into other formats.
  36. Currently supported: CSV, 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 documentation files for %{name}
  44. %prep
  45. %setup -q
  46. %build
  47. %configure --disable-silent-rules --disable-static --disable-werror
  48. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  49. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  50. make %{?_smp_mflags}
  51. export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  52. help2man -N -n 'convert Works spreadsheet into CSV' -o wks2csv.1 ./src/conv/wks2csv/.libs/wks2csv
  53. help2man -N -n 'debug the conversion library' -o wks2raw.1 ./src/conv/wks2raw/.libs/wks2raw
  54. help2man -N -n 'convert Works spreadsheet into plain text' -o wks2text.1 ./src/conv/wks2text/.libs/wks2text
  55. help2man -N -n 'debug the conversion library' -o wps2raw.1 ./src/conv/raw/.libs/wps2raw
  56. help2man -N -n 'convert Works document into HTML' -o wps2html.1 ./src/conv/html/.libs/wps2html
  57. help2man -N -n 'convert Works document into plain text' -o wps2text.1 ./src/conv/text/.libs/wps2text
  58. %install
  59. rm -rf %{buildroot}
  60. make install INSTALL="install -p" DESTDIR="%{buildroot}"
  61. rm -f %{buildroot}%{_libdir}/*.la
  62. # we install API docs directly from build
  63. rm -rf %{buildroot}%{_defaultdocdir}/%{name}
  64. install -m 0755 -d %{buildroot}/%{_mandir}/man1
  65. install -m 0644 wks2*.1 wps2*.1 %{buildroot}/%{_mandir}/man1
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %clean
  69. rm -rf %{buildroot}
  70. %files
  71. %doc COPYING.LGPL COPYING.MPL CREDITS NEWS README
  72. %{_libdir}/%{name}-%{apiversion}.so.*
  73. %files devel
  74. %doc HACKING
  75. %{_includedir}/%{name}-%{apiversion}
  76. %{_libdir}/%{name}-%{apiversion}.so
  77. %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
  78. %files tools
  79. %{_bindir}/wks2csv
  80. %{_bindir}/wks2raw
  81. %{_bindir}/wks2text
  82. %{_bindir}/wps2html
  83. %{_bindir}/wps2raw
  84. %{_bindir}/wps2text
  85. %{_mandir}/man1/wks2csv.1*
  86. %{_mandir}/man1/wks2raw.1*
  87. %{_mandir}/man1/wks2text.1*
  88. %{_mandir}/man1/wps2html.1*
  89. %{_mandir}/man1/wps2raw.1*
  90. %{_mandir}/man1/wps2text.1*
  91. %files doc
  92. %doc COPYING.LGPL COPYING.MPL
  93. %doc docs/doxygen/html
  94. %changelog
  95. * Sat Jul 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.4.3-1
  96. - new upstream release.
  97. * Sun Mar 8 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-3
  98. - added Group tag to devel subpackage
  99. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-2
  100. - Initial build for Vine Linux
  101. * Tue Dec 30 2014 David Tardon <dtardon@redhat.com> - 0.3.1-1
  102. - new upstream release
  103. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  105. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  107. * Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.3.0-1
  108. - new upstream release
  109. * Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 0.2.9-8
  110. - Rebuild for boost 1.55.0
  111. * Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.9-7
  112. - generate man pages
  113. * Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.2.9-6
  114. - Resolves: rhbz#1005711 do not compile in C++11 mode
  115. * Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.2.9-5
  116. - Resolves: rhbz#98166 Duplicated documentation
  117. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
  118. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  119. * Thu May 30 2013 David Tardon <dtardon@redhat.com> - 0.2.9-3
  120. - drop build req. on cppunit
  121. * Thu May 30 2013 David Tardon <dtardon@redhat.com> - 0.2.9-2
  122. - libwps does not have any test suite
  123. * Sat May 25 2013 David Tardon <dtardon@redhat.com> - 0.2.9-1
  124. - new release
  125. * Sun Apr 21 2013 David Tardon <dtardon@redhat.com> - 0.2.8-1
  126. - new release
  127. * Tue Apr 16 2013 Caolán McNamara <caolanm@redhat.com> - 0.2.7-5
  128. - Resolves: rhbz#925931 support aarch64
  129. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-4
  130. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  131. * Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.2.7-3
  132. - rebuilt for boost 1.50
  133. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
  134. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  135. * Fri Jun 29 2012 David Tardon <dtardon@redhat.com> - 0.2.7-1
  136. - new release
  137. * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3
  138. - Rebuilt for c++ ABI breakage
  139. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
  140. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  141. * Thu Dec 01 2011 David Tardon <dtardon@redhat.com> - 0.2.4-1
  142. - latest version
  143. * Fri Nov 18 2011 David Tardon <dtardon@redhat.com> - 0.2.3-1
  144. - latest version
  145. - remove obsoleted patch
  146. * Wed Jul 13 2011 David Tardon <dtardon@redhat.com> - 0.2.2-1
  147. - latest version
  148. * Tue Jun 28 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.2.0-3
  149. - Remove -Werror from CFLAGS/CXXFLAGS (Add libwps-0.2.0-werror.patch)
  150. (Fix FTBFS BZ#715767).
  151. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
  152. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  153. * Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
  154. - latest version
  155. * Sat Jan 30 2010 Chen Lei <supercyper@163.com> - 0.1.2-7
  156. - Add noarch to -doc subpackage
  157. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
  158. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  159. * Tue Mar 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-5
  160. - Correct DOC issues (again) RHBZ: #484933 / C14
  161. * Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-4
  162. - Correct path for CHECK section
  163. * Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-3
  164. - Add CHECK section
  165. - Add cppunit-devel to BuildRequires
  166. * Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-2
  167. - Correct DOC issues
  168. - Delete wrong pkgconfig pathes
  169. * Tue Feb 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-1
  170. - Initial Package build