summaryrefslogtreecommitdiff
path: root/debian/README.building
blob: bb96b4d8d399be9ad3983cd23b329c4e54abbfe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Building the gimp-print Debian packages	                 -*- mode: text -*-
=======================================


Prerequisites
-------------

The packages that must be installed to build the gimp-print packages
are listed in the Build-Depends field of the control file
debian/control[.in].  However, these are the prerequisites to build
the Debianised source.  Other things may be needed if building
directly from CVS; it is less likely other tools will be needed if
building from a distributed tarball.  Other tools that might
potentially be needed are the latest versions of gettext and
texi2html.


General
-------

Please note the Build-Depends line in debian/control, which lists the
packages needed to be installed in order to build the packages, in
addition to the standard package building tools.

The simplest way to build the packages is the `deb' target:

$ make deb

This must be done after running `configure' (or `autogen.sh' if
building from CVS).  This target makes a tarball, unpacks it, then
builds packages from it with `debuild'.  The output is placed in the
directory `debian-build'.  If you wish to change the version number,
edit debian/changelog first.

If this is not flexible enough, the more detailed instructions below
may be of help.


Building this package from CVS
------------------------------

If you have changed any of the build scripts, run ./autogen.sh first.

It is best to not build directly from your checked out CVS sources,
but first run:

$ ./configure
$ touch .noupdate [prevent updating the ChangeLog, if this causes problems]
$ make dist

Now proceed as for building from a tarball, below.


Building this package from a tarball
------------------------------------

Take the tarball gimp-print-VERSION.tar.gz, and copy it to an empty
build directory.  Rename it to gimp-print_VERSION.orig.tar.gz.  This
is the `upstream' source.  Then extract this with:

$ tar xfvz gimp-print_VERSION.orig.tar.gz
$ cd gimp-print-VERSION

If needed, modify debian/changelog to change the version
numbering. The version number should be the same as the package
version number, followed by a hyphen and a Debian package revision
number e.g. 4.2.0-1 for release 4.2.0, Debian revision 1.  If you use
`dpkg-buildpackage', run

$ debian/rules debian/control

after changing the version number.  This is done automatically if
using `debuild'.

To build the packages:

$ dpkg-buildpackage -rfakeroot -us -uc
or
$ debuild -us -uc -L -i

It should build without problems on Debian 3.0 (woody) and unstable,
but will no longer build on Debian 2.2 (potato) current testing and
unstable distributions.


I hope you like it!

Roger Leigh <roger@whinlatter.uklinux.net> -- Tue, 18 Sep 2001 17:06:40 +0100