Changes between Version 14 and Version 15 of RpmHowToPackagers


Ignore:
Timestamp:
Aug 25, 2011, 12:41:32 PM (13 years ago)
Author:
dmik
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToPackagers

    v14 v15  
    1313== Introduction ==
    1414RPM uses a special file to compile source code, prepare installation and create .rpm files: it is a .spec file, which is just a bunch of shell commands to prepare, build, install, check and clean the setup.
     15
     16The Fedora project has a very good [http://fedoraproject.org/wiki/How_to_create_an_RPM_package manual on creating RPM packages]. It is recommended to read it through in addition to reading these brief instructions to get deeper understanding of the RPM creation process.
     17
     18
    1519
    1620Instead of writing a .spec file from scratch, you can get an existing one: a good source for them is the [http://www.rpmfind.net RPM find service]. Enter the name of your package, and choose a distribution. Usually packages for Fedora or OpenSUSE 11.3 are good. Select your package from the left link, you will get a page with all details; one of them is the .src.rpm package, it contains the spec file, platform specific patches, package sources (in .tar.gz, .tar.bz2, .tar.xz format). Use  unrpm.cmd (check bootstrap directory) to extract all files to a temporary location.