Contents
How do I add files to an RPM?
add a new file in existing RPM
- Download source rpm.
- install rpm which creates BUILD, BUILDROOT, RPMS, SOURCES SPECES SRPMS directories.
- copy my patches in SOURCES directory.
- Modify the SPEC file to include my patches.
- Create new package with rpmbuild -bb SPEC/spec_file command.
What is a RPM spec file?
A SPEC file can be thought of as the “recipe” that the rpmbuild utility uses to actually build an RPM. It tells the build system what to do by defining instructions in a series of sections. The sections are defined in the Preamble and the Body. The Preamble contains a series of metadata items that are used in the Body.
How do I create a .spec file?
2.2. 1. Creating an Example Spec File for eject
- In a shell prompt, go into the buildroot and create a new spec file for your package.
- Open the spec file in a text editor.
- Edit the Release tag to set the release value of the package.
- Fill in the version and add a summary of the software:
How to create a spec file for cdplayer?
As we saw in the previous chapter, the spec file contains eight different sections, most of which are required. Let’s go through each section and create cdplayer’s spec file as we go. The Preamble The preamble contains a wealth of information about the package being built, and the people that built it.
How to create a preamble for a rpm file?
In general, the preamble consists of entries, one per line, that start with a tagfollowed by a colon, and then some information. For example, the line starting with “Summary:” gives a short description of the packaged software that can be displayed by RPM.
What does vendorline mean in SPEC file rpm?
The vendorline identifies the organization that distributes the software. Maintaining our fictional motif, we’ve invented fictional company, White Socks Software, to add to our spec file. Individuals will probably omit this as well. Packager
How is the string in the SPEC file created?
The string consists of a series of words separated by slashes. From left to right, the words describe the packaged software more explicitly. We grouped cdplayerunder Applications, because it is an application, and then under Sound, since it is an application that is sound-related. Source