[9259] | 1 | %global apiversion 0.3 |
---|
| 2 | |
---|
[3151] | 3 | Name: libwpg |
---|
[9259] | 4 | Summary: A library for import of WordPerfect Graphics images |
---|
| 5 | Summary(ja): WordPerfect のグラフィック画像をインポートするためのライブラリ |
---|
| 6 | Version: 0.3.0 |
---|
[8721] | 7 | Release: 1%{?_dist_release} |
---|
[3151] | 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
[9259] | 10 | License: LGPLv2+ or MPLv2.0 |
---|
[3151] | 11 | URL: http://libwpg.sourceforge.net/ |
---|
| 12 | |
---|
[8721] | 13 | Source0: http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz |
---|
[3151] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: doxygen |
---|
[9259] | 17 | BuildRequires: help2man |
---|
| 18 | BuildRequires: libwpd-devel >= 0.10.0 |
---|
| 19 | BuildRequires: librevenge-devel |
---|
| 20 | BuildRequires: perl(Getopt::Std) |
---|
[3151] | 21 | |
---|
| 22 | %description |
---|
| 23 | Libwpg project is a library and to work with graphics in WPG |
---|
| 24 | (WordPerfect Graphics) format. WPG is the format used among others |
---|
| 25 | in Corel sofware, such as WordPerfect and Presentations. |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %package devel |
---|
| 29 | Summary: Development files for %{name} |
---|
[9259] | 30 | Summary(ja): %{name} の開発用ファイル |
---|
[3151] | 31 | Group: Development/Libraries |
---|
| 32 | Requires: %{name} = %{version}-%{release} |
---|
| 33 | |
---|
| 34 | %description devel |
---|
| 35 | The %{name}-devel package contains libraries and header files for |
---|
| 36 | developing applications that use %{name}. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %package tools |
---|
[9259] | 40 | Summary: Tools to convert WordPerfect Graphics images to other formats |
---|
| 41 | Summary(ja): WordPerfect グラフィック画像を他のフォーマットに変換するツール |
---|
| 42 | # wpg2svgbatch.pl says "GPL", without specifying version, and points to |
---|
| 43 | # http://www.gnu.org/copyleft/gpl.html . I assume this means "any |
---|
| 44 | # version". |
---|
| 45 | License: (LGPLv2+ or MPLv2.0) and GPL+ |
---|
| 46 | Group: Applications/Graphics |
---|
| 47 | Requires: %{name} = %{version}-%{release} |
---|
[3151] | 48 | |
---|
| 49 | %description tools |
---|
[9259] | 50 | Tools to convert WordPerfect Graphics images to other formats. Supported |
---|
| 51 | are: SVG, raw. |
---|
[3151] | 52 | |
---|
| 53 | |
---|
[9259] | 54 | %package doc |
---|
| 55 | Summary: Documentation of %{name} API |
---|
| 56 | Summary(ja): %{name} API のドキュメント |
---|
| 57 | Group: Documentation |
---|
| 58 | BuildArch: noarch |
---|
| 59 | |
---|
| 60 | %description doc |
---|
| 61 | The %{name}-doc package contains API documentation for %{name}. |
---|
| 62 | |
---|
| 63 | |
---|
[3151] | 64 | %prep |
---|
| 65 | %setup -q |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %build |
---|
[9259] | 69 | %configure --disable-static --disable-werror |
---|
| 70 | sed -i \ |
---|
| 71 | -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ |
---|
| 72 | -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ |
---|
| 73 | libtool |
---|
| 74 | make %{?_smp_mflags} V=1 |
---|
[3151] | 75 | sed 's/\r//' -i ChangeLog |
---|
| 76 | find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg |
---|
| 77 | |
---|
[9259] | 78 | export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
---|
| 79 | help2man -N -n 'debug the conversion library' -o wpg2raw.1 ./src/conv/raw/.libs/wpg2raw |
---|
| 80 | help2man -N -n 'convert WordPerfect Graphics into SVG' -o wpg2svg.1 ./src/conv/svg/.libs/wpg2svg |
---|
| 81 | help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \ |
---|
| 82 | --help-option=-h --no-discard-stderr \ |
---|
| 83 | -o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl |
---|
| 84 | |
---|
[3151] | 85 | %install |
---|
| 86 | rm -rf $RPM_BUILD_ROOT |
---|
[9259] | 87 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 88 | |
---|
[3151] | 89 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 90 | |
---|
[9259] | 91 | # we install API docs directly from build |
---|
| 92 | rm -rf %{buildroot}/%{_docdir}/%{name} |
---|
[3151] | 93 | |
---|
[9259] | 94 | install -m 0755 -d %{buildroot}/%{_mandir}/man1 |
---|
| 95 | install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1 |
---|
| 96 | |
---|
| 97 | |
---|
[3151] | 98 | %clean |
---|
| 99 | rm -rf $RPM_BUILD_ROOT |
---|
| 100 | |
---|
| 101 | %post -p /sbin/ldconfig |
---|
| 102 | %postun -p /sbin/ldconfig |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | %files |
---|
| 106 | %defattr(-,root,root,-) |
---|
[9259] | 107 | %doc AUTHORS ChangeLog COPYING.LGPL COPYING.MPL |
---|
| 108 | %{_libdir}/%{name}-%{apiversion}.so.* |
---|
[3151] | 109 | |
---|
| 110 | %files devel |
---|
| 111 | %defattr(-,root,root,-) |
---|
[9259] | 112 | %{_includedir}/%{name}-%{apiversion} |
---|
| 113 | %{_libdir}/%{name}-%{apiversion}.so |
---|
| 114 | %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc |
---|
[3151] | 115 | |
---|
| 116 | %files tools |
---|
| 117 | %defattr(-,root,root,-) |
---|
[9259] | 118 | %{_bindir}/wpg2raw |
---|
| 119 | %{_bindir}/wpg2svg |
---|
| 120 | %{_bindir}/wpg2svgbatch.pl |
---|
| 121 | %{_mandir}/man1/wpg2raw.1* |
---|
| 122 | %{_mandir}/man1/wpg2svg.1* |
---|
| 123 | %{_mandir}/man1/wpg2svgbatch.pl.1* |
---|
[3151] | 124 | |
---|
[9259] | 125 | %files doc |
---|
| 126 | %doc COPYING.LGPL COPYING.MPL |
---|
| 127 | %doc docs/doxygen/html |
---|
[3151] | 128 | |
---|
[9259] | 129 | |
---|
[3151] | 130 | %changelog |
---|
[9259] | 131 | * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.0-1 |
---|
| 132 | - new upstream release |
---|
| 133 | - split documents to doc subpackage |
---|
| 134 | |
---|
[8721] | 135 | * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.2.2-1 |
---|
| 136 | - update to 0.2.2 |
---|
| 137 | - remove Patch0 (libwpg-0.1.3-nodate.patch) |
---|
| 138 | |
---|
[3151] | 139 | * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2.0-3 |
---|
| 140 | - Initial build for Vine Linux |
---|
| 141 | |
---|
| 142 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2 |
---|
| 143 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 144 | |
---|
| 145 | * Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1 |
---|
| 146 | - latest version |
---|
| 147 | |
---|
| 148 | * Tue Jul 28 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-4 |
---|
| 149 | - Fix multilib problem with doxygen documentation (#508940) |
---|
| 150 | |
---|
| 151 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3 |
---|
| 152 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 153 | |
---|
| 154 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2 |
---|
| 155 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 156 | |
---|
| 157 | * Tue Jan 6 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-1 |
---|
| 158 | - Initial packaging |
---|