librevenge-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. %global apiversion 0.0
  2. Name: librevenge
  3. Version: 0.0.4
  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. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: cppunit-devel
  16. BuildRequires: doxygen
  17. BuildRequires: libboost-devel
  18. BuildRequires: zlib-devel
  19. %description
  20. %{name} is a base library for writing document import filters. It has
  21. interfaces for text documents, vector graphics, spreadsheets and
  22. presentations.
  23. %package devel
  24. Summary: Development files for %{name}
  25. Summary(ja): %{name} の開発用ファイル
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. %description devel
  29. The %{name}-devel package contains libraries and header files for
  30. developing applications that use %{name}.
  31. %package doc
  32. Summary: Documentation of %{name} API
  33. Summary(ja): %{name} API のドキュメント
  34. Group: Documentation
  35. BuildArch: noarch
  36. %description doc
  37. The %{name}-doc package contains documentation files for %{name}.
  38. %prep
  39. %autosetup -p1
  40. %build
  41. %configure --disable-silent-rules --disable-static --disable-werror --enable-pretty-printers
  42. sed -i \
  43. -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
  44. -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
  45. libtool
  46. make %{?_smp_mflags}
  47. %install
  48. rm -rf %{buildroot}
  49. make install DESTDIR=%{buildroot}
  50. rm -f %{buildroot}/%{_libdir}/*.la
  51. # we install API docs directly from build
  52. rm -rf %{buildroot}/%{_docdir}/%{name}
  53. %post
  54. /sbin/ldconfig
  55. %postun
  56. /sbin/ldconfig
  57. #%check
  58. #export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  59. #make %{?_smp_mflags} check
  60. %clean
  61. rm -rf %{buildroot}
  62. %files
  63. %doc COPYING.* README NEWS
  64. %{_libdir}/%{name}-%{apiversion}.so.*
  65. %{_libdir}/%{name}-generators-%{apiversion}.so.*
  66. %{_libdir}/%{name}-stream-%{apiversion}.so.*
  67. %files devel
  68. %doc ChangeLog
  69. %{_includedir}/%{name}-%{apiversion}
  70. %{_libdir}/%{name}-%{apiversion}.so
  71. %{_libdir}/%{name}-generators-%{apiversion}.so
  72. %{_libdir}/%{name}-stream-%{apiversion}.so
  73. %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
  74. %{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc
  75. %{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc
  76. %{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py*
  77. %{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py*
  78. %dir %{_datadir}/%{name}
  79. %{_datadir}/%{name}/python
  80. %files doc
  81. %doc COPYING.*
  82. %doc docs/doxygen/html
  83. %changelog
  84. * Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.0.4-2
  85. - fixed %%post and %%postun scripts.
  86. * Sat Jul 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.0.4-1
  87. - new upstream release.
  88. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.0.2-2
  89. - Initial build for Vine Linux
  90. * Wed Dec 24 2014 David Tardon <dtardon@redhat.com> - 0.0.2-1
  91. - new upstream release
  92. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  94. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-2
  95. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  96. * Tue Jun 03 2014 David Tardon <dtardon@redhat.com> - 0.0.1-1
  97. - new upstream release
  98. * Tue May 27 2014 David Tardon <dtardon@redhat.com> - 0.0.0-2
  99. - remove extra dirs from filelist
  100. * Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.0.0-1
  101. - initial import