#useradd clamav #yum install rpmdevtools #su - clamav $rpmdev-setuptree The following directory structure will be created: rpmbuild / / | \ \ BUILD RPMS SOURCES SPECS SRPMS
Create a spec file in the folder ~/rpmbuild/SPECS/clam.spec. After that use rpmlint to check the spec file.
To create a src package
$rpmbuild -bs clam.spec
To create a binary file
$rpmbuild -ba clam.spec
Now if it was successful you will have a binary rpm or src.rpm in the directory:
The packages are available in the following addresses: