[HOWTO?] Splitting one upstream package into several .debs
I am in the process of packaging aspell (and gaspell - a gtk front end
to aspell). When I take a virgin upstream source and package it up
(using dpkg-buildpackage) I get one huge Debian package.
Here is a listing (edited for brevity) of the contents of the package -
$ dpkg --contents
drwxr-xr-x root/root 0 1999-02-03 11:01 ./
drwxr-xr-x root/root 0 1999-02-03 11:01 usr/
drwxr-xr-x root/root 0 1999-02-03 11:02 usr/bin/
-rwxr-xr-x root/root 123836 1999-02-03 11:02 usr/bin/aspell
-rwxr-xr-x root/root 57 1999-02-03 11:02 usr/bin/run-with-aspell
drwxr-xr-x root/root 0 1999-02-03 11:01 usr/doc/
drwxr-xr-x root/root 0 1999-02-03 11:02 usr/doc/aspell/
drwxr-xr-x root/root 0 1999-02-03 11:01 usr/doc/aspell/man-html/
-rw-r--r-- root/root 6382 1999-02-03 11:01
usr/doc/aspell/man-html/1_Introduction.html
-rw-r--r-- root/root 12302 1999-02-03 11:01
usr/doc/aspell/man-html/2_Getting.html
.
.
.
-rw-r--r-- root/root 5405 1999-02-03 11:01
usr/doc/aspell/man-html/D_Glossary.html
-rw-r--r-- root/root 35024 1999-02-03 11:01
usr/doc/aspell/man-html/E_Copyright.html
-rw-r--r-- root/root 11340 1999-02-03 11:01
usr/doc/aspell/man-html/index.html
-rw-r--r-- root/root 11340 1999-02-03 11:01
usr/doc/aspell/man-html/manual.html
drwxr-xr-x root/root 0 1999-02-03 11:02 usr/doc/aspell/man-text/
-rw-r--r-- root/root 3760 1999-02-03 11:01
usr/doc/aspell/man-text/3_Aspell.txt.gz
.
.
.
-rw-r--r-- root/root 11668 1999-02-03 11:01
usr/doc/aspell/man-text/E_Copyright.txt.gz
-rw-r--r-- root/root 30319 1999-02-03 11:02
usr/doc/aspell/manual2.lyx.gz
-rw-r--r-- root/root 1664 1999-02-03 11:02
usr/doc/aspell/manual.aux.gz
-rw-r--r-- root/root 3621 1999-01-04 02:22 usr/doc/aspell/README.gz
-rw-r--r-- root/root 626 1999-02-03 10:50
usr/doc/aspell/README.Debian
-rw-r--r-- root/root 559 1999-02-03 10:49 usr/doc/aspell/copyright
-rw-r--r-- root/root 29868 1999-02-03 11:02
usr/doc/aspell/manual.tex.gz
-rw-r--r-- root/root 44986 1999-02-03 11:02
usr/doc/aspell/manual.dvi.gz
-rw-r--r-- root/root 224 1999-02-03 10:29
usr/doc/aspell/changelog.Debian.gz
drwxr-xr-x root/root 0 1999-02-03 11:02 usr/lib/
-rw-r--r-- root/root 445920 1999-02-03 11:02
usr/lib/libaspell.so.0.0.0
lrwxrwxrwx root/root 0 1999-02-03 11:01 usr/lib/libaspell.so.0
-> libaspell.so.0.0.0
lrwxrwxrwx root/root 0 1999-02-03 11:01 usr/lib/libaspell.so ->
libaspell.so.0.0.0
-rw-r--r-- root/root 479 1999-02-03 11:01 usr/lib/libaspell.la
-rw-r--r-- root/root 3050682 1999-02-03 11:02 usr/lib/libaspell.a
drwxr-xr-x root/root 0 1999-02-03 11:02 usr/lib/aspell/
-rwxr-xr-x root/root 23 1999-02-03 11:02 usr/lib/aspell/ispell
-rw-r--r-- root/root 1027782 1999-02-03 11:02
usr/lib/aspell/english.wrd
-rw-r--r-- root/root 704197 1999-02-03 11:02
usr/lib/aspell/english.sl
drwxr-xr-x root/root 0 1999-02-03 11:02 usr/include/
-rw-r--r-- root/root 3895 1999-02-03 11:02 usr/include/aspell.hh
-rw-r--r-- root/root 4495 1999-02-03 11:02
usr/include/const_string.hh
-rw-r--r-- root/root 2221 1999-02-03 11:02
usr/include/as_convert.hh
-rw-r--r-- root/root 1638 1999-02-03 11:02 usr/include/as_check.hh
-rw-r--r-- root/root 648 1999-02-03 11:02 usr/include/as_error.hh
-rw-r--r-- root/root 1852 1999-02-03 11:02
usr/include/as_mwordlist.hh
-rw-r--r-- root/root 8354 1999-02-03 11:02 usr/include/as_data.hh
I don't like the idea of creating one huge package. I was thinking of
splitting this into aspell.deb (which contains the binaries),
aspell-dev.deb (containing the libs and include files) and aspell-doc
(containing the .tex, .dvi, .txt and .html documentation).
So here is the question -
Do I have to create each package seperately (ie. tar zxvf
upstream_src.tgz, dh_make, edit, dpkg-buildpackage in each case)? Can
someone point me to another *simple* package that is split downstream
like this?
Thaths
--
Lisa: Why are you dedicating your life to blashphemy?
Homer: Don't worry sweetheart. If I am wrong I'll recant on my
deathbed.
Sudhakar C13n http://people.netscape.com/thaths/ Indentured Slave
Reply to: