[CentOS] How to build clamav SRPM and RPM with calmav tarbal - CentOS 5

Indunil Jayasooriya indunil75 at gmail.com
Mon Jun 25 04:37:09 UTC 2007


Hi All,

I am trying to build SRPM and RPM out of cureent clamav tarball.

I just download it to /ur/src/redhat/SOURCES as follows.

[root at mail SOURCES]# wget
http://freshmeat.net/redir/clamav/29355/url_tgz/clamav-0.90.3.tar.gz


When I issue rpmbuild -ta, it gave below error.

[root at mail SOURCES]# rpmbuild -ta clamav-0.90.3.tar.gz
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

I think , may be it does not have a SPEC file.

Then, What I did was I got clamav Version 0.90.2 Spec file from below URL.

http://crash.fce.vutbr.cz/crash-hat/5/clamav/clamav.spec

and copied it to /usr/src/redhat/SPECS/ and changed it's Version:
0.90.2to Version:
0.90.3

and ran it again as folows. then, again, it gave below error.

[root at mail SPECS]# rpmbuild -ta clamav.spec
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

then, I tried as follows.

[root at mail SPECS]# rpmbuild -ba clamav.spec

then , It gave below error.
error: File /usr/src/redhat/SOURCES/clamav-milter-dontsux.patch: No such
file or directory

What's wrong with it?

Where have I gone worng?

How to build both clamav SRPM AND RPM for CentOS 5





-- 
Thank you
Indunil Jayasooriya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20070625/938fbf76/attachment.htm


More information about the CentOS mailing list