name = clamav
version = 0.103.7
-release = 3
+release = 4
groups = System Environment/Daemons
url = https://www.clamav.net
test
make check
end
+
+ install_cmds
+ # Install config files.
+ cp -avf %{DIR_SOURCE}/config/*.conf %{BUILDROOT}%{sysconfdir}
+
+ # Own the config files by the clamav user/group.
+ chown clamav.clamav %{BUILDROOT}%{sysconfdir}/*.conf
+
+ # Remove example config files.
+ rm -rvf %{BUILDROOT}%{sysconfdir}/*.example
+ end
end
create_users