| |
@@ -1,4 +1,4 @@
|
| |
- #global prerelease -rc2
|
| |
+ #global prerelease -rc
|
| |
|
| |
%global _hardened_build 1
|
| |
|
| |
@@ -25,7 +25,7 @@
|
| |
|
| |
Summary: End-user tools for the Clam Antivirus scanner
|
| |
Name: clamav
|
| |
- Version: 1.0.6
|
| |
+ Version: 1.3.1
|
| |
Release: 1%{?dist}
|
| |
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
| |
URL: https://www.clamav.net/
|
| |
@@ -65,15 +65,10 @@
|
| |
#for scanner-systemd/server-systemd
|
| |
Source530: clamd@.service
|
| |
|
| |
- # Accept RUSTFLAGS
|
| |
- # https://github.com/Cisco-Talos/clamav/pull/835
|
| |
- Patch0: clamav-rustflags.patch
|
| |
# Change default config locations for Fedora
|
| |
Patch1: clamav-default_confs.patch
|
| |
# Fix pkg-config flags for static linking, multilib
|
| |
Patch2: clamav-private.patch
|
| |
- # Remove rpath
|
| |
- Patch3: clamav-rpath.patch
|
| |
# Modify clamav-clamonacc.service for Fedora compatibility
|
| |
Patch5: clamav-clamonacc-service.patch
|
| |
# Allow freshclam service to run if cron.d file is present
|
| |
@@ -273,18 +268,18 @@
|
| |
# EL8 and earlier do not have the Rust cargo dependencies that are
|
| |
# defined by the generate_buildrequires stage in EL9 and later, so the
|
| |
# vendored packages included in the ClamAV sources suffice.
|
| |
- sed -i -e '/cbindgen/s/version = *"0.20"/version = "0.24"/' -e '/^bindgen *=/s/= .*/= "0.63"/' libclamav_rust/Cargo.toml
|
| |
%cargo_prep
|
| |
cd libclamav_rust
|
| |
- rm -r .cargo
|
| |
+ sed -i -e '/^base64 *=/s/= .*/= "0.21"/' Cargo.toml
|
| |
+ sed -i -e '/^bindgen *=/s/= .*/= "0.69"/' Cargo.toml
|
| |
+ sed -i -e '/^cbindgen *=/s/= *".*"/= "0.26"/' Cargo.toml
|
| |
+ sed -i -e '/^onenote_parser *=/s/= *.*/= "0.3.1"/' Cargo.toml
|
| |
%cargo_prep
|
| |
cd ..
|
| |
%endif
|
| |
|
| |
- %patch -P0 -p1 -b .rustflags
|
| |
%patch -P1 -p1 -b .default_confs
|
| |
%patch -P2 -p1 -b .private
|
| |
- %patch -P3 -p1 -b .rpath
|
| |
%patch -P5 -p1 -b .clamonacc-service
|
| |
%patch -P6 -p1 -b .freshclam-service
|
| |
%patch -P7 -p1 -b .big-endian
|
| |
@@ -320,6 +315,7 @@
|
| |
-DCMAKE_INSTALL_DOCDIR=%{_pkgdocdir} \
|
| |
-DCLAMAV_USER=%{updateuser} -DCLAMAV_GROUP=%{updateuser} \
|
| |
-DDATABASE_DIRECTORY=%{homedir} \
|
| |
+ -DDO_NOT_SET_RPATH=ON \
|
| |
%{!?with_clamonacc:-DENABLE_CLAMONACC=OFF} \
|
| |
%{?with_llvm:-DBYTECODE_RUNTIME=llvm -D LLVM_FIND_VERSION="3.6.0"} \
|
| |
%{!?with_unrar:-DENABLE_UNRAR=OFF}
|
| |
@@ -532,16 +528,17 @@
|
| |
|
| |
|
| |
%files lib
|
| |
- %{_libdir}/libclamav.so.11*
|
| |
+ %{_libdir}/libclamav.so.12*
|
| |
%{_libdir}/libclammspack.so.0*
|
| |
%if %{with unrar}
|
| |
- %{_libdir}/libclamunrar*.so.11*
|
| |
+ %{_libdir}/libclamunrar*.so.12*
|
| |
%endif
|
| |
|
| |
|
| |
%files devel
|
| |
%{_includedir}/*
|
| |
%{_libdir}/*.so
|
| |
+ %{_libdir}/libclamav_rust.a
|
| |
%{_libdir}/pkgconfig/*
|
| |
%{_bindir}/clamav-config
|
| |
|
| |
@@ -568,9 +565,11 @@
|
| |
|
| |
%files freshclam
|
| |
%{_bindir}/freshclam
|
| |
- %{_libdir}/libfreshclam.so.2*
|
| |
+ %{_libdir}/libfreshclam.so.3*
|
| |
%{_mandir}/*/freshclam*
|
| |
%{_unitdir}/clamav-freshclam.service
|
| |
+ %{_unitdir}/clamav-freshclam-once.service
|
| |
+ %{_unitdir}/clamav-freshclam-once.timer
|
| |
%config(noreplace) %verify(not mtime) %{_sysconfdir}/freshclam.conf
|
| |
%ghost %attr(0644,%{updateuser},%{updateuser}) %{homedir}/bytecode.cld
|
| |
%ghost %attr(0644,%{updateuser},%{updateuser}) %{homedir}/bytecode.cvd
|
| |
@@ -601,6 +600,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Fri Apr 26 2024 Orion Poplawski <orion@nwra.com> - 1.3.1-1
|
| |
+ - Update to 1.3.1
|
| |
+
|
| |
* Fri Apr 26 2024 Orion Poplawski <orion@nwra.com> - 1.0.6-1
|
| |
- Update to 1.0.6
|
| |
|
| |
This is waiting on the rust dependencies reviews, but otherwise should be ready once they are available.