From Fedora Project Wiki

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 two or more packages provide a common set of files and directories without a technical requirement relationship between each other a filesystem subpackage that provides this set of common files and directories MUST be created.

Naming

The name of the filesystem 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

<Group name>-filesystem

Packaging

All files and directories which are needed by two or more packages in common, are packaged into the filesystem subpackage.

Each package which wants two provide one of these files or directories has to include a require statement which refers to the filesystem subpackage.

<package-name>-filesystem

Sample

A 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 common
with other packages

%files filesystem
<List of files, which are common with other packages>

Package which want to provides files and directories from the filesystem subpackage:


Name		forr2

Requires:	foo1-filesystem