Archive:PackagingDrafts/StaticLibraryPolicy

From FedoraProject

Jump to: navigation, search

This is an update to the existing sections in the Packaging/Guidelines.

Packaging Static Libraries

1. Static libraries and shared libraries.' In this case, the static libraries must be placed in a *-static subpackage. Separating the static libraries from the other development files in *-devel allow us to track this usage by checking which packages Build'Require the *-static package. The intent is that whenever possible, packages will move away from using these static libraries, to the shared libraries. 2. Static libraries only. When a package only provides static libraries you can place all the static library files in the *-devel subpackage. When doing this you also must have a virtual Provide for the *-static package:

%package devel
Provides: foo-static = %{version}-%{release}

Packages which explicitly need to link against the static version must BuildRequire: foo-static, so that the usage can be tracked.

.....

Programs which don't need to notify FESCo