BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %{name}-libs = %{version}-%{release}
-Requires: /usr/bin/catdoc
+Requires: /usr/bin/wvHtml
Requires: /usr/bin/xlhtml
Requires: /usr/bin/ppthtml
Requires: /usr/bin/pdftotext
# enable common external document helpers by default
# we require them so they will be installed
-sed -i 's|#Mime application/msword "text/plain; charset=utf-8" "catdoc -a -dutf-8 $1"|Mime application/msword "text/plain; charset=utf-8" "catdoc -a -dutf-8 $1"|g' \
+sed -i 's|#Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -"|Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -"|g' \
%{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
sed -i 's|#Mime application/pdf text/plain "pdftotext $1 -"|Mime application/pdf text/plain "pdftotext $1 -"|g' \
sed -i 's|#Mime application/vnd.ms-powerpoint text/html "ppthtml $1"|Mime application/vnd.ms-powerpoint text/html "ppthtml $1"|g' \
%{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+sed -i 's|Disallow \*.tex \*.texi \*.xls \*.doc \*.texinfo|Disallow *.tex *.texi *.texinfo|g' \
+ %{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+
+sed -i 's|Disallow \*.rtf \*.pdf \*.cdf \*.ps|Disallow *.rtf *.cdf *.ps|g' \
+ %{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+
+sed -i 's|Disallow \*.ai \*.eps \*.ppt \*.hqx|Disallow *.ai *.eps *.hqx|g' \
+ %{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+
# the cgi is no regular binary, move it to libexec
install -d %{buildroot}%{_libexecdir}/mnogosearch
mv -f %{buildroot}%{_bindir}/*.cgi %{buildroot}%{_libexecdir}/mnogosearch/
- enable some external document helpers by default:
we always have them because of requires
- require the binaries of the helpers used, not the package names
+- use wvHtml instead of catdoc by default: it retains formatting
+- don't disable the file types we now have helpers for
* Thu Jan 27 2011 Gerd v. Egidy <gerd@egidy.de> 3.3.11-1
- mnogosearch 3.3.11