%define contentdir /var/www %define buildweb 1 Summary: ht://Dig - Web search engine Name: htdig Version: 3.2.0 Release: 0.13.b6%{?dist} Epoch: 4 License: GPLv2 Group: Applications/Internet Url: http://www.htdig.org/ Prefix: %{_prefix} Source: http://www.htdig.org/files/%{name}-%{version}b6.tar.bz2 Source1: htdig.conf Patch: htdig-3.1.5-rh.patch Patch2: htdig-3.2.0b4-xopen.patch Patch4: htdig-3.2.0b5-overflow.patch Patch5: htdig-3.2.0b6-robots.patch Patch6: htdig-3.2.0b6-unescaped_output.patch Patch8: htdig-3.2.0b6-compile-fix.patch Patch9: htdig-3.2.0b6-opts.patch Patch11: htdig-3.2.0b6-incremental.patch Patch12: htdig-3.2-CVE-2007-6110.patch Patch13: htdig-3.2.0b6-htstat-segv.patch Patch14: htdig-3.2.0-external_parsers.patch Patch15: htdig-3.2.0-allow_numbers.patch BuildRequires: flex >= 2.5.4a-13 BuildRequires: zlib-devel openssl-devel httpd autoconf automake libtool BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %package web Summary: Scripts and HTML code needed for using ht://Dig as a web search engine Group: Applications/Internet Requires: %{name} = %{epoch}:%{version}-%{release} webserver %description The ht://Dig system is a complete world wide web indexing and searching system for a small domain or intranet. This system is not meant to replace the need for powerful internet-wide search systems like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to cover the search needs for a single company, campus, or even a particular sub section of a web site. As opposed to some WAIS-based or web-server based search engines, ht://Dig can span several web servers at a site. The type of these different web servers doesn't matter as long as they understand the HTTP 1.0 protocol. ht://Dig is also used by KDE to search KDE's HTML documentation. ht://Dig was developed at San Diego State University as a way to search the various web servers on the campus network. %description web The ht://Dig system is a complete world wide web indexing and searching system for a small domain or intranet. This system is not meant to replace the need for powerful internet-wide search systems like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to cover the search needs for a single company, campus, or even a particular sub section of a web site. As opposed to some WAIS-based or web-server based search engines, ht://Dig can span several web servers at a site. The type of these different web servers doesn't matter as long as they understand the HTTP 1.0 protocol. The %{name}-web package includes CGI scripts and HTML code needed to use ht://Dig on a website. ht://Dig was developed at San Diego State University as a way to search the various web servers on the campus network. %prep %setup -q -n %{name}-%{version}b6 %patch -p1 -b .rh %patch2 -p1 -b .xopen %patch4 -p1 -b .overflow %patch5 -p1 -b .robots %patch6 -p1 -b .unescaped_output %patch8 -p1 -b .compile-fix %patch9 -p1 -b .opts %patch11 -p1 -b .incremental %patch12 -p1 -b .CVE-2007-6110 %patch13 -p1 -b .htstat-segv %patch14 -p1 -b .external_parsers %patch15 -p1 -b .allow_numbers %build autoreconf -fiv export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" %configure \ --enable-shared \ --enable-tests \ --enable-bigfile \ --with-config-dir=%{_sysconfdir}/htdig \ --with-common-dir=%{contentdir}/html/htdig \ --with-database-dir=/var/lib/htdig \ --localstatedir=/var/lib/htdig \ --with-cgi-bin-dir=%{contentdir}/cgi-bin \ --with-image-dir=%{contentdir}/html/htdig \ --with-search-dir=%{contentdir}/html/htdig \ --with-default-config-file=%{_sysconfdir}/htdig/htdig.conf \ --with-apache=/usr/sbin/httpd \ --with-zlib=/usr \ --with-ssl make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT ln $RPM_BUILD_ROOT%{contentdir}/cgi-bin/htsearch $RPM_BUILD_ROOT%{_bindir} chmod 644 $RPM_BUILD_ROOT%{contentdir}/html/htdig/* ln -sf search.html $RPM_BUILD_ROOT%{contentdir}/html/htdig/index.html # now get rid of the $RPM_BUILD_ROOT paths in the conf files for i in %{_sysconfdir}/htdig/htdig.conf /usr/bin/rundig ; do perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT/$i done mkdir -p $RPM_BUILD_ROOT%{prefix}/share mv $RPM_BUILD_ROOT%{contentdir}/html/htdig $RPM_BUILD_ROOT%{prefix}/share mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d/ install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/htdig.conf rm -rf $RPM_BUILD_ROOT%{_includedir} rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig/*.a rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig/*.la rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig_db/*.a rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig_db/*.la %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc htdoc/*html htdoc/*gif htdoc/COPYING htdoc/ChangeLog %dir %{_sysconfdir}/htdig %config(noreplace) %{_sysconfdir}/htdig/htdig.conf %config(noreplace) %{_sysconfdir}/htdig/cookies.txt %{_sysconfdir}/htdig/HtFileType-magic.mime %{_sysconfdir}/htdig/mime.types %dir /var/lib/htdig %{_bindir}/* %{_libdir}/htdig %{_libdir}/htdig_db %{_mandir}/man1/* %{_mandir}/man8/* %if %buildweb %files web %defattr(-,root,root) %{contentdir}/cgi-bin/* %config(noreplace) %{_sysconfdir}/httpd/conf.d/htdig.conf %dir %{_datadir}/htdig %{_datadir}/htdig/* %endif %changelog * Tue Feb 28 2012 Fedora Release Engineering - 4:3.2.0-0.13.b6 - Rebuilt for c++ ABI breakage * Fri Jan 13 2012 Fedora Release Engineering - 4:3.2.0-0.12.b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 4:3.2.0-0.11.b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon May 31 2010 Adam Tkac - 4:3.2.0-0.10.b6 - build with -fno-strict-aliasing to get rid of useless error messages * Mon Nov 30 2009 Adam Tkac - 4:3.2.0-0.9.b6 - merge review related fixes (#225889) * Fri Aug 21 2009 Tomas Mraz - 4:3.2.0-0.8.b6 - rebuilt with new openssl * Fri Jul 24 2009 Fedora Release Engineering - 4:3.2.0-0.7.b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 4:3.2.0-0.6.b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 12 2009 Adam Tkac 4:3.2.0-0.5.b6 - removed unneeded htdig-3.2.0b-versioncheck.patch * Fri Jan 16 2009 Tomas Mraz 4:3.2.0-0.4.b6 - rebuild with new openssl * Tue Jul 29 2008 Adam Tkac 4:3.2.0-0.3.b6 - removed unneded patches - htdig-3.2.0b3-glibc222.patch and htdig-3.2.0b4-h_hash.patch * Mon Jul 28 2008 Adam Tkac 4:3.2.0-0.2.b6 - mark configuration files as noreplace * Wed Apr 23 2008 Adam Tkac 4:3.2.0-0.1.b6 - report proper error message when external parser fails (#435741) - ignore numbers when using allow_numbers: true and soundex (#435743) - correct N-V-R * Mon Feb 18 2008 Fedora Release Engineering - 3:3.2.0b6-16 - Autorebuild for GCC 4.3 * Wed Jan 30 2008 Adam Tkac 3:3.2.0b6-15 - fixed htstat sigsegv when number of words is zero * Wed Dec 05 2007 Adam Tkac 3:3.2.0b6-14 - rebuild against new openssl * Wed Nov 28 2007 Adam Tkac 3:3.2.0b6-13 - CVE-2007-6110 * Wed Aug 22 2007 Adam Tkac 3:3.2.0b6-12 - rebuild (BuildID feature) - changed licence to GPLv2 * Wed Mar 07 2007 Adam Tkac 3:3.2.0b6-11 - added upstream's segfault patch - added ?_smp_mflags macro to make * Thu Feb 01 2007 Adam Tkac 3:3.2.0b6-10 - removed sigfault patch because it isn't stable yet - changed common_dir in htdig.conf to /var/www/html/htdig (#220390) * Tue Jan 09 2007 Adam Tkac 3:3.2.0b6-9 - added +i option to rundig script. This option enables incremental digging * Wed Dec 20 2006 Adam Tkac 3:3.2.0b6-8 - fixed htfuzzy's sigfaults (#130528) * Mon Dec 18 2006 Adam Tkac 3:3.2.0b6-7 - really fixed #130528 - started using dist macro * Tue Aug 8 2006 Jitka Kudrnacova - 3:3.2.0b6-6.4.3 - built with --with-ssl (#174162) to enable indexing ssl pages, BuildRequires openssl-devel * Wed Jul 12 2006 Jesse Keating - 3:3.2.0b6-6.4.2.2.1 - rebuild * Fri Feb 24 2006 Jitka Kudrnacova - 3:3.2.0b6-6.4.2.2 - rebuilt * Fri Feb 10 2006 Jesse Keating - 3:3.2.0b6-6.4.2.1 - bump again for double-long bug on ppc(64) * Thu Feb 09 2006 Jitka Kudrnacova - 3:3.2.0b6-6.4.2 - fixed building in rawhide (#176894) * Tue Feb 07 2006 Jesse Keating - 3:3.2.0b6-6.4.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt - patched to not fail on apache version 2.x * Mon Sep 05 2005 Phil Knirsch 3:3.2.0b6-6 - Fixed missing $opts in rundig command (#130528) * Wed Mar 02 2005 Phil Knirsch 3:3.2.0b6-5 - bump release and rebuild with gcc 4 * Tue Jan 25 2005 Phil Knirsch 3:3.2.0b6-4 - Fixed security bug with unescaped output in htsearch and qtest (#144127) - Removed .la and .a libs from package (#145649) * Wed Aug 04 2004 Phil Knirsch 3:3.2.0b6-3 - Corrected the htdig-web requires line. * Tue Aug 03 2004 Phil Knirsch 3:3.2.0b6-2 - Added Epoch to allow updates from older releases to this version. * Tue Jul 06 2004 Phil Knirsch 3.2.0b6-1 - Update to htdig-3.2.0b6 - Removed obsolete patches (already included upstream). - Added manpages to basic package. - Added missing httpd BuildPreReq (#125037) - Added fix for broken behaviour with robots.txt (#126482) * Tue Jun 15 2004 Elliot Lee - rebuilt * Mon Mar 29 2004 Karsten Hopp 3.2.0b5-7 - really fix buildroot path in HtFileType-magic.mime (#116442) * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 26 2004 Phil Knirsch 3.2.0b5-6 - Removed buildroot cruft from HtFileFype (#116442). - Use mktemp in HtFileFype to create temporary file (#116443). * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Jan 15 2004 Phil Knirsch 3.2.0b5-4 - Fixed missing & in if clause. * Tue Jan 13 2004 Phil Knirsch 3.2.0b5-3 - Fixed latin1 char translation (#71921). - Fixed overflow bug in WordDBPage.cc (#110802). * Mon Jan 12 2004 Phil Knirsch 3.2.0b5-2 - Moved /usr/share/htdig files to web package (#111938). * Fri Dec 12 2003 Phil Knirsch 3.2.0b5-1 - Update to latest stable upstream version htdig-3.2.0b5. * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Jun 04 2003 Phil Knirsch 3.2.0-18.20030601 - Update to htdig-3.2.0b4-20030601 snapshot. - Fixed build problems. * Thu Mar 06 2003 Phil Knirsch 3.2.0-17.20030302 - Update to htdig-3.2.0b4-20030302 snapshot. * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Jan 8 2003 Jeff Johnson 3.2.0-15.20021103 - don't include -debuginfo files in package. * Tue Dec 17 2002 Phil Knirsch 3.2.0-14.20021103 - Forgot to create conf.d directory. Fixed. - Fixed wrong files section. * Tue Dec 10 2002 Phil Knirsch 3.2.0-13.20021103 - Removed symlink from %%{contentdir}/html and replaced it with httpd.d conf file (#73518). * Tue Dec 10 2002 Phil Knirsch 3.2.0-12.20021103 - Added webserver requirement for htdig-web package (#73986). * Wed Dec 04 2002 Phil Knirsch 3.2.0-11.20021103 - Fix for autoFOO patch. - Fix x64_64 build. * Wed Nov 27 2002 Tim Powers 3.2.0-9.20021103 - rebuild on all arches * Fri Nov 08 2002 Phil Knirsch 3.2.0-8.20021103 - Updated to htdig-3.2.0b4-20021103. - Fixed %%files section errors. * Sat Aug 10 2002 Elliot Lee 3.2.0-7.20020505 - rebuilt with gcc-3.2 (we hope) * Tue Jul 23 2002 Tim Powers 3.2.0-6.20020505 - build using gcc-3.2-0.1 * Fri Jun 21 2002 Tim Powers 3.2.0-5.20020505 - automated rebuild * Wed Jun 19 2002 Phil Knirsch 3.2.0-4.20020505 - Don't forcibly strip binaries * Thu May 23 2002 Tim Powers - automated rebuild * Mon May 6 2002 Bernhard Rosenkraenzer 3.2.0-2.20020505 - Fix build with current toolchain (automake 1.6, autoconf 2.53 changes) - Update snapshot, fixes some more problems * Thu Jan 24 2002 Phil Knirsch - Updated to latest snapshot to fix several problems. - Fixed a problem with htdig segfaulting on s390 (#58202). * Fri Jul 20 2001 Philipp Knirsch - Added missing BuildRequires: zlib-devel (#49500) * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Fri Apr 27 2001 Bill Nottingham - rebuild for C++ exception handling on ia64 * Wed Mar 21 2001 Bernhard Rosenkraenzer 3.2.0-0.b3.4 - move pictures etc. to base package and to a directory outside of /var/www - The current KDevelop search function doesn't work without them. * Mon Mar 5 2001 Bernhard Rosenkraenzer - Add htsearch to the base package, kdevelop needs it * Wed Jan 10 2001 Bernhard Rosenkraenzer - Move the web related files to a separate package * Tue Oct 3 2000 Bernhard Rosenkraenzer - 3.2.0b2 - fix build with glibc 2.2 and gcc 2.96 * Sat Aug 19 2000 Nalin Dahyabhai - fix syntax error introduced in our patch (#16598) * Tue Aug 1 2000 Tim Powers - fixed group to be a valid one * Mon Jul 24 2000 Prospector - rebuilt * Wed Jul 19 2000 Nalin Dahyabhai - rebuild for Power Tools * Thu Jun 29 2000 Nalin Dahyabhai - rebuild for Power Tools * Sat Feb 26 2000 Nalin Dahyabhai - 3.1.5 * Wed Jan 12 2000 Bernhard Rosenkraenzer - 3.1.4 - fix URL and source location * Tue Sep 28 1999 Preston Brown - 3.1.3 for SWS 3.1 * Wed May 05 1999 Preston Brown - updates for SWS 3.0 * Mon Aug 31 1998 Preston Brown - Updates for SWS 2.0 * Sat Feb 07 1998 Cristian Gafton - built against glibc - build all the fuzzy databases before packaging, because it is time consuming operation and we don't want the user to be impatient