libwps-vl.spec 7.3 KB

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