- Download the RPM package
- Run “rpmdev-setuptree”
rpmdev-setuptree program will create the
~/rpmbuild directory and a set of subdirectories (e.g.
BUILD), which you will use for creating your packages. The
~/.rpmmacros file is also created, which can be used for setting various options.
3. Run “cp FileName.tar.gz ~/rpmbuild/SOURCES/” change the .spec file in the ~/rpmbuild/SPECS directory and name it “FileNAME.spec”
Change directory to ~/rpmbuild/SPECS and run “rpmbuild –ba FileName.spec”
yum groupinstall “Fedora Packager”
rpmdev-wipetree (Be sure to save any files you need from your previous build activity before wiping the tree.)
yumdownloader – -source nameof package
rpm –i nameofpackage*.src.rpm
rpmbuild -ba nameofpackage.spec
—Rebuild From SRPMS
rpmbuild –rebuild nameofpackage*.src.rpm
—Creating a New Package
rum “rpm dev-newspec packagename” in ~/rpmbuild/SPECS
The rpmlint tool tests spec files, source RPMs, and binary RPMs to verify that they were created in compliance with the Fedora packaging guidelines.