Changes between Version 8 and Version 9 of RpmHowToPackagers


Ignore:
Timestamp:
Oct 30, 2010, 8:05:31 PM (13 years ago)
Author:
dmik
Comment:

Fix: The set of directories is created only when you do rpmbuild -ba some.spec.

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToPackagers

    v8 v9  
    88Instead 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.
    99
    10 The first time you start ''rpmbuild.exe'', it will create a set of directories in your %HOME% directory:
     10RPM packages are created from .spec files using the ''rpmbuild'' command. The first time you try to build a package (see '''Building package''' below), rpmbuild will create a set of directories in your %HOME% directory that it uses for the package generation process:
    1111 * %HOME%\rpmbuild\BUILD (temporary storage for compiled files)
    1212 * %HOME%\rpmbuild\BUILDROOT (temporary storage for installed files)