summaryrefslogtreecommitdiffstats
path: root/redhat/extras/htdig/htdig.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2024-06-13 08:37:13 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2024-06-13 08:38:31 +0200
commitac47c91c6c011631186592695e4251a3bb97dcca (patch)
treed91e4e98d96b4b2618d9fb3b879c28b67fc63a8f /redhat/extras/htdig/htdig.spec
parent1488354ed514d043f0c15ddbe8b9aa7c0b43f46c (diff)
downloadtde-packaging-ac47c91c6c011631186592695e4251a3bb97dcca.tar.gz
tde-packaging-ac47c91c6c011631186592695e4251a3bb97dcca.zip
RPM: synchronize redhat directory with r14.1.x branch
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/extras/htdig/htdig.spec')
-rw-r--r--redhat/extras/htdig/htdig.spec17
1 files changed, 15 insertions, 2 deletions
diff --git a/redhat/extras/htdig/htdig.spec b/redhat/extras/htdig/htdig.spec
index dab280946..f1a779fc9 100644
--- a/redhat/extras/htdig/htdig.spec
+++ b/redhat/extras/htdig/htdig.spec
@@ -1,6 +1,12 @@
%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
@@ -26,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
@@ -105,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}/*
@@ -204,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 .