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