Summary: Web indexing and search system for a small domain or intranet
Name: mnogosearch
Version: 3.3.11
-Release: 1
+Release: 2
License: GPLv2+
Group: Applications/Internet
URL: http://www.mnogosearch.org/
-# md5sum 67f5437170c8eef89b393a640890c0cc
+# md5sum 906d5e1e21ba00024574f57548d32029
Source0: http://www.mnogosearch.org/Download/mnogosearch-%{version}.tar.gz
Source1: mnogosearch-reindex
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %{name}-libs = %{version}-%{release}
-Requires: catdoc
-Requires: xlhtml
+Requires: /usr/bin/catdoc
+Requires: /usr/bin/xlhtml
+Requires: /usr/bin/ppthtml
+Requires: /usr/bin/pdftotext
Requires(pre): shadow-utils
# user "apache" is added to mnogosearch group so we need the user to be present
sed -i 's|#Server http://localhost/|Server http://localhost/|g' \
%{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+# 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' \
+ %{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+
+sed -i 's|#Mime application/pdf text/plain "pdftotext $1 -"|Mime application/pdf text/plain "pdftotext $1 -"|g' \
+ %{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+
+sed -i 's|#Mime application/vnd.ms-excel text/html "xlhtml $1"|Mime application/vnd.ms-excel text/html "xlhtml $1"|g' \
+ %{buildroot}%{_sysconfdir}/mnogosearch/indexer.conf
+
+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
+
# the cgi is no regular binary, move it to libexec
install -d %{buildroot}%{_libexecdir}/mnogosearch
mv -f %{buildroot}%{_bindir}/*.cgi %{buildroot}%{_libexecdir}/mnogosearch/
%{php_extdir}
%changelog
+* Thu Jan 27 2011 Gerd v. Egidy <gerd@egidy.de> 3.3.11-2
+- last minute-changes in the 3.3.11 release
+- 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
+
* Thu Jan 27 2011 Gerd v. Egidy <gerd@egidy.de> 3.3.11-1
- mnogosearch 3.3.11
- unit testing with two databases