[clamav-users] ClamAV 1.0.0 release candidate now available

Micah Snyder (micasnyd) micasnyd at cisco.com
Tue Nov 1 16:32:40 UTC 2022


Hi Andrew,

We don't actually create a clamav.spec file for building the RPM, or the equivalent for the DEB package.  These packages are created by CMake's CPack tool.

The only special settings we add for supporting building RPM's and DEB's is this: https://github.com/Cisco-Talos/clamav/blob/main/CMakeLists.txt#L418-L437

At build time, we also set -D CPACK_DEBIAN_PACKAGE_RELEASE=1 , or -D CPACK_RPM_PACKAGE_RELEASE=1  and then after the build we run cpack -G DEB  or  cpack -G RPM  and  CPack does everything.

Regards,
Micah



Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.

________________________________
From: clamav-users <clamav-users-bounces at lists.clamav.net> on behalf of Andrew C Aitchison via clamav-users <clamav-users at lists.clamav.net>
Sent: Friday, October 28, 2022 11:45 AM
To: clamav-users at lists.clamav.net <clamav-users at lists.clamav.net>
Cc: Andrew C Aitchison <clamav at aitchison.me.uk>
Subject: Re: [clamav-users] ClamAV 1.0.0 release candidate now available


On Tue, 25 Oct 2022, Micah Snyder (micasnyd) via clamav-users wrote:

> Read this announcement online at
> https://blog.clamav.net/2022/10/clamav-100-release-candidate-now.html
>
> We are excited to announce the ClamAV 1.0.0 release candidate!
>
> You may find the source code and installers for this release on:
>
>  *   the clamav.net/downloads<https://www.clamav.net/downloads>, or
>  *   the ClamAV GitHub release
> page<https://github.com/Cisco-Talos/clamav/releases/tag/clamav-1.0.0-rc>
>
> Note: If you are looking for the source code on
> clamav.net/downloads<https://www.clamav.net/downloads> - there is an
> issue preventing the "Source" section from showing for release
> candidates. Until we fix this issue, you find it under the "Linux"
> section.
>
> Tip: If you are downloading the source from the GitHub release page,
> the package labeled "clamav-1.0.0-rc.tar.gz" does not require an
> internet connection to build.  All dependencies are included in this
> package.  But if you download the ZIP or TAR.GZ generated by GitHub,
> located at the very bottom, then an internet connection will be
> required during the build to download additional Rust dependencies.

It would be great if you could put the source debian/ directory and the
clamav.spec file (for rpm
builds) up with the source tarball.

Tradition would say make the debian dir available as eg:
         clamav-1.0.0-rc-1.debian.tar.gz

If you put clamav.spec at the top level (I think that means
clamav-1.0.0-rc/clamav.spec
) then we can build the rpm straight from the tarball, with
         rpmbuild --ta clamav-1.0.0-rc.tar.gz
This worked for RedHat 6, I don't have a current RedHat system to confirm.

I know that you have mussels, but switching to CMake and adding Rust
seems like enough for an OS packager trying to upgrade from one LTS to the
next (0.103 to 1.0).

Thanks,

--
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk


_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20221101/53d8df61/attachment.htm>


More information about the clamav-users mailing list