<!-- $Id: build.en.html.m4,v 1.3 2003/10/02 13:31:30 jan Exp $ -->
<head>
<title>Build Package</title>

<!-- inlcude the style sheets from seperate file -->
<link rel=stylesheet type="text/css" href="./freegis_cd.css">

<meta name="keywords" lang="de" 
content="FreeGIS, Free Software, Geographic, GIS, RPM, package">
</head>
<body bgcolor="#FFFFFF">



<table bgcolor="#FFFF66" width="100%">
<tr>
<td width=80%>
                <small>
                <strong><a href="./freegis_cd.en.html">FreeGIS CD</a></strong>
                &#187; Build Package</small>
                
                </small>
</td>
<td align=right> <small> <strong>
                <a href="./build.fr.html">->&nbsp;Fran�ais</a>
                </strong> </small>
</td>
<td align=right> <small> <strong>
                <a href="./build.de.html">->&nbsp;Deutsch</a>
                </strong> </small>
</td>
</tr>
</table>


<table cellpadding=2pt width="100%">
<tr>
<td valign=top bgcolor="#CCF6F6">
<h1>Build Package</h1>

This page describes howto build RPM install-packages from RPM
source-packages.
This adapts and optimizes an install-package specifically to your
system.

<p>
This is especially helpful to resolve version conflicts of dependent
packages. Furthermore, install-packages for other platforms (e.g. PowerPC)
can be created.

<p>
Note: It is also possible to build RPM packages on Debian systems.

<h2>Preparations</h2>

You need to do the following preparations to be able to
build the packages as a regular user.

<p>
Note: rpm must be at least version 4. Execute
<em>rpm --version</em> to find out about the version.

<ol>

<li>Create RPM directory structure
        <p>
        Choose a directory (e.g. $HOME/freegisrpm) and create the subdirectories
        BUILD, RPM, SOURCES, SPECS and SRPMS.

        A possible command sequence for this is:

<pre>
mkdir $HOME/freegisrpm
cd $HOME/freegisrpm
mkdir BUILD RPMS SOURCES SPECS SRPMS
</pre>

<li>Set environment variable RPM_DIR

<pre>
export RPM_DIR=$HOME/freegisrpm
</pre>

<li>Create $HOME/.rpmmacros
        <p>
        This file sets general preferences and some specific settings for
        signing packages.
        If you don't have a GnuPG-key, you can skip the signature settings
        i.e. drop the last 4 lines.
        A signature becomes important when you want to give away packages to third
        parties.

<pre>
%packager Name Lastname <Name.Lastname@mydomain.example> 

%_topdir /home/mylogin/freegisrpm

%_signature gpg
%_gpg_name Name Lastname
%_pgp_path ~/.gnupg
%_pgpbin /usr/bin/gpg
</pre>

</ol>

<h2>Installing the RPM source-package</h2>

Now you can install any RPM source-package.
It's components are installed into the corresponding subdirectories
of your rpm-directory.
Essentially these are the sources (into directory SOURCES) and the
so-called spec-file which contains all build instructions. The spec-file
will go into the SPEC directory.

<p>
Example:

<pre>
rpm --install /cdrom/src/gdal-1.1.8.src.rpm
</pre>

<h2>Create install-package</h2>

Go to the directory with the spec-files and rebuild the package:

<pre>
cd $HOME/freegisrpm/SPECS
rpm -bb gdal.spec
</pre>

Next, you will find the newly created package in $HOME/freegisrpm/RPMS/i386.
If you build the package for another architecture than i386, then the name of
the directory has a corresponding name.

<h2>Documentation of RPM</h2>

With the command

<pre>
man rpm
</pre>

or

<pre>
rpm --help
</pre>

you will can help for the various command line options of RPM.

<p>
For more information see
<a href="http://www.rpm.org/">homepage of RPM</a>.

</td>
<td valign=top bgcolor="#FFFFDD">
                <!-- $Id: navigation.en.html.m4,v 1.30 2003/08/18 10:43:46 jan Exp $ -->
<!-- M4: define a link-makro that will do one exception: -->






<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="freegis_cd.en.html" class="nav">FreeGIS CD</a></b><br>
</td>
</tr>
</table>

<a href="requirements.en.html" class="nav">Requirements</a><br>
<a href="installation.en.html" class="nav">Installation</a><br>
<a href="deinstallation.en.html" class="nav">De-Installation</a><br>
<a href="help.en.html" class="nav">Help</a><br>
<a href="changes.en.html" class="nav">Changes</a><br>

<table width="100%" bgcolor="#ccf6f6" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
&#187;Build Package
</td>
</tr>
</table>

Introduction<br>
&nbsp;&nbsp;<a href="idea.en.html" class="nav">Idea</a><br>
&nbsp;&nbsp;<a href="editboard.en.html" class="nav">Editorial&nbsp;Board</a><br>
&nbsp;&nbsp;<a href="download.en.html" class="nav">Download</a><br>
&nbsp;&nbsp;<a href="order.en.html" class="nav">Order</a><br>
<a href="warranty.en.html" class="nav">No Warranty</a><br>


<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="applications.en.html" class="nav">Applications</a></b><br>
</td>
</tr>
</table>

<a href="grass.en.html" class="nav">GRASS</a><br>
<a href="gmt.en.html" class="nav">GMT</a><br>
<a href="igmt.en.html" class="nav">iGMT</a><br>
<!--<a href="gmap.en.html" class="nav">gmap</a><br>-->
<a href="mapserver.en.html" class="nav">mapserver</a><br>
<a href="mapit.en.html" class="nav">MapIt!</a><br>
<a href="thuban.en.html" class="nav">Thuban</a><br>
<a href="gpsdrive.en.html" class="nav">GpsDrive</a><br>
<a href="gpsman.en.html" class="nav">GPSMan</a><br>
<a href="g3dgmv.en.html" class="nav">g3DGMV</a><br>
<a href="bbbike.en.html" class="nav">BBBike</a><br>


<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="libraries.en.html" class="nav">Libraries</a></b><br>
</td>
</tr>
</table>

<a href="shapelib.en.html" class="nav">shapelib</a><br>
<a href="tkgeomap.en.html" class="nav">tkgeomap</a><br>
<a href="gdal.en.html" class="nav">GDAL</a><br>


<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="conversiontools.en.html" class="nav">Conversion tools</a></b><br>
</td>
</tr>
</table>

<a href="gen2shp.en.html" class="nav">gen2shp</a><br>
<a href="proj.4.en.html" class="nav">PROJ.4</a><br>


<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="data.en.html" class="nav">Data</a></b><br>
</td>
</tr>
</table>

<a href="gmtdata.en.html" class="nav">GMT&nbsp;Data</a><br>
<a href="globe.en.html" class="nav">GLOBE</a><br>
<a href="usgazetteer.en.html" class="nav">U.S. Gazetteer Place File</a><br>
<a href="awips.en.html" class="nav">AWIPS</a><br>
<a href="nsd.en.html" class="nav">NWS Weather Stations</a><br>
<a href="frida.en.html" class="nav">Frida</a><br>



<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="documentation.en.html" class="nav">Documentation</a></b><br>
</td>
</tr>
</table>

<a href="freegiscd.en.html" class="nav">... of this CD</a><br>
<a href="freegistutorial.en.html" class="nav">FreeGIS-tutorial (German only)</a><br>
<a href="grassdoc.en.html" class="nav">GRASS</a><br>
<a href="globedoc.en.html" class="nav">GLOBE</a><br>
<a href="proj4doc.en.html" class="nav">PROJ.4</a><br>
<a href="gavdoc.en.html" class="nav">GAV GRASS Course</a><br>
<a href="grasshb.en.html" class="nav">GRASS Handbook (German only)</a><br>
<!--<a href="ms-tutorial.en.html" class="nav">MapServer tutorial</a><br>-->


<table width="100%" bgcolor="#FFFF66" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">
<b><a href="service.en.html" class="nav">Commercial Service</a></b><br>
</td>
</tr>
</table>

<a href="gdfbr.en.html" class="nav">GDF bR</a><br>
<a href="intevation.en.html" class="nav">Intevation GmbH</a><br>

</td>
</table>

Last modified: Thu Oct  2 15:32:53 CEST 2003 <br>
Jan-Oliver Wagner 
<a href="mailto: jan@intevation.de"
>&lt;jan@intevation.de&gt;</a><br>
</body>