X-Git-Url: http://developer.intra2net.com/git/?p=mnogosearch-rpm;a=blobdiff_plain;f=mnogosearch.spec;fp=mnogosearch.spec;h=65363eb67a13a5c30d4d72d09197249be806fde6;hp=9a9eda60d14b34b08f5508154efab408c691760b;hb=ba649e5505bbbafad62093e44849e871261b2aff;hpb=8a1c710ed9c620d7c823be4db45c226cbcc15ae4 diff --git a/mnogosearch.spec b/mnogosearch.spec index 9a9eda6..65363eb 100644 --- a/mnogosearch.spec +++ b/mnogosearch.spec @@ -11,12 +11,12 @@ 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 @@ -26,8 +26,10 @@ Source3: httpd.conf 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 @@ -168,6 +170,21 @@ sed -i 's|#LocalCharset UTF-8|LocalCharset UTF-8|g' \ 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/ @@ -310,6 +327,12 @@ service httpd condrestart > /dev/null 2>&1 || : %{php_extdir} %changelog +* Thu Jan 27 2011 Gerd v. Egidy 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 3.3.11-1 - mnogosearch 3.3.11 - unit testing with two databases