librevenge-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. %global apiversion 0.0
  2. Name: librevenge
  3. Version: 0.0.2
  4. Release: 2%{?_dist_release}
  5. Summary: A base library for writing document import filters
  6. Summary(ja): ドキュメントのインポートフィルタを作成するための基礎ライブラリ
  7. # src/lib/RVNGOLEStream.{h,cpp} are BSD
  8. License: (LGPLv2+ or MPLv2.0) and BSD
  9. Group: System Environment/Libraries
  10. URL: http://sourceforge.net/p/libwpd/wiki/librevenge/
  11. Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: cppunit-devel
  14. BuildRequires: doxygen
  15. BuildRequires: libboost-devel
  16. BuildRequires: zlib-devel
  17. %description
  18. %{name} is a base library for writing document import filters. It has
  19. interfaces for text documents, vector graphics, spreadsheets and
  20. presentations.
  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 doc
  30. Summary: Documentation of %{name} API
  31. Summary(ja): %{name} API のドキュメント
  32. Group: Documentation
  33. BuildArch: noarch
  34. %description doc
  35. The %{name}-doc package contains documentation files for %{name}.
  36. %prep
  37. %autosetup -p1
  38. %build
  39. %configure --disable-silent-rules --disable-static --disable-werror --enable-pretty-printers
  40. sed -i \
  41. -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
  42. -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
  43. libtool
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf %{buildroot}
  47. make install DESTDIR=%{buildroot}
  48. rm -f %{buildroot}/%{_libdir}/*.la
  49. # we install API docs directly from build
  50. rm -rf %{buildroot}/%{_docdir}/%{name}
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. #%check
  54. #export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  55. #make %{?_smp_mflags} check
  56. %clean
  57. rm -rf %{buildroot}
  58. %files
  59. %doc COPYING.* README NEWS
  60. %{_libdir}/%{name}-%{apiversion}.so.*
  61. %{_libdir}/%{name}-generators-%{apiversion}.so.*
  62. %{_libdir}/%{name}-stream-%{apiversion}.so.*
  63. %files devel
  64. %doc ChangeLog
  65. %{_includedir}/%{name}-%{apiversion}
  66. %{_libdir}/%{name}-%{apiversion}.so
  67. %{_libdir}/%{name}-generators-%{apiversion}.so
  68. %{_libdir}/%{name}-stream-%{apiversion}.so
  69. %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
  70. %{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc
  71. %{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc
  72. %{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py*
  73. %{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py*
  74. %dir %{_datadir}/%{name}
  75. %{_datadir}/%{name}/python
  76. %files doc
  77. %doc COPYING.*
  78. %doc docs/doxygen/html
  79. %changelog
  80. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.0.2-2
  81. - Initial build for Vine Linux
  82. * Wed Dec 24 2014 David Tardon <dtardon@redhat.com> - 0.0.2-1
  83. - new upstream release
  84. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  86. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  88. * Tue Jun 03 2014 David Tardon <dtardon@redhat.com> - 0.0.1-1
  89. - new upstream release
  90. * Tue May 27 2014 David Tardon <dtardon@redhat.com> - 0.0.0-2
  91. - remove extra dirs from filelist
  92. * Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.0.0-1
  93. - initial import