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