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@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@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.2 to Version: 0.90.3
and ran it again as folows. then, again, it gave below error.
[root@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@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