<br clear="all">Hi All, <br><br>I am trying to build SRPM and RPM out of cureent clamav tarball. <br><br>I just download it to /ur/src/redhat/SOURCES as follows. <br><br>[root@mail SOURCES]# wget <a href="http://freshmeat.net/redir/clamav/29355/url_tgz/clamav-0.90.3.tar.gz">
http://freshmeat.net/redir/clamav/29355/url_tgz/clamav-0.90.3.tar.gz</a><br><br><br>When I issue rpmbuild -ta, it gave below error. <br><br>[root@mail SOURCES]# rpmbuild -ta clamav-0.90.3.tar.gz<br>error: Name field must be present in package: (main package)
<br>error: Version field must be present in package: (main package)<br>error: Release field must be present in package: (main package)<br>error: Summary field must be present in package: (main package)<br>error: Group field must be present in package: (main package)
<br>error: License field must be present in package: (main package)<br><br>I think , may be it does not have a SPEC file. <br><br>Then, What I did was I got clamav Version 0.90.2 Spec file from below URL. <br><span style="font-family: monospace;">
<br></span><a href="http://crash.fce.vutbr.cz/crash-hat/5/clamav/clamav.spec">http://crash.fce.vutbr.cz/crash-hat/5/clamav/clamav.spec</a><br><br>and copied it to /usr/src/redhat/SPECS/ and <span style="font-weight: bold;">
changed</span> it's Version:   0.90.2 to <span style="font-weight: bold;">Version: 0.90.3</span><br><br>and ran it again as folows. then, again, it gave below error. <br><br>[root@mail SPECS]# rpmbuild -ta clamav.spec
<br>error: Name field must be present in package: (main package)<br>error: Version field must be present in package: (main package)<br>error: Release field must be present in package: (main package)<br>error: Summary field must be present in package: (main package)
<br>error: Group field must be present in package: (main package)<br>error: License field must be present in package: (main package)<br><br>then, I tried as follows. <br><br>[root@mail SPECS]# rpmbuild <span style="font-weight: bold;">
-ba</span> clamav.spec<br><br>then , It gave below error.<br>error: File /usr/src/redhat/SOURCES/clamav-milter-dontsux.patch: No such file or directory<br><br>What's wrong with it?  <br><br>Where have I gone worng? <br>
<br>How to build both clamav SRPM AND RPM for CentOS 5<br><br><br><br><br><br>-- <br>Thank you
<br>Indunil Jayasooriya<br>