public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/clamav] rawhide: Drop the libprelude build dependency, the CMake build has no prelude option
@ 2026-11-24 18:02 Sai Harsha Suryadevara
  0 siblings, 0 replies; only message in thread
From: Sai Harsha Suryadevara @ 2026-11-24 18:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/clamav
            Branch : rawhide
            Commit : 46e093bc266009bd71d729a1e050f13232400ce5
            Author : Sai Harsha Suryadevara <ssuryad@amazon.com>
            Date   : 2026-11-22T03:08:56+00:00
            Stats  : +4/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/clamav/c/46e093bc266009bd71d729a1e050f13232400ce5?branch=rawhide

            Log:
            Drop the libprelude build dependency, the CMake build has no prelude option

ClamAV's CMake build never sets the PRELUDE define: clamav-config.h.cmake.in has `#cmakedefine PRELUDE 1` and no CMakeLists.txt or cmake module sets it, so the `#ifdef PRELUDE` code in clamd is never compiled. The `libprelude-devel` and `gnutls-devel` build dependencies, kept for the distribution versions below the test, pull in two libraries the build does not use, and a distribution that reports such a version but does not ship libprelude cannot build the package. This removes the block. Fedora's and RHEL's builds do not change.

Signed-off-by: Sai Harsha Suryadevara <ssuryad@amazon.com>

---
diff --git a/clamav.spec b/clamav.spec
index a036b66..5f44e9e 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -19,7 +19,7 @@
 Summary:    End-user tools for the Clam Antivirus scanner
 Name:       clamav
 Version:    1.4.7
-Release:    1%{?dist}
+Release:    2%{?dist}
 License:    %{?with_unrar:proprietary}%{!?with_unrar:GPL-2.0-only}
 URL:        https://www.clamav.net/
 %if %{with unrar}
@@ -103,12 +103,6 @@ BuildRequires:  curl-devel
 BuildRequires:  git-core
 BuildRequires:  gmp-devel
 BuildRequires:  json-c-devel
-%if ! (0%{?fedora} > 40 || 0%{?rhel} > 9)
-BuildRequires:  libprelude-devel
-# libprelude-config --libs brings in gnutls, pcre
-# https://bugzilla.redhat.com/show_bug.cgi?id=1830473
-BuildRequires:  gnutls-devel
-%endif
 BuildRequires:  libxml2-devel
 BuildRequires:  ncurses-devel
 %if 0%{?fedora} > 44 || 0%{?rhel} > 10
@@ -665,6 +659,9 @@ done
 
 
 %changelog
+* Sun Nov 22 2026 Sai Harsha Suryadevara <ssuryad@amazon.com> - 1.4.7-2
+- Drop the libprelude build dependency, the CMake build has no prelude option
+
 * Fri Nov 20 2026 Gwyn Ciesla <gwync@protonmail.com> - 1.4.7-1
 - Update to 1.4.7
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 18:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 18:02 [rpms/clamav] rawhide: Drop the libprelude build dependency, the CMake build has no prelude option Sai Harsha Suryadevara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox