Product SiteDocumentation Site

Fedora Draft Documentation

Software Collections Guide

A guide to Software Collections for Fedora

Edition 17.0.1

Petr Kovář

Red Hat Engineering Content Services

Legal Notice

Copyright © 2012 Red Hat, Inc and others.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
For guidelines on the permitted uses of the Fedora trademarks, refer to https://fedoraproject.org/wiki/Legal:Trademark_guidelines.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
All other trademarks are the property of their respective owners.
Abstract
The Software Collections Guide provides an explanation of Software Collections and details how to build and package them. Developers and system administrators who have a basic understanding of software packaging with RPM packages, but who are new to the concept of Software Collections, can use this Guide to get started with Software Collections.

Preface
1. Document Conventions
1.1. Typographic Conventions
1.2. Pull-quote Conventions
1.3. Notes and Warnings
2. We Need Feedback!
3. Acknowledgments
1. Introducing Software Collections
1.1. Why Package Software with RPM?
1.2. What Are Software Collections?
1.3. Enabling Support for Software Collections
1.4. The Recommended File System Hierarchy
1.5. The Default File System Hierarchy
1.6. Software Collection Scriptlets
1.7. Package Layout
1.7.1. Meta Package
1.7.2. Packages in the Software Collection Namespace
1.8. Enabling a Software Collection
1.8.1. Running an Application Directly
1.8.2. Running a Shell with Multiple Software Collections Enabled
1.8.3. Running Commands Stored in a File
2. Packaging Software Collections
2.1. Building a Software Collection Locally
2.2. Software Collection Macros
2.2.1. Macros Specific to a Software Collection
2.2.2. Macros Not Specific to a Software Collection
2.3. Converting a Conventional Spec File
2.4. Using a Software Collection in Your Application
2.5. Installing a Software Collection
2.6. Listing Installed Software Collections
2.7. Software Collection Initscript Support
2.8. Software Collection Library Support
2.9. Software Collection .pc Files Support
2.10. Software Collection manpath Support
2.11. Software Collection SystemTap Support
2.12. Software Collection cronjob Support
2.13. Software Collection logrotate Support
2.14. Software Collection Lock File Support
2.15. Software Collection Configuration Files Support
2.16. Software Collection Kernel Module Support
2.17. Software Collection SELinux Support
3. Getting More Information
A. Revision History