123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- %define vine4 1
- %define date 20030601
- %define buildweb 1
- %define beta b6
- %if %{vine4}
- %define contentdir /var/www
- %define apachebin %{_sbindir}/apache2
- %else
- %define contentdir /home/httpd
- %define apachebin %{_sbindir}/httpd
- %endif
- Summary: ht://Dig - Web search engine
- Name: htdig
- Version: 3.2.0
- #Release: 6.1vl1.%{beta}
- Release: 7.%{beta}%{?_dist_release}
- License: GPL
- Group: Applications/Internet
- Url: http://www.htdig.org/
- Source: http://www.htdig.org/files/%{name}-%{version}%{beta}.tar.bz2
- Source1: htdig.conf
- Patch0: htdig-3.1.5-rh.patch
- Patch1: htdig-3.2.0b3-glibc222.patch
- Patch2: htdig-3.2.0b4-xopen.patch
- Patch3: htdig-3.2.0b4-h_hash.patch
- Patch4: htdig-3.2.0b5-overflow.patch
- Patch5: htdig-3.2.0b5-expr.patch
- Patch6: htdig-3.2.0b5-destdir.patch
- Patch7: htdig-3.2.0b5-mktemp.patch
- # build for gcc4
- Patch100: htdig-3.2.0b6-gcc4.patch
- BuildRequires: flex >= 2.5.4a-13
- BuildRequires: zlib-devel
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- %package web
- Summary: Scripts and HTML code needed for using ht://Dig as a web search engine
- Group: Applications/Internet
- Requires: %{name} = %{version} 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}%{beta}
- %patch -p1 -b .rh
- %patch1 -p1 -b .glibc222
- %patch2 -p1 -b .xopen
- %patch3 -p1 -b .h_hash
- %patch4 -p1 -b .overflow
- #patch5 -p1 -b .expr
- #patch6 -p1 -b .destdir
- #patch7 -p1 -b .mktemp
- %patch100 -p1 -b .gcc4
- # Fix the flex output file for glibc 2.2 compatibility
- cd htcommon
- flex -oconf_lexer.cxx conf_lexer.lxx
- cd ..
- cd htlib
- # This is a *VERY* dirty hack, until I figure out what's
- # causing this to break...
- for i in *.cc; do
- mv $i $i.foo
- cat >$i <<EOF
- #include <stdio.h>
- #include <string.h>
- EOF
- cat $i.foo >>$i
- rm -f $i.foo
- done
- for i in clib.h; do
- mv $i $i.foo
- cat >$i <<EOF
- #include "htconfig.h"
- EOF
- cat $i.foo >>$i
- rm -f $i.foo
- done
- %build
- %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=%{apachebin} \
- --with-zlib=%{_prefix}
- make
- %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}
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(-,root,root)
- %doc htdoc/*
- %dir %{_sysconfdir}/htdig
- %config %{_sysconfdir}/htdig/htdig.conf
- %config %{_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/*
- %if %buildweb
- %files web
- %defattr(-,root,root)
- %{contentdir}/cgi-bin/*
- %config %{_sysconfdir}/httpd/conf.d/htdig.conf
- %dir %{_datadir}/htdig
- %{_datadir}/htdig/*
- %{_mandir}/man8/*
- %endif
- %changelog
- * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 3.2.0-7.b6vl5
- - applied new versioning policy
- * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.0-6.1vl1.b6
- - new upstream release
- - added Patch100 for building with gcc4
- * Thu Mar 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.2.0-6.1vl1.b5
- - rebuild for VineSeedPlus
- * Thu Mar 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.2.0-6.1vl0.b5
- - build for VinePlus/2.6
- - remove commented lines
- - change configure options for apache of Vine
- * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- - rebuilt
- * Thu Feb 26 2004 Phil Knirsch <pknirsch@redhat.com> 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 <sopwith@redhat.com>
- - rebuilt
- * Thu Jan 15 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-4
- - Fixed missing & in if clause.
- * Tue Jan 13 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-3
- - Fixed latin1 char translation (#71921).
- - Fixed overflow bug in WordDBPage.cc (#110802).
- * Mon Jan 12 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-2
- - Moved /usr/share/htdig files to web package (#111938).
- * Fri Dec 12 2003 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-1
- - Update to latest stable upstream version htdig-3.2.0b5.
- * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- - rebuilt
- * Wed Jun 04 2003 Phil Knirsch <pknirsch@redhat.com> 3.2.0-18.20030601
- - Update to htdig-3.2.0b4-20030601 snapshot.
- - Fixed build problems.
- * Thu Mar 06 2003 Phil Knirsch <pknirsch@redhat.com> 3.2.0-17.20030302
- - Update to htdig-3.2.0b4-20030302 snapshot.
- * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- - rebuilt
- * Wed Jan 8 2003 Jeff Johnson <jbj@redhat.com> 3.2.0-15.20021103
- - don't include -debuginfo files in package.
- * Tue Dec 17 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-14.20021103
- - Forgot to create conf.d directory. Fixed.
- - Fixed wrong files section.
- * Tue Dec 10 2002 Phil Knirsch <pknirsch@redhat.com> 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 <pknirsch@redhat.com> 3.2.0-12.20021103
- - Added webserver requirement for htdig-web package (#73986).
- * Wed Dec 04 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-11.20021103
- - Fix for autoFOO patch.
- - Fix x64_64 build.
- * Wed Nov 27 2002 Tim Powers <timp@redhat.com> 3.2.0-9.20021103
- - rebuild on all arches
- * Fri Nov 08 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-8.20021103
- - Updated to htdig-3.2.0b4-20021103.
- - Fixed %files section errors.
- * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 3.2.0-7.20020505
- - rebuilt with gcc-3.2 (we hope)
- * Tue Jul 23 2002 Tim Powers <timp@redhat.com> 3.2.0-6.20020505
- - build using gcc-3.2-0.1
- * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 3.2.0-5.20020505
- - automated rebuild
- * Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-4.20020505
- - Don't forcibly strip binaries
- * Thu May 23 2002 Tim Powers <timp@redhat.com>
- - automated rebuild
- * Mon May 6 2002 Bernhard Rosenkraenzer <bero@linux-easy.com> 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 <pknirsch@redhat.com>
- - Updated to latest snapshot to fix several problems.
- - Fixed a problem with htdig segfaulting on s390 (#58202).
- * Fri Jul 20 2001 Philipp Knirsch <pknirsch@redhat.de>
- - Added missing BuildRequires: zlib-devel (#49500)
- * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
- - Bump release + rebuild.
- * Fri Apr 27 2001 Bill Nottingham <notting@redhat.com>
- - rebuild for C++ exception handling on ia64
- * Wed Mar 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> 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 <bero@redhat.com>
- - Add htsearch to the base package, kdevelop needs it
- * Wed Jan 10 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- - Move the web related files to a separate package
- * Tue Oct 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - 3.2.0b2
- - fix build with glibc 2.2 and gcc 2.96
- * Sat Aug 19 2000 Nalin Dahyabhai <nalin@redhat.com>
- - fix syntax error introduced in our patch (#16598)
- * Tue Aug 1 2000 Tim Powers <timp@redhat.com>
- - fixed group to be a valid one
- * Mon Jul 24 2000 Prospector <prospector@redhat.com>
- - rebuilt
- * Wed Jul 19 2000 Nalin Dahyabhai <nalin@redhat.com>
- - rebuild for Power Tools
- * Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
- - rebuild for Power Tools
- * Sat Feb 26 2000 Nalin Dahyabhai <nalin@redhat.com>
- - 3.1.5
- * Wed Jan 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - 3.1.4
- - fix URL and source location
- * Tue Sep 28 1999 Preston Brown <pbrown@redhat.com>
- - 3.1.3 for SWS 3.1
- * Wed May 05 1999 Preston Brown <pbrown@redhat.com>
- - updates for SWS 3.0
- * Mon Aug 31 1998 Preston Brown <pbrown@redhat.com>
- - Updates for SWS 2.0
- * Sat Feb 07 1998 Cristian Gafton <gafton@redhat.com>
- - 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
|