123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- %bcond_without libwmf
- Summary: an MS-Word document converter
- Summary(ja): MS Word 文章コンバータ
- Name: wv
- Version: 1.2.9
- Release: 2%{?_dist_release}
- Group: publishing
- License: GPLv2
- URL: http://www.abisource.com/
- Source0: http://www.abisource.com/downloads/wv/%{version}/wv-%{version}.tar.gz
- Patch1: wv-aarch64.patch
- Patch2: format-security.patch
- Buildroot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: zlib-devel
- BuildRequires: glib2-devel
- BuildRequires: libgsf-devel
- BuildRequires: libpng-devel
- BuildRequires: libxml2-devel
- BuildRequires: libjpeg-devel
- %if %{with libwmf}
- BuildRequires: libwmf-devel >= 0.2.6
- Requires: libwmf >= 0.2.6
- %endif
- %description
- wv is an MS-Word document converter.
- If you want to get EUC-JP html files, see the example below.
- wvHtml foobar.doc foobar.html.utf8
- iconv -f UTF-8 -t EUC-JP foobar.html.utf8 | \
- sed 's/UTF-8/EUC-JP/g' > foobar.html.euc
- %if %{with libwmf}
- This package is configured to use libwmf, so it can convert wmf files
- into png. Please install libwmf-0.2.0 or higher too.
- %else
- This package is configured not to use libwmf, so it can't convert
- wmf files into png.
- %endif
- %description -l ja
- wv は MS Word ドキュメントのコンバータです.EUC-JP エンコードの
- html ファイルを作成したいのであれば,次の例を参考にしてください.
- wvHtml foobar.doc foobar.html.utf8
- iconv -f UTF-8 -t EUC-JP foobar.html.utf8 | \
- sed 's/UTF-8/EUC-JP/g' > foobar.html.euc
- %if %{with libwmf}
- このパッケージは libwmf を使用するように設定されているので,wmf
- ファイルを png に変換することができます.libwmf のバージョン 0.2.0 以上
- をあわせてインストールしてください.
- %else
- このパッケージは libwmf を使用しないように設定されているので,
- wmf ファイルを png に変換することはできません.
- %endif
- %package devel
- Summary: Development tools for programs to manipulate MS-Word documents
- Summary(ja): MS Word ドキュメントを処理するプログラムを開発するためのツール
- Group: programming
- Requires: wv = %{version}
- Requires: zlib-devel
- Requires: glib2-devel
- Requires: libgsf-devel
- Requires: libpng-devel
- Requires: libxml2-devel
- Requires: libjpeg-devel
- %if %{with libwmf}
- Requires: libwmf-devel >= 0.2.6
- %endif
- %description devel
- The wv-devel package contains the header files and static
- libraries necessary for developing programs using wv.
- If you want to develop programs which will manipulate MS-Word documents, you
- should install wv-devel. You'll also need to install the wv package.
- %description devel -l ja
- wv-devel パッケージには wv を使用したプログラムの開発に必要な
- ヘッダファイルおよび静的ライブラリが含まれています.
- MS Word ドキュメントを処理するプログラムを開発したいのであれば,
- wv-devel パッケージをインストールすべきです.wv パッケージを
- インストールする必要もあります.
- %debug_package
- %prep
- %setup -q
- %patch1 -p1
- %patch2 -p1
- %build
- %configure --disable-static \
- %if %{with libwmf}
- --with-libwmf \
- %endif
- %{nil}
- make %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- %makeinstall
- find $RPM_BUILD_ROOT%{_libdir} -name "*.la" -exec rm -f {} \;
- %clean
- rm -rf $RPM_BUILD_ROOT
- %ldconfig_scriptlets
- %files
- %defattr(-,root,root)
- %doc COPYING README
- %{_bindir}/wv[A-Z]*
- %{_libdir}/lib*.so.*
- %{_datadir}/wv
- %{_mandir}/man1/*
- %files devel
- %defattr(-,root,root)
- %{_includedir}/wv
- #{_libdir}/lib*.a
- %{_libdir}/lib*.so
- %{_libdir}/pkgconfig/*.pc
- %changelog
- * Mon Mar 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-2
- - imported Patch1-2 from rawhide.
- * Sat Jul 19 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.2.9-1
- - new upstream release
- - changed URL, Source0 tag
- * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-3
- - rebuild with rpm-4.8.1 for pkg-config file
- * Tue May 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-2
- - spec in UTF-8
- - removed *.a file from devel package
- * Thu May 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-1
- - applied new versioning policy
- - removed *.la file from devel package
- - added %%post and %%postun for /sbin/ldconfig
- * Thu Dec 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl1
- - new upstream release
- includes security fix CVE-2006-4513 <BTS:428>
- * Sat Jun 17 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.0-0vl4
- - rebuild
- * Fri May 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl3
- - added Requires: libwmf-devel to wv-devel
- * Tue Mar 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl2
- - rebuilt with libgsf-1.14.0
- * Thu Nov 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
- - new upstream release
- * Fri Feb 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl1
- - updated to 1.0.3
- - Patch1 was merged to upstream, dropped
- - added Japanese summary and description
- - added --with-expat to %configure
- - rewrite build option "--without libwmf"
- * Wed Sep 29 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl3
- - correct wv.spec for CAN-2004-0645
- * Sat Aug 28 2004 SATO Masakiyo <info@pocomoco.net> 1.0.0-0vl2
- - added patch1 for CAN-2004-0645
- * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-0vl1
- - update to 1.0.0
- - rebuild with new toolchains
- - fixed spec file
- * Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.7.2-0vl1
- - update
- * Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
- - 0.6.7-0vl1: was ported to VineSeedPlus with better macros
- - build with libwmf by default
- * Sat Jun 2 2001 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
- - 0.6.5-0vl1
- - subpackage devel
- - not to require libwmf by default
- - macro-usage change
- * Mon Dec 6 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
- - [wv-0.5.41-1]
- - First attempt.
|