Summary: Web indexing and search system for a small domain or intranet
Name: mnogosearch
Version: 3.3.11
-Release: 3
+Release: 5%{?dist}
License: GPLv2+
Group: Applications/Internet
URL: http://www.mnogosearch.org/
Requires: %{name}-libs = %{version}-%{release}
Requires: /usr/bin/wvHtml
+Requires: /usr/bin/pdftohtml
+
+%if !0%{?rhel}
+# these are currently not available on RHEL/EPEL
Requires: /usr/bin/xlhtml
Requires: /usr/bin/ppthtml
-Requires: /usr/bin/pdftotext
Requires: /usr/bin/unrtf
+%endif
+
Requires(pre): shadow-utils
# user "apache" is added to mnogosearch group so we need the user to be present
BuildRequires: freetds-devel
BuildRequires: firebird-devel
BuildRequires: catdoc
+
+%if !0%{?rhel}
BuildRequires: xlhtml
+%endif
# build is done with unit testing by default, but it can be disabled
# by --without tests to save time
--with-readline \
--with-extra-charsets=all \
--with-mysql \
+%if !0%{?rhel}
--enable-mysql-fulltext-plugin \
+%endif
--with-pgsql \
--with-sqlite3 \
--with-unixODBC \
done
)
+%if 0%{?rhel}
+# comment out the converters not available on RHEL/EPEL
+sed -i 's|^\(.*xlhtml.*\)$|#\1|g' %{buildroot}%{_sysconfdir}/%{name}/indexer.conf
+sed -i 's|^\(.*ppthtml.*\)$|#\1|g' %{buildroot}%{_sysconfdir}/%{name}/indexer.conf
+sed -i 's|^\(.*unrtf.*\)$|#\1|g' %{buildroot}%{_sysconfdir}/%{name}/indexer.conf
+%endif
+
# 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
+* Mon Feb 1 2011 Gerd v. Egidy <gerd@egidy.de> 3.3.11-5
+- add dist-tag to the release
+- add conditionals to allow building on RHEL 5 too
+
+* Mon Feb 1 2011 Gerd v. Egidy <gerd@egidy.de> 3.3.11-4
+- don't use stopwords by default anymore
+- switch from pdftotext to pdftohtml
+- explicit charset not needed for all converters
+
* Mon Jan 31 2011 Gerd v. Egidy <gerd@egidy.de> 3.3.11-3
- include upstream-patch to make adapting the config more easy
- add unrtf to default config and requires