RPM Packages
Total Page:16
File Type:pdf, Size:1020Kb
RPM Packaging Guide Adam Miller, Maxim Svistunov, Marie Doleželová, et al. Table of Contents Introduction. 1 PDF Version . 1 Document Conventions. 1 Contributing to this guide . 2 Prerequisites . 3 Why Package Software with RPM?. 4 Your First RPM Package . 5 Preparing Software for Packaging . 7 What is Source Code? . 7 How Programs Are Made . 8 Natively Compiled Code . 8 Interpreted Code . 8 Building Software from Source . 9 Natively Compiled Code . 9 Interpreted Code . 10 Patching Software . 12 Installing Arbitrary Artifacts. 14 Using the install command . 14 Using the make install command . 15 Preparing Source Code for Packaging. 16 Putting Source Code into Tarball . 16 bello . 17 pello . 17 cello. 18 Packaging Software . 20 RPM Packages . 20 What is an RPM? . 20 RPM Packaging Tools . 20 RPM Packaging Workspace . 21 What is a SPEC File? . 21 BuildRoots . 23 RPM Macros . 24 Working with SPEC files. 25 Building RPMS . 44 Source RPMs . 45 Binary RPMS . 45 Checking RPMs For Sanity . 47 Checking the bello SPEC File. 47 Checking the bello Binary RPM . 48 Checking the pello SPEC File. 48 Checking the pello Binary RPM . 49 Checking the cello SPEC File . 50 Checking the cello Binary RPM . 51 Advanced Topics. 52 Signing Packages . 52 Adding a Signature to a Package . 52 Replacing a Package Signature. 53 Build-time Signing. 54 Mock . 55 Version Control Systems. 59 tito . ..