Guidelines for creating filesystem subpackages
Filesystem Subpackages Guidelines
Author: Jochen Schmitt
Revision: 0.01
Initial Draft: Sunday June 28, 2006
Last Revised: Sunday June 28, 2009
When to create filesystem subapckages
If there two or more packages which provide a common set of files and directories without a technicla requirement releationship beetwenn each other a filesystem subpackage have to been created which provides this set of common files and directories.
Naming
The name of the filesytem subpackage has the following form:
<Main package>-filesystem
If you have a collection of packages which provide a common set of files and directories and they have a common group name like kde, you can call the filesystem subpackage as:
<Group name>-filesystem
Packaging
All files and directories which provide by two or more packages in common, are packaged into the filesystem subpackage.
Each package which want two provides one of this files or directories have to include a require statement which refer to the filesystem subpackage.
<package-name>-filesystem
Sample
Package which provides the filesystem subpackage:
Name: foo1 Summary: A Package Requires foor1 = %{version}-%{release} %description Package filesystem Summary Files and directories common with other packages %description filesystem This package provides files and directories which are commont with other packages %files filesystem <List fo files, which are common with other packages>
Package which want to provides files and directories from the filesystem subpackage:
Name forr2 Requires: foo1-filesystem