Библиотека сайта rus-linux.net
Maximum RPM: Taking the Red Hat Package Manager to the Limit | ||
---|---|---|
Prev | Chapter 18. Creating Subpackages | Next |
Build-Time Scripts: Unchanged For Subpackages
While creating subpackages changes the general structure of the spec file, there's one section that doesn't change: the build-time scripts. This means there is only one set of %prep, %build, and %install scripts in any spec file.
Of course, even if RPM doesn't require any changes to these scripts, you still might need to make some subpackage-related changes to them. Normally these changes are related to doing whatever is required to get the all the software unpacked, built, and installed. For example, if packaging client/server software, the software for both the client and the server must be unpacked, and then both the client and server binaries must be built and installed.
Our Spec File: One Last Look…
|
As you can see, the build-time scripts are about as simple as they can be. [1]
Notes
[1] | This is the advantage to making up an example. A more real-world spec file would undoubtedly have more interesting scripts. |