%global debug_package %{nil} %define _build_id_links none %if 0%{?rhel} && 0%{?rhel} < 10 %global gcc_toolset_enable source /opt/rh/gcc-toolset-15/enable %else %global gcc_toolset_enable source /usr/lib/gcc-toolset/15-env.source %endif Summary: End-user tools for the Clam Antivirus scanner Name: clamav Version: 1.5.4 Release: 1%{?dist} License: GPL-2.0-only AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND NCSA AND Unicode-3.0 AND Zlib URL: https://www.clamav.net Source0: %{url}/downloads/production/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-toolset-15 BuildRequires: gcc-toolset-15-gcc-c++ BuildRequires: gcc-toolset-15-gcc-plugin-annobin BuildRequires: make BuildRequires: cargo >= 1.87 BuildRequires: rust >= 1.87 BuildRequires: bzip2-devel BuildRequires: check-devel BuildRequires: curl-devel BuildRequires: json-c-devel BuildRequires: libmspack-devel BuildRequires: libxml2-devel BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: pcre2-devel BuildRequires: python3-pytest BuildRequires: zlib-devel BuildRequires: systemd-devel %description Clam AntiVirus is an anti-virus toolkit for UNIX. The main purpose of this software is the integration with mail servers (attachment scanning). The package provides a flexible and scalable multi-threaded daemon, a command line scanner, and a tool for automatic updating via Internet. The programs are based on a shared library distributed with the Clam AntiVirus package, which you can use with your own software. The virus database is based on the virus database from OpenAntiVirus, but contains additional signatures (including signatures for popular polymorphic viruses, too) and is KEPT UP TO DATE. %package devel Summary: Header files and libraries for the Clam Antivirus scanner Requires: %{name}%{?_isa} = %{version}-%{release} Requires: openssl-devel %description devel This package contains headerfiles and libraries which are needed to build applications using clamav. %prep %{gcc_toolset_enable} %autosetup -n %{name}-%{version} %build %{gcc_toolset_enable} %cmake \ -DAPP_CONFIG_DIRECTORY=%{_sysconfdir}/clamav \ -DBYTECODE_RUNTIME=interpreter \ -DCLAMAV_GROUP=clamav \ -DCLAMAV_USER=clamav \ -DDATABASE_DIRECTORY=%{_sharedstatedir}/clamav \ -DDO_NOT_SET_RPATH=ON \ -DENABLE_APP=ON \ -DENABLE_CLAMONACC=OFF \ -DENABLE_DOXYGEN=OFF \ -DENABLE_EXPERIMENTAL=OFF \ -DENABLE_EXTERNAL_MSPACK=ON \ -DENABLE_JSON_SHARED=ON \ -DENABLE_MAN_PAGES=OFF \ -DENABLE_MILTER=OFF \ -DENABLE_SHARED_LIB=ON \ -DENABLE_STATIC_LIB=OFF \ -DENABLE_SYSTEMD=OFF \ -DENABLE_TESTS=OFF \ -DENABLE_UNRAR=ON \ -DOPTIMIZE=ON %cmake_build %install %{gcc_toolset_enable} %cmake_install rm -rf %{buildroot}%{_docdir}/ClamAV rm -rf %{buildroot}%{_sysconfdir}/clamav %files %{_bindir}/clambc %{_bindir}/clamconf %{_bindir}/clamdscan %{_bindir}/clamdtop %{_bindir}/clamscan %{_bindir}/clamsubmit %{_bindir}/sigtool %{_bindir}/freshclam %{_sbindir}/clamd %{_libdir}/libclamav.so.12* %{_libdir}/libfreshclam.so.4* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/libclamav_rust.a %{_libdir}/pkgconfig/* %{_bindir}/clamav-config %changelog %autochangelog