diff options
Diffstat (limited to 'redhat/extras/htdig/htdig.spec')
-rw-r--r-- | redhat/extras/htdig/htdig.spec | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/redhat/extras/htdig/htdig.spec b/redhat/extras/htdig/htdig.spec index a2a42e6c6..f1a779fc9 100644 --- a/redhat/extras/htdig/htdig.spec +++ b/redhat/extras/htdig/htdig.spec @@ -1,17 +1,29 @@ %define _disable_ld_as_needed 1 %define _disable_ld_no_undefined 1 +%if 0%{?mdkver} >= 5000000 +%global __cc /usr/bin/gcc +%global __cxx /usr/bin/g++ +%global prefer_gcc 1 +%endif + %define contentdir /var/www Summary: A web indexing and searching system for a small domain or intranet Name: htdig -Version: 3.2.0b7 +Version: 3.2.0b6_19 Release: 1%{?dist} License: GPL Group: Networking/WWW URL: http://www.htdig.org/ -Source0: htdig-3.2.0b7.tar.gz +Source0: htdig_3.2.0b6.orig.tar.gz + +Patch1: patches/htdig_3.2.0b6-13.diff +Patch2: patches/gcc-6 +Patch3: patches/sourceforge_logo +Patch4: patches/drop-bogus-assignment +Patch5: patches/gcc-11 BuildRequires: flex >= 2.5.4a-13 BuildRequires: libtool @@ -20,6 +32,9 @@ BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-buildroot +Provides: group(htdig) +Provides: user(htdig) + %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 @@ -99,10 +114,10 @@ Libraries needed to develop for htdig. %defattr(-,root,root) %doc ChangeLog %doc htdoc/* -%{_libdir}/htdig/*.a +#%{_libdir}/htdig/*.a %{_libdir}/htdig/*.la %{_libdir}/htdig/*[a-z].so -%{_libdir}/htdig_db/*.a +#%{_libdir}/htdig_db/*.a %{_libdir}/htdig_db/*.la %{_libdir}/htdig_db/*[a-z].so %{_includedir}/* @@ -172,7 +187,12 @@ fi ########## %prep -%setup -q +%setup -q -n htdig-3.2.0b6 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 autoreconf -fiv @@ -193,6 +213,10 @@ autoreconf -fiv --with-apache=/usr/sbin/httpd \ --with-zlib=%{_prefix} +%if 0%{?fedora} == 40 +echo "#define HAVE_SHMGET 1" >>"db/db_config.h" +%endif + %__make %{?_smp_mflags} mv htdoc/ChangeLog . |