Build rpm-files from a src-rpm
Important: NEVER build rpms as root because the included .spec file ( a shell script) will be executed and may contain destructive executions
For building rpm-files you will need the following Directory Structure on the computer you want to build for:
/Compile/packages/
BUILD
RPMS
SOURCES
SPECS
SRPMS
- Get the src.rpm file
- Put it in SRPMS
- Execute
rpm -i src_rpm_file.rpm
- look in the SOURCES directory: a .gz or .tar file is placed here
- look in the SPECS directory: a .spec file is placed here... edit this file for changes or patches of the installation
- in this dir type
rpm -ba specfile.spec
this starts the build process
- When building has finished without errors you will find the new build rpm in the RPMS directory
--
NikolasDoerfler - 20 Nov 2003