From Fedora Project Wiki

< PackagingDrafts

Revision as of 18:08, 28 June 2009 by S4504kr (talk | contribs) (Created page with '= Guidelines for creating filesystem subpackages = == When to create filesystem subapckages == If there two or more packages which provide a common set of files and directories...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Guidelines for creating filesystem subpackages

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