[521] | 1 | # option for not using libwmf-0.2.0 or higher |
---|
| 2 | # rpmbuild -ba | --rebuild --without libwmf |
---|
| 3 | %define LIBWMF 1 |
---|
| 4 | %{?_without_libwmf:%define LIBWMF 0} |
---|
| 5 | |
---|
| 6 | Summary: an MS-Word document converter |
---|
| 7 | Summary(ja): MS Word 文章コンバータ |
---|
| 8 | Name: wv |
---|
[8845] | 9 | Version: 1.2.9 |
---|
| 10 | Release: 1%{?_dist_release} |
---|
[521] | 11 | Group: Applications/Text |
---|
| 12 | License: GPLv2 |
---|
[8845] | 13 | URL: http://www.abisource.com/ |
---|
| 14 | Source0: http://www.abisource.com/downloads/wv/%{version}/wv-%{version}.tar.gz |
---|
[521] | 15 | |
---|
| 16 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: zlib-devel |
---|
| 18 | BuildRequires: glib2-devel |
---|
| 19 | BuildRequires: libgsf-devel |
---|
| 20 | BuildRequires: libpng-devel |
---|
| 21 | BuildRequires: libxml2-devel |
---|
| 22 | BuildRequires: libjpeg-devel |
---|
| 23 | %if %{LIBWMF} |
---|
| 24 | BuildRequires: libwmf-devel >= 0.2.6 |
---|
| 25 | Requires: libwmf >= 0.2.6 |
---|
| 26 | %endif |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | wv is an MS-Word document converter. |
---|
| 30 | If you want to get EUC-JP html files, see the example below. |
---|
| 31 | wvHtml foobar.doc foobar.html.utf8 |
---|
| 32 | iconv -f UTF-8 -t EUC-JP foobar.html.utf8 | \ |
---|
| 33 | sed 's/UTF-8/EUC-JP/g' > foobar.html.euc |
---|
| 34 | |
---|
| 35 | %if %{LIBWMF} |
---|
| 36 | This package is configured to use libwmf, so it can convert wmf files |
---|
| 37 | into png. Please install libwmf-0.2.0 or higher too. |
---|
| 38 | %else |
---|
| 39 | This package is configured not to use libwmf, so it can't convert |
---|
| 40 | wmf files into png. |
---|
| 41 | %endif |
---|
| 42 | |
---|
| 43 | %description -l ja |
---|
| 44 | wv は MS Word ドキュメントのコンバータです.EUC-JP エンコードの |
---|
| 45 | html ファイルを作成したいのであれば,次の例を参考にしてください. |
---|
| 46 | |
---|
| 47 | wvHtml foobar.doc foobar.html.utf8 |
---|
| 48 | iconv -f UTF-8 -t EUC-JP foobar.html.utf8 | \ |
---|
| 49 | sed 's/UTF-8/EUC-JP/g' > foobar.html.euc |
---|
| 50 | |
---|
| 51 | %if %{LIBWMF} |
---|
| 52 | このパッケージは libwmf を使用するように設定されているので,wmf |
---|
| 53 | ファイルを png に変換することができます.libwmf のバージョン 0.2.0 以上 |
---|
| 54 | をあわせてインストールしてください. |
---|
| 55 | %else |
---|
| 56 | このパッケージは libwmf を使用しないように設定されているので, |
---|
| 57 | wmf ファイルを png に変換することはできません. |
---|
| 58 | %endif |
---|
| 59 | |
---|
| 60 | %package devel |
---|
| 61 | Summary: Development tools for programs to manipulate MS-Word documents |
---|
| 62 | Summary(ja): MS Word ドキュメントを処理するプログラムを開発するためのツール |
---|
| 63 | Group: Development/Libraries |
---|
| 64 | Requires: wv = %{version} |
---|
| 65 | Requires: zlib-devel |
---|
| 66 | Requires: glib2-devel |
---|
| 67 | Requires: libgsf-devel |
---|
| 68 | Requires: libpng-devel |
---|
| 69 | Requires: libxml2-devel |
---|
| 70 | Requires: libjpeg-devel |
---|
| 71 | %if %{LIBWMF} |
---|
| 72 | Requires: libwmf-devel >= 0.2.6 |
---|
| 73 | %endif |
---|
| 74 | |
---|
| 75 | %description devel |
---|
| 76 | The wv-devel package contains the header files and static |
---|
| 77 | libraries necessary for developing programs using wv. |
---|
| 78 | |
---|
| 79 | If you want to develop programs which will manipulate MS-Word documents, you |
---|
| 80 | should install wv-devel. You'll also need to install the wv package. |
---|
| 81 | |
---|
| 82 | %description devel -l ja |
---|
| 83 | wv-devel パッケージには wv を使用したプログラムの開発に必要な |
---|
| 84 | ヘッダファイルおよび静的ライブラリが含まれています. |
---|
| 85 | |
---|
| 86 | MS Word ドキュメントを処理するプログラムを開発したいのであれば, |
---|
| 87 | wv-devel パッケージをインストールすべきです.wv パッケージを |
---|
| 88 | インストールする必要もあります. |
---|
| 89 | |
---|
| 90 | %prep |
---|
| 91 | %setup -q |
---|
| 92 | |
---|
| 93 | %build |
---|
| 94 | %configure --disable-static \ |
---|
| 95 | %if %{LIBWMF} |
---|
| 96 | --with-libwmf \ |
---|
| 97 | %endif |
---|
[1897] | 98 | |
---|
[521] | 99 | make %{?_smp_mflags} |
---|
| 100 | |
---|
| 101 | %install |
---|
| 102 | rm -rf $RPM_BUILD_ROOT |
---|
| 103 | %makeinstall |
---|
| 104 | |
---|
| 105 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
---|
| 106 | |
---|
| 107 | %clean |
---|
| 108 | rm -rf $RPM_BUILD_ROOT |
---|
| 109 | |
---|
| 110 | %post -p /sbin/ldconfig |
---|
| 111 | |
---|
| 112 | %postun -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | %files |
---|
| 115 | %defattr(-,root,root) |
---|
| 116 | %doc COPYING README |
---|
| 117 | %{_bindir}/wv[A-Z]* |
---|
| 118 | %{_libdir}/lib*.so.* |
---|
| 119 | %{_datadir}/wv |
---|
| 120 | %{_mandir}/man1/* |
---|
| 121 | |
---|
| 122 | %files devel |
---|
| 123 | %defattr(-,root,root) |
---|
| 124 | %{_includedir}/wv |
---|
| 125 | #{_libdir}/lib*.a |
---|
| 126 | %{_libdir}/lib*.so |
---|
| 127 | %{_libdir}/pkgconfig/*.pc |
---|
| 128 | |
---|
| 129 | %changelog |
---|
[8845] | 130 | * Sat Jul 19 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.2.9-1 |
---|
| 131 | - new upstream release |
---|
| 132 | - changed URL, Source0 tag |
---|
| 133 | |
---|
[1897] | 134 | * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-3 |
---|
| 135 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 136 | |
---|
[521] | 137 | * Tue May 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-2 |
---|
| 138 | - spec in UTF-8 |
---|
| 139 | - removed *.a file from devel package |
---|
| 140 | |
---|
| 141 | * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-1 |
---|
| 142 | - applied new versioning policy |
---|
| 143 | - removed *.la file from devel package |
---|
| 144 | - added %%post and %%postun for /sbin/ldconfig |
---|
| 145 | |
---|
| 146 | * Thu Dec 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl1 |
---|
| 147 | - new upstream release |
---|
| 148 | includes security fix CVE-2006-4513 <BTS:428> |
---|
| 149 | |
---|
| 150 | * Sat Jun 17 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.0-0vl4 |
---|
| 151 | - rebuild |
---|
| 152 | |
---|
| 153 | * Thu May 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl3 |
---|
| 154 | - added Requires: libwmf-devel to wv-devel |
---|
| 155 | |
---|
| 156 | * Tue Mar 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl2 |
---|
| 157 | - rebuilt with libgsf-1.14.0 |
---|
| 158 | |
---|
| 159 | * Thu Nov 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1 |
---|
| 160 | - new upstream release |
---|
| 161 | |
---|
| 162 | * Fri Feb 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl1 |
---|
| 163 | - updated to 1.0.3 |
---|
| 164 | - Patch1 was merged to upstream, dropped |
---|
| 165 | - added Japanese summary and description |
---|
| 166 | - added --with-expat to %configure |
---|
| 167 | - rewrite build option "--without libwmf" |
---|
| 168 | |
---|
| 169 | * Sat Sep 29 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl3 |
---|
| 170 | - correct wv.spec for CAN-2004-0645 |
---|
| 171 | |
---|
| 172 | * Sat Aug 28 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl2 |
---|
| 173 | - added patch1 for CAN-2004-0645 |
---|
| 174 | |
---|
| 175 | * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-0vl1 |
---|
| 176 | - update to 1.0.0 |
---|
| 177 | - rebuild with new toolchains |
---|
| 178 | - fixed spec file |
---|
| 179 | |
---|
| 180 | * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.7.2-0vl1 |
---|
| 181 | - update |
---|
| 182 | |
---|
| 183 | * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org> |
---|
| 184 | - 0.6.7-0vl1: was ported to VineSeedPlus with better macros |
---|
| 185 | - build with libwmf by default |
---|
| 186 | |
---|
| 187 | * Fri Jun 2 2001 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> |
---|
| 188 | - 0.6.5-0vl1 |
---|
| 189 | - subpackage devel |
---|
| 190 | - not to require libwmf by default |
---|
| 191 | - macro-usage change |
---|
| 192 | |
---|
| 193 | * Mon Dec 6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp> |
---|
| 194 | - [wv-0.5.41-1] |
---|
| 195 | - First attempt. |
---|