# # Conditional build: %bcond_without static_libs # without static version Summary: MSWord Document to HTML converter Summary(pl.UTF-8): Konwerter dokumentów MS Worda do HTML Summary(pt_BR.UTF-8): Conversor de arquivos formato Word (6/7/8/9) para html Name: wv Version: 1.2.9 Release: 1 License: GPL v2+ Group: Applications/Text Source0: http://www.abisource.com/downloads/wv/%{version}/%{name}-%{version}.tar.gz # Source0-md5: dbccf2e9f747e50c913b7e3d126b73f7 Patch0: %{name}-format.patch URL: http://wvware.sourceforge.net/ BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: glib2-devel >= 1:2.12.2 BuildRequires: libgsf-devel >= 1.14.1 BuildRequires: libpng-devel >= 1.2.12 BuildRequires: libtool BuildRequires: libwmf-devel >= 2:0.2.8.4 BuildRequires: libxml2-devel >= 1:2.6.26 BuildRequires: pkgconfig BuildRequires: zlib-devel # these are required for full libwmf BuildRequires: freetype-devel >= 2.0 BuildRequires: libjpeg-devel BuildRequires: xorg-lib-libX11-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.UTF-8 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.UTF-8 Conversor de arquivos formato Word (6/7/8/9) para html. %package devel Summary: Include files needed to compile Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki wv Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: glib2-devel >= 1:2.12.2 Requires: libgsf-devel >= 1.14.1 Requires: libpng-devel >= 1.2.12 Requires: libwmf-devel >= 2:0.2.8.4 Requires: libxml2-devel >= 1:2.6.26 # these are required for full libwmf Requires: freetype-devel >= 2.0 Requires: libjpeg-devel Requires: xorg-lib-libX11-devel %description devel Contains the header files. %description devel -l pl.UTF-8 Pakiet tem zawiera pliki nagłówkowe wv. %package static Summary: Static wv libraries Summary(pl.UTF-8): Biblioteki statyczne wv Summary(pt_BR.UTF-8): 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.UTF-8 Pakiet zawiera statyczne biblioteki wv. %prep %setup -q %patch0 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{!?with_static_libs:--disable-static} \ --with-zlib \ --with-png \ --with-libwmf %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # obsoleted by pkg-config %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwv.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc README %attr(755,root,root) %{_bindir}/wvAbw %attr(755,root,root) %{_bindir}/wvCleanLatex %attr(755,root,root) %{_bindir}/wvConvert %attr(755,root,root) %{_bindir}/wvDVI %attr(755,root,root) %{_bindir}/wvDocBook %attr(755,root,root) %{_bindir}/wvHtml %attr(755,root,root) %{_bindir}/wvLatex %attr(755,root,root) %{_bindir}/wvMime %attr(755,root,root) %{_bindir}/wvPDF %attr(755,root,root) %{_bindir}/wvPS %attr(755,root,root) %{_bindir}/wvRTF %attr(755,root,root) %{_bindir}/wvSummary %attr(755,root,root) %{_bindir}/wvText %attr(755,root,root) %{_bindir}/wvVersion %attr(755,root,root) %{_bindir}/wvWare %attr(755,root,root) %{_bindir}/wvWml %attr(755,root,root) %{_libdir}/libwv-1.2.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libwv-1.2.so.4 %{_datadir}/wv %{_mandir}/man1/wvAbw.1* %{_mandir}/man1/wvCleanLatex.1* %{_mandir}/man1/wvDVI.1* %{_mandir}/man1/wvHtml.1* %{_mandir}/man1/wvLatex.1* %{_mandir}/man1/wvMime.1* %{_mandir}/man1/wvPDF.1* %{_mandir}/man1/wvPS.1* %{_mandir}/man1/wvRTF.1* %{_mandir}/man1/wvSummary.1* %{_mandir}/man1/wvText.1* %{_mandir}/man1/wvVersion.1* %{_mandir}/man1/wvWare.1* %{_mandir}/man1/wvWml.1* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libwv.so %{_includedir}/wv %{_pkgconfigdir}/wv-1.0.pc %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libwv.a %endif