libodfgen-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. %global apiversion 0.1
  2. Name: libodfgen
  3. Version: 0.1.3
  4. Release: 3%{?_dist_release}
  5. Summary: An ODF generator library
  6. Summary(ja): ODF 生成ライブラリ
  7. License: LGPLv2+ or MPLv2.0
  8. Group: System Environment/Libraries
  9. URL: https://sourceforge.net/p/libwpd/wiki/libodfgen/
  10. Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: doxygen
  13. BuildRequires: libboost-devel
  14. BuildRequires: librevenge-devel
  15. %description
  16. %{name} is a library for generating ODF documents. It is directly
  17. pluggable into input filters based on librevenge. It is used in
  18. libreoffice or calligra, for example.
  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 doc
  28. Summary: Documentation of %{name} API
  29. Summary(ja): %{name} API のドキュメント
  30. Group: Documentation
  31. BuildArch: noarch
  32. %description doc
  33. The %{name}-doc package contains documentation files for %{name}.
  34. %prep
  35. %setup -q
  36. %build
  37. %configure --disable-silent-rules --disable-static --disable-werror \
  38. --enable-test
  39. sed -i \
  40. -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
  41. -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
  42. libtool
  43. make %{?_smp_mflags}
  44. %install
  45. make install DESTDIR=%{buildroot}
  46. rm -f %{buildroot}/%{_libdir}/*.la
  47. # we install API docs directly from build
  48. rm -rf %{buildroot}/%{_docdir}/%{name}
  49. %check
  50. export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  51. make %{?_smp_mflags} check
  52. make -C test launch_all
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %doc COPYING.* README NEWS
  57. %{_libdir}/%{name}-%{apiversion}.so.*
  58. %files devel
  59. %doc ChangeLog
  60. %{_includedir}/%{name}-%{apiversion}
  61. %{_libdir}/%{name}-%{apiversion}.so
  62. %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
  63. %files doc
  64. %doc COPYING.*
  65. %doc docs/doxygen/html
  66. %changelog
  67. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> - 0.1.3-3
  68. - rebuild with gcc-5.4.0
  69. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.1.3-2
  70. - Initial build for Vine Linux
  71. * Fri Jan 02 2015 David Tardon <dtardon@redhat.com> - 0.1.3-1
  72. - new upstream release
  73. * Mon Nov 24 2014 David Tardon <dtardon@redhat.com> - 0.1.2-1
  74. - new upstream release
  75. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  77. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-2
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  79. * Tue Jun 03 2014 David Tardon <dtardon@redhat.com> - 0.1.1-1
  80. - new upstream release
  81. * Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.1.0-1
  82. - new upstream release
  83. * Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.0.4-2
  84. - rebuild for boost 1.55.0
  85. * Wed Dec 04 2013 David Tardon <dtardon@redhat.com> - 0.0.4-1
  86. - new release
  87. * Tue Dec 03 2013 David Tardon <dtardon@redhat.com> - 0.0.3-2
  88. - rhbz#1000893 do not pull in unneeded packages
  89. * Thu Oct 31 2013 David Tardon <dtardon@redhat.com> - 0.0.3-1
  90. - new release
  91. * Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.0.2-3
  92. - do not build in C++11 mode
  93. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-2
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  95. * Wed May 22 2013 David Tardon <dtardon@redhat.com> - 0.0.2-1
  96. - new release
  97. * Wed May 08 2013 David Tardon <dtardon@redhat.com> - 0.0.1-1
  98. - new release
  99. * Fri May 03 2013 David Tardon <dtardon@redhat.com> - 0.0.0-1
  100. - initial import