Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > d92aa75c2d384ff9f513aed09a46f703 > files > 165

parrot-doc-3.1.0-2.mga1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Parrot  - Ubuntu Packaging Guide</title>
        <link rel="stylesheet" type="text/css"
            href="../../../resources/parrot.css"
            media="all">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <a href="http://www.parrot.org">
                <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot">
                </a>
            </div> <!-- "header" -->
            <div id="divider"></div>
            <div id="mainbody">
                <div id="breadcrumb">
                    <a href="../../../html/index.html">Home</a> &raquo; <a href="../../../html/developer.html">Developer Documentation</a> &raquo; Ubuntu Packaging Guide
                </div>

<h1><a name="Ubuntu_Packaging_Guide"
>Ubuntu Packaging Guide</a></h1>

<p>This is a quick set of instructions for packaging Parrot for Ubuntu.
See the Ubuntu Packaging Guide (https://wiki.ubuntu.com/PackagingGuide) and the guide to the Person Package Archive (PPA) (https://help.launchpad.net/Packaging/PPA) for more details.</p>

<p>This guide assumes that you&#39;re running in a chroot environment set up as in: <a href='https://trac.parrot.org/parrot/wiki/ChrootSetup'>https://trac.parrot.org/parrot/wiki/ChrootSetup</a>,
and also assumes that you&#39;ve already built the corresponding Debian package for the release as documented in <a href='TODO#project%2Fdebian_packaging_guide.pod'>&#34;project/debian_packaging_guide.pod&#34; in docs</a>.</p>

<p>To package Parrot for Ubuntu:</p>

<dl>
<dt><a name="0."
>0.</a></dt>
Download the latest tarball.
<dt><a name="1."
>1.</a></dt>
Compile it and run the tests,
just to be sure the tarball is sound (especially useful if you&#39;re running in a chroot environment different than your usual dev environment).
<dt><a name="2."
>2.</a></dt>
Create a new directory.
(The name is irrelevant,
but we&#39;ll use <em>~/udeb/parrot</em> for the sake of illustration.)Create a fresh extract of the tarball in the <em>~/udeb/parrot</em> directory.
The directory should be named <em>parrot&#45;[version]</em> (it will be by default).Copy the original tarball into <em>~/udeb/parrot</em>,
naming it <em>parrot_[version].orig.tar.gz</em> (note the &#34;_&#34; in place of dash).
<dt><a name="3."
>3.</a></dt>
Integrate any new change entries from <em>ports/debian/changelog</em> into <em>ports/ubuntu/changelog</em>,
preserving chronological order.Copy the <em>ports/debian/</em> directory from the Parrot source tree into the fresh tarball extract.
<pre>  cp &#45;r &#60;path/to/parrot/git&#62;/ports/debian ~/udeb/parrot/parrot&#45;[version]/.</pre>
Then copy the unique Ubuntu files (<em>changelog</em> and <em>control.in</em>) from <em>ports/ubuntu/</em> into the new <em>debian/</em> directory.
<pre>  cp &#60;path/to/parrot/git&#62;/ports/ubuntu/* ~/udeb/parrot/parrot&#45;[version]/debian/.</pre>

<dt><a name="4."
>4.</a></dt>
Add a new entry to the <em>changelog</em> file in <em>~/udeb/parrot/parrot&#45;[version]/debian/</em> for the Ubuntu package. Copy the first line from the Debian changelog. Add <code>ubuntu#</code> after the Debian version to indicate the Ubuntu revision of the package, and for PPA uploads also add <code>~ppa#</code>. Instead of the Debian branch (&#39;unstable&#39;) use the target Ubuntu distribution (&#39;intrepid&#39;).
<pre>  parrot (0.5.1&#45;1ubuntu1) intrepid; urgency=low</pre>
The changelog entry for the Ubuntu release is generally:
<pre>  * Synchronize with Debian unstable.</pre>
Add any custom changes for Ubuntu packaging (rare). The final line gives the maintainer&#39;s name, email address, and the date. The date must be in RFC822 format, and can be generated by running <code>date &#45;R</code>. (Note that two spaces are required between the email and the date.)
<pre>   &#45;&#45; Your Name &#60;you@example.org&#62;  Sun, 30 Dec 2007 17:21:45 +0000</pre>

<dt><a name="5."
>5.</a></dt>
Install all dependencies:
<pre>  $ sudo /usr/lib/pbuilder/pbuilder&#45;satisfydepends</pre>

<dt><a name="6."
>6.</a></dt>
Build the source packages. From <em>~/udeb/parrot/parrot_[version]/</em>, run:
<pre>  $ debuild &#45;S &#45;sa</pre>

<dt><a name="7."
>7.</a></dt>
Update Parrot&#39;s PPA with the new release (configured in ChrootSetup). From <em>~/udeb/parrot/</em> run:
<pre>  $ dput parrot&#45;ppa parrot_[version]_source.changes</pre>

<dt><a name="8."
>8.</a></dt>
Commit the Ubuntu <em>changelog</em> file to the <em>ports/ubuntu/</em> directory in the repository. (At the moment, we&#39;re keeping the Debian packages as the primary.)</dl>
            </div> <!-- "mainbody" -->
            <div id="divider"></div>
            <div id="footer">
	        Copyright &copy; 2002-2011, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>