From e1b4f9e3102e52095b931845eeed616e3ca948ef Mon Sep 17 00:00:00 2001
From: Micah Snyder <micasnyd@cisco.com>
Date: Sun, 15 Dec 2024 21:14:50 -0500
Subject: [PATCH] Bump libclamav.so version to 13:0:1 (aka 12.1.0)

Also remove libclamav.map versioning.

Resolves: https://github.com/Cisco-Talos/clamav/issues/1304
---
 CMakeLists.txt          |  6 +++---
 libclamav/libclamav.map | 14 +-------------
 2 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a134f48024..0d962cd79d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,9 +36,9 @@ set(PACKAGE_URL       "https://www.clamav.net/")
 HexVersion(PACKAGE_VERSION_NUM ${PROJECT_VERSION_MAJOR} ${PROJECT_VERSION_MINOR} ${PROJECT_VERSION_PATCH})
 
 # libtool library versioning rules: http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
-set(LIBCLAMAV_CURRENT  12)
-set(LIBCLAMAV_REVISION 3)
-set(LIBCLAMAV_AGE      0)
+set(LIBCLAMAV_CURRENT  13)
+set(LIBCLAMAV_REVISION 0)
+set(LIBCLAMAV_AGE      1)
 
 math(EXPR LIBCLAMAV_SOVERSION "${LIBCLAMAV_CURRENT} - ${LIBCLAMAV_AGE}")
 set(LIBCLAMAV_VERSION "${LIBCLAMAV_SOVERSION}.${LIBCLAMAV_AGE}.${LIBCLAMAV_REVISION}")
diff --git a/libclamav/libclamav.map b/libclamav/libclamav.map
index 172ea85bd0..7805909f04 100644
--- a/libclamav/libclamav.map
+++ b/libclamav/libclamav.map
@@ -59,28 +59,16 @@ CLAMAV_PUBLIC {
     cl_hash_destroy;
     cl_engine_stats_enable;
     lsig_sub_matched;
-};
-CLAMAV_0.104.0 {
-  global:
     cl_engine_set_clcb_engine_compile_progress;
     cl_engine_set_clcb_engine_free_progress;
     cl_engine_set_clcb_sigload_progress;
-} CLAMAV_PUBLIC;
-CLAMAV_1.0.0 {
-  global:
     cl_cvdunpack;
     cl_engine_set_clcb_file_inspection;
-} CLAMAV_0.104.0;
-CLAMAV_1.1.0 {
-  global:
     cl_cvdgetage;
     cl_engine_set_clcb_vba;
-} CLAMAV_1.0.0;
-CLAMAV_1.5.0 {
-  global:
     cl_cvdunpack_ex;
     cl_cvdverify_ex;
-} CLAMAV_1.1.0;
+};
 CLAMAV_PRIVATE {
   global:
     cli_sigperf_print;