# # Conditional build: %bcond_without static_libs # without static version # Summary: MSWord Document to HTML converter Summary(pl): Konwerter dokumentów MS Worda do HTML Summary(pt_BR): Conversor de arquivos formato Word (6/7/8/9) para html Name: wv Version: 1.0.3 Release: 4 License: GPL Group: Applications/Text Source0: http://dl.sourceforge.net/wvware/%{name}-%{version}.tar.gz # Source0-md5: 71e42aa9af1e03cc8c608bbbdcb43af8 Patch0: %{name}-magick.patch Patch1: %{name}-fixes.patch URL: http://wvware.sourceforge.net/ BuildRequires: ImageMagick-devel >= 1:5.5.2.5 BuildRequires: XFree86-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: expat-devel BuildRequires: glib2-devel >= 2.0 BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: libwmf-devel >= 2:0.2.2 BuildRequires: pkgconfig BuildRequires: zlib-devel Obsoletes: mswordview BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define specflags_ia32 -fomit-frame-pointer %description MSWordView is a program that understands the Microsoft Word 8 binary file format (Office97, Office2000) and is able to convert Word documents into HTML, which can then be read with a browser. wv is a suite of programs to help convert Word Documents to HTML. %description -l pl MSWordView jest programem, który rozumie binarne dokumenty programu Microsoft Word 8 (Office97, Office2000) i jest w stanie skonwertować je do dokumentu HTML, który może być przeczytany w przeglądarce WWW. wv jest elementem programów, które pomagają przekonwertować dokumenty Worda do HTML. %description -l pt_BR Conversor de arquivos formato Word (6/7/8/9) para html. %package devel Summary: Include files needed to compile Summary(pl): Pliki nagłówkowe do biblioteki wv Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: ImageMagick-devel >= 1:5.5.2.5 Requires: glib2-devel >= 2.0 Requires: libwmf-devel >= 2:0.2.2 %description devel Contains the header files. %description devel -l pl Pakiet tem zawiera pliki nagłówkowe wv. %package static Summary: Static wv libraries Summary(pl): Biblioteki statyczne wv Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com o wv Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Contains static wv libraries. %description static -l pl Pakiet zawiera statyczne biblioteki wv. %prep %setup -q %patch0 -p1 %patch1 -p1 %build rm -f acinclude.m4 %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} -i %configure \ --with-exporter \ --with-zlib \ --with-png \ --with-Magick \ --with-expat \ --with-glib=glib2 \ --with-libwmf \ --%{!?with_static_libs:dis}%{?with_static_libs:en}able-static mv -f magick magick-wv %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ mandir=%{_mandir} %clean rm -fr $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc README %attr(755,root,root) %{_bindir}/wv* %attr(755,root,root) %{_libdir}/lib*.so.*.* %{_datadir}/wv %{_mandir}/man*/* %files devel %defattr(644,root,root,755) %{_pkgconfigdir}/* %{_libdir}/lib*.la %attr(755,root,root) %{_libdir}/lib*.so %{_includedir}/* %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libwv.a %endif