| 1 | %define buildweb 1 |
|---|
| 2 | %define beta b6 |
|---|
| 3 | |
|---|
| 4 | %define contentdir /var/www |
|---|
| 5 | %define apachebin %{_sbindir}/apache2 |
|---|
| 6 | |
|---|
| 7 | Name: htdig |
|---|
| 8 | Summary: ht://Dig - Web search engine |
|---|
| 9 | Summary(ja): ht://Dig Web 検索エンジン |
|---|
| 10 | Version: 3.2.0 |
|---|
| 11 | Release: 9.%{beta}%{?_dist_release} |
|---|
| 12 | |
|---|
| 13 | License: GPLv2 |
|---|
| 14 | Group: Applications/Internet |
|---|
| 15 | URL: http://www.htdig.org/ |
|---|
| 16 | |
|---|
| 17 | Source: http://www.htdig.org/files/%{name}-%{version}%{beta}.tar.bz2 |
|---|
| 18 | Source1: htdig.conf |
|---|
| 19 | Patch1: htdig-3.1.5-rh.patch |
|---|
| 20 | Patch2: htdig-3.2.0b4-xopen.patch |
|---|
| 21 | Patch4: htdig-3.2.0b5-overflow.patch |
|---|
| 22 | Patch5: htdig-3.2.0b6-robots.patch |
|---|
| 23 | Patch6: htdig-3.2.0b6-unescaped_output.patch |
|---|
| 24 | Patch8: htdig-3.2.0b6-compile-fix.patch |
|---|
| 25 | Patch9: htdig-3.2.0b6-opts.patch |
|---|
| 26 | Patch11: htdig-3.2.0b6-incremental.patch |
|---|
| 27 | Patch12: htdig-3.2-CVE-2007-6110.patch |
|---|
| 28 | Patch13: htdig-3.2.0b6-htstat-segv.patch |
|---|
| 29 | Patch14: htdig-3.2.0-external_parsers.patch |
|---|
| 30 | Patch15: htdig-3.2.0-allow_numbers.patch |
|---|
| 31 | |
|---|
| 32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 33 | BuildRequires: flex >= 2.5.4a-13 |
|---|
| 34 | BuildRequires: zlib-devel |
|---|
| 35 | BuildRequires: openssl-devel |
|---|
| 36 | BuildRequires: apache2 |
|---|
| 37 | BuildRequires: autoconf automake libtool |
|---|
| 38 | |
|---|
| 39 | Vendor: Project Vine |
|---|
| 40 | Distribution: Vine Linux |
|---|
| 41 | |
|---|
| 42 | %package web |
|---|
| 43 | Summary: Scripts and HTML code needed for using ht://Dig as a web search engine |
|---|
| 44 | Group: Applications/Internet |
|---|
| 45 | Requires: %{name} = %{version} |
|---|
| 46 | Requires: webserver |
|---|
| 47 | |
|---|
| 48 | %description |
|---|
| 49 | The ht://Dig system is a complete world wide web indexing and searching |
|---|
| 50 | system for a small domain or intranet. This system is not meant to replace |
|---|
| 51 | the need for powerful internet-wide search systems like Lycos, Infoseek, |
|---|
| 52 | Webcrawler and AltaVista. Instead it is meant to cover the search needs for |
|---|
| 53 | a single company, campus, or even a particular sub section of a web site. As |
|---|
| 54 | opposed to some WAIS-based or web-server based search engines, ht://Dig can |
|---|
| 55 | span several web servers at a site. The type of these different web servers |
|---|
| 56 | doesn't matter as long as they understand the HTTP 1.0 protocol. |
|---|
| 57 | ht://Dig is also used by KDE to search KDE's HTML documentation. |
|---|
| 58 | |
|---|
| 59 | ht://Dig was developed at San Diego State University as a way to search the |
|---|
| 60 | various web servers on the campus network. |
|---|
| 61 | |
|---|
| 62 | %description web |
|---|
| 63 | The ht://Dig system is a complete world wide web indexing and searching |
|---|
| 64 | system for a small domain or intranet. This system is not meant to replace |
|---|
| 65 | the need for powerful internet-wide search systems like Lycos, Infoseek, |
|---|
| 66 | Webcrawler and AltaVista. Instead it is meant to cover the search needs for |
|---|
| 67 | a single company, campus, or even a particular sub section of a web site. As |
|---|
| 68 | opposed to some WAIS-based or web-server based search engines, ht://Dig can |
|---|
| 69 | span several web servers at a site. The type of these different web servers |
|---|
| 70 | doesn't matter as long as they understand the HTTP 1.0 protocol. |
|---|
| 71 | |
|---|
| 72 | The %{name}-web package includes CGI scripts and HTML code needed to use |
|---|
| 73 | ht://Dig on a website. |
|---|
| 74 | |
|---|
| 75 | ht://Dig was developed at San Diego State University as a way to search the |
|---|
| 76 | various web servers on the campus network. |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | %prep |
|---|
| 80 | %setup -q -n %{name}-%{version}%{beta} |
|---|
| 81 | %patch1 -p1 -b .rh |
|---|
| 82 | %patch2 -p1 -b .xopen |
|---|
| 83 | %patch4 -p1 -b .overflow |
|---|
| 84 | %patch5 -p1 -b .robots |
|---|
| 85 | %patch6 -p1 -b .unescaped_output |
|---|
| 86 | %patch8 -p1 -b .compile-fix |
|---|
| 87 | %patch9 -p1 -b .opts |
|---|
| 88 | %patch11 -p1 -b .incremental |
|---|
| 89 | %patch12 -p1 -b .CVE-2007-6110 |
|---|
| 90 | %patch13 -p1 -b .htstat-segv |
|---|
| 91 | %patch14 -p1 -b .external_parsers |
|---|
| 92 | %patch15 -p1 -b .allow_numbers |
|---|
| 93 | |
|---|
| 94 | autoreconf -fiv |
|---|
| 95 | |
|---|
| 96 | %build |
|---|
| 97 | %configure \ |
|---|
| 98 | --enable-shared \ |
|---|
| 99 | --enable-tests \ |
|---|
| 100 | --enable-bigfile \ |
|---|
| 101 | --with-config-dir=%{_sysconfdir}/htdig \ |
|---|
| 102 | --with-common-dir=%{contentdir}/html/htdig \ |
|---|
| 103 | --with-database-dir=/var/lib/htdig \ |
|---|
| 104 | --localstatedir=/var/lib/htdig \ |
|---|
| 105 | --with-cgi-bin-dir=%{contentdir}/cgi-bin \ |
|---|
| 106 | --with-image-dir=%{contentdir}/html/htdig \ |
|---|
| 107 | --with-search-dir=%{contentdir}/html/htdig \ |
|---|
| 108 | --with-default-config-file=%{_sysconfdir}/htdig/htdig.conf \ |
|---|
| 109 | --with-apache=%{apachebin} \ |
|---|
| 110 | --with-zlib=%{_prefix} \ |
|---|
| 111 | --with-ssl |
|---|
| 112 | make |
|---|
| 113 | |
|---|
| 114 | %install |
|---|
| 115 | rm -rf $RPM_BUILD_ROOT |
|---|
| 116 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 117 | |
|---|
| 118 | ln $RPM_BUILD_ROOT%{contentdir}/cgi-bin/htsearch $RPM_BUILD_ROOT%{_bindir} |
|---|
| 119 | |
|---|
| 120 | chmod 644 $RPM_BUILD_ROOT%{contentdir}/html/htdig/* |
|---|
| 121 | ln -sf search.html $RPM_BUILD_ROOT%{contentdir}/html/htdig/index.html |
|---|
| 122 | # now get rid of the $RPM_BUILD_ROOT paths in the conf files |
|---|
| 123 | for i in %{_sysconfdir}/htdig/htdig.conf /usr/bin/rundig ; do |
|---|
| 124 | perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT/$i |
|---|
| 125 | done |
|---|
| 126 | mkdir -p $RPM_BUILD_ROOT%{_prefix}/share |
|---|
| 127 | mv $RPM_BUILD_ROOT%{contentdir}/html/htdig $RPM_BUILD_ROOT%{_prefix}/share |
|---|
| 128 | mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d/ |
|---|
| 129 | install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/htdig.conf |
|---|
| 130 | |
|---|
| 131 | rm -rf $RPM_BUILD_ROOT%{_includedir} |
|---|
| 132 | rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig/*.a |
|---|
| 133 | rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig/*.la |
|---|
| 134 | rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig_db/*.a |
|---|
| 135 | rm -rf $RPM_BUILD_ROOT%{_libdir}/htdig_db/*.la |
|---|
| 136 | |
|---|
| 137 | %clean |
|---|
| 138 | rm -rf $RPM_BUILD_ROOT |
|---|
| 139 | |
|---|
| 140 | %files |
|---|
| 141 | %defattr(-,root,root) |
|---|
| 142 | %doc htdoc/* |
|---|
| 143 | %dir %{_sysconfdir}/htdig |
|---|
| 144 | %config %{_sysconfdir}/htdig/htdig.conf |
|---|
| 145 | %config %{_sysconfdir}/htdig/cookies.txt |
|---|
| 146 | %{_sysconfdir}/htdig/HtFileType-magic.mime |
|---|
| 147 | %{_sysconfdir}/htdig/mime.types |
|---|
| 148 | %dir /var/lib/htdig |
|---|
| 149 | %{_bindir}/* |
|---|
| 150 | %{_libdir}/htdig |
|---|
| 151 | %{_libdir}/htdig_db |
|---|
| 152 | %{_mandir}/man1/* |
|---|
| 153 | |
|---|
| 154 | %if %buildweb |
|---|
| 155 | %files web |
|---|
| 156 | %defattr(-,root,root) |
|---|
| 157 | %{contentdir}/cgi-bin/* |
|---|
| 158 | %config %{_sysconfdir}/httpd/conf.d/htdig.conf |
|---|
| 159 | %dir %{_datadir}/htdig |
|---|
| 160 | %{_datadir}/htdig/* |
|---|
| 161 | %{_mandir}/man8/* |
|---|
| 162 | %endif |
|---|
| 163 | |
|---|
| 164 | %changelog |
|---|
| 165 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-9.b6 |
|---|
| 166 | - rebuild with VineSeed environment |
|---|
| 167 | |
|---|
| 168 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.0-8.b6 |
|---|
| 169 | - rebuilt with current VineSeed |
|---|
| 170 | - replaced Patch100 to Patch8 |
|---|
| 171 | - added --with-ssl option to %%configure |
|---|
| 172 | |
|---|
| 173 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 3.2.0-7.b6vl5 |
|---|
| 174 | - applied new versioning policy |
|---|
| 175 | |
|---|
| 176 | * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.0-6.1vl1.b6 |
|---|
| 177 | - new upstream release |
|---|
| 178 | - added Patch100 for building with gcc4 |
|---|
| 179 | |
|---|
| 180 | * Thu Mar 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.2.0-6.1vl1.b5 |
|---|
| 181 | - rebuild for VineSeedPlus |
|---|
| 182 | |
|---|
| 183 | * Thu Mar 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.2.0-6.1vl0.b5 |
|---|
| 184 | - build for VinePlus/2.6 |
|---|
| 185 | - remove commented lines |
|---|
| 186 | - change configure options for apache of Vine |
|---|
| 187 | |
|---|
| 188 | * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> |
|---|
| 189 | - rebuilt |
|---|
| 190 | |
|---|
| 191 | * Thu Feb 26 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-6 |
|---|
| 192 | - Removed buildroot cruft from HtFileFype (#116442). |
|---|
| 193 | - Use mktemp in HtFileFype to create temporary file (#116443). |
|---|
| 194 | |
|---|
| 195 | * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
|---|
| 196 | - rebuilt |
|---|
| 197 | |
|---|
| 198 | * Thu Jan 15 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-4 |
|---|
| 199 | - Fixed missing & in if clause. |
|---|
| 200 | |
|---|
| 201 | * Tue Jan 13 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-3 |
|---|
| 202 | - Fixed latin1 char translation (#71921). |
|---|
| 203 | - Fixed overflow bug in WordDBPage.cc (#110802). |
|---|
| 204 | |
|---|
| 205 | * Mon Jan 12 2004 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-2 |
|---|
| 206 | - Moved /usr/share/htdig files to web package (#111938). |
|---|
| 207 | |
|---|
| 208 | * Fri Dec 12 2003 Phil Knirsch <pknirsch@redhat.com> 3.2.0b5-1 |
|---|
| 209 | - Update to latest stable upstream version htdig-3.2.0b5. |
|---|
| 210 | |
|---|
| 211 | * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
|---|
| 212 | - rebuilt |
|---|
| 213 | |
|---|
| 214 | * Wed Jun 04 2003 Phil Knirsch <pknirsch@redhat.com> 3.2.0-18.20030601 |
|---|
| 215 | - Update to htdig-3.2.0b4-20030601 snapshot. |
|---|
| 216 | - Fixed build problems. |
|---|
| 217 | |
|---|
| 218 | * Thu Mar 06 2003 Phil Knirsch <pknirsch@redhat.com> 3.2.0-17.20030302 |
|---|
| 219 | - Update to htdig-3.2.0b4-20030302 snapshot. |
|---|
| 220 | |
|---|
| 221 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
|---|
| 222 | - rebuilt |
|---|
| 223 | |
|---|
| 224 | * Wed Jan 8 2003 Jeff Johnson <jbj@redhat.com> 3.2.0-15.20021103 |
|---|
| 225 | - don't include -debuginfo files in package. |
|---|
| 226 | |
|---|
| 227 | * Tue Dec 17 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-14.20021103 |
|---|
| 228 | - Forgot to create conf.d directory. Fixed. |
|---|
| 229 | - Fixed wrong files section. |
|---|
| 230 | |
|---|
| 231 | * Tue Dec 10 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-13.20021103 |
|---|
| 232 | - Removed symlink from %{contentdir}/html and replaced it with httpd.d conf |
|---|
| 233 | file (#73518). |
|---|
| 234 | |
|---|
| 235 | * Tue Dec 10 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-12.20021103 |
|---|
| 236 | - Added webserver requirement for htdig-web package (#73986). |
|---|
| 237 | |
|---|
| 238 | * Wed Dec 04 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-11.20021103 |
|---|
| 239 | - Fix for autoFOO patch. |
|---|
| 240 | - Fix x64_64 build. |
|---|
| 241 | |
|---|
| 242 | * Wed Nov 27 2002 Tim Powers <timp@redhat.com> 3.2.0-9.20021103 |
|---|
| 243 | - rebuild on all arches |
|---|
| 244 | |
|---|
| 245 | * Fri Nov 08 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-8.20021103 |
|---|
| 246 | - Updated to htdig-3.2.0b4-20021103. |
|---|
| 247 | - Fixed %files section errors. |
|---|
| 248 | |
|---|
| 249 | * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 3.2.0-7.20020505 |
|---|
| 250 | - rebuilt with gcc-3.2 (we hope) |
|---|
| 251 | |
|---|
| 252 | * Tue Jul 23 2002 Tim Powers <timp@redhat.com> 3.2.0-6.20020505 |
|---|
| 253 | - build using gcc-3.2-0.1 |
|---|
| 254 | |
|---|
| 255 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 3.2.0-5.20020505 |
|---|
| 256 | - automated rebuild |
|---|
| 257 | |
|---|
| 258 | * Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 3.2.0-4.20020505 |
|---|
| 259 | - Don't forcibly strip binaries |
|---|
| 260 | |
|---|
| 261 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
|---|
| 262 | - automated rebuild |
|---|
| 263 | |
|---|
| 264 | * Mon May 6 2002 Bernhard Rosenkraenzer <bero@linux-easy.com> 3.2.0-2.20020505 |
|---|
| 265 | - Fix build with current toolchain (automake 1.6, autoconf 2.53 changes) |
|---|
| 266 | - Update snapshot, fixes some more problems |
|---|
| 267 | |
|---|
| 268 | * Thu Jan 24 2002 Phil Knirsch <pknirsch@redhat.com> |
|---|
| 269 | - Updated to latest snapshot to fix several problems. |
|---|
| 270 | - Fixed a problem with htdig segfaulting on s390 (#58202). |
|---|
| 271 | |
|---|
| 272 | * Fri Jul 20 2001 Philipp Knirsch <pknirsch@redhat.de> |
|---|
| 273 | - Added missing BuildRequires: zlib-devel (#49500) |
|---|
| 274 | |
|---|
| 275 | * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
|---|
| 276 | - Bump release + rebuild. |
|---|
| 277 | |
|---|
| 278 | * Fri Apr 27 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 279 | - rebuild for C++ exception handling on ia64 |
|---|
| 280 | |
|---|
| 281 | * Wed Mar 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.2.0-0.b3.4 |
|---|
| 282 | - move pictures etc. to base package and to a directory outside of |
|---|
| 283 | /var/www - The current KDevelop search function doesn't work without |
|---|
| 284 | them. |
|---|
| 285 | |
|---|
| 286 | * Mon Mar 5 2001 Bernhard Rosenkraenzer <bero@redhat.com> |
|---|
| 287 | - Add htsearch to the base package, kdevelop needs it |
|---|
| 288 | |
|---|
| 289 | * Wed Jan 10 2001 Bernhard Rosenkraenzer <bero@redhat.com> |
|---|
| 290 | - Move the web related files to a separate package |
|---|
| 291 | |
|---|
| 292 | * Tue Oct 3 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
|---|
| 293 | - 3.2.0b2 |
|---|
| 294 | - fix build with glibc 2.2 and gcc 2.96 |
|---|
| 295 | |
|---|
| 296 | * Sat Aug 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 297 | - fix syntax error introduced in our patch (#16598) |
|---|
| 298 | |
|---|
| 299 | * Tue Aug 1 2000 Tim Powers <timp@redhat.com> |
|---|
| 300 | - fixed group to be a valid one |
|---|
| 301 | |
|---|
| 302 | * Mon Jul 24 2000 Prospector <prospector@redhat.com> |
|---|
| 303 | - rebuilt |
|---|
| 304 | |
|---|
| 305 | * Wed Jul 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 306 | - rebuild for Power Tools |
|---|
| 307 | |
|---|
| 308 | * Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 309 | - rebuild for Power Tools |
|---|
| 310 | |
|---|
| 311 | * Sat Feb 26 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 312 | - 3.1.5 |
|---|
| 313 | |
|---|
| 314 | * Wed Jan 12 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
|---|
| 315 | - 3.1.4 |
|---|
| 316 | - fix URL and source location |
|---|
| 317 | |
|---|
| 318 | * Tue Sep 28 1999 Preston Brown <pbrown@redhat.com> |
|---|
| 319 | - 3.1.3 for SWS 3.1 |
|---|
| 320 | |
|---|
| 321 | * Wed May 05 1999 Preston Brown <pbrown@redhat.com> |
|---|
| 322 | - updates for SWS 3.0 |
|---|
| 323 | |
|---|
| 324 | * Mon Aug 31 1998 Preston Brown <pbrown@redhat.com> |
|---|
| 325 | - Updates for SWS 2.0 |
|---|
| 326 | |
|---|
| 327 | * Sat Feb 07 1998 Cristian Gafton <gafton@redhat.com> |
|---|
| 328 | - built against glibc |
|---|
| 329 | - build all the fuzzy databases before packaging, because it is time |
|---|
| 330 | consuming operation and we don't want the user to be impatient |
|---|