From Fedora Project Wiki

(More links)
Line 1: Line 1:
== Creating Package HOWTO ==
== Creating Package HOWTO ==


This page describes how to create an RPM package on Fedora, particularly how to create a .spec file.
This page describes the mechanics of how to create an RPM package for Fedora, and in particular,
how to create a .spec file. It also gives some practical warnings about stuff that will or won't work,
which may save you hours of time later.
 
== Introduction ==
 
Nearly all Linux distributions can install and uninstall programs as "packages".
Fedora, and many other Linux distributions, use the "RPM" format for packages.
There are tools that make it easy to create RPM packages; the key is to write
a ".spec" file that explains to RPM how to build and install the program.
 
 
 
 
== For more information ==


This page only discusses the mechanics of creating a package.
This page only discusses the mechanics of creating a package.
Line 11: Line 25:
The [[PackageMaintainers/UpdatingPackageHowTo|Updating Package HOWTO]] describes how to update
The [[PackageMaintainers/UpdatingPackageHowTo|Updating Package HOWTO]] describes how to update
an existing package you maintain in Fedora.
an existing package you maintain in Fedora.
[[Packaging/ScriptletSnippets Scriptlet Snippets]] has some useful examples of scriptlets.
For more information see:
* [http://www.g-loaded.eu/2006/04/05/how-to-build-rpm-packages-on-fedora/ How to build RPM packages on Fedora] - quick run-through
* [http://www.redhatmagazine.com/2008/02/28/when-sally-met-eddie-the-fedora-package-story/ When Sally met Eddie]
* [http://rpm.org/max-rpm-snapshot/ Maximum RPM Book]
* [http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-creating-rpms.html
RPM Guide, section on creating RPMs]
* [http://docs.fedoraproject.org/developers-guide/ch-rpm-building.html Developer's guide, section on building RPMs]

Revision as of 20:12, 19 June 2008

Creating Package HOWTO

This page describes the mechanics of how to create an RPM package for Fedora, and in particular, how to create a .spec file. It also gives some practical warnings about stuff that will or won't work, which may save you hours of time later.

Introduction

Nearly all Linux distributions can install and uninstall programs as "packages". Fedora, and many other Linux distributions, use the "RPM" format for packages. There are tools that make it easy to create RPM packages; the key is to write a ".spec" file that explains to RPM how to build and install the program.



For more information

This page only discusses the mechanics of creating a package. For more information about packaging, see Package Maintainers page, especially the Packaging Guidelines and How to join the Fedora Package Collection Maintainers (which explains how to become a package maintainer). The Updating Package HOWTO describes how to update an existing package you maintain in Fedora. Packaging/ScriptletSnippets Scriptlet Snippets has some useful examples of scriptlets.

For more information see:

RPM Guide, section on creating RPMs]