Upstream to orig.tar.gz

Jeroen van Wolffelaar jeroen@wolffelaar.nl
Tue Feb 15 11:37:02 2005


On Tue, Feb 15, 2005 at 07:09:20PM +0100, Wolfgang Baer wrote:
> Hi all,
> 
> there is one area left with java packaging where I am not 100% sure if
> it is correct what I do. Sorry if thats the wrong list, but as I
> realized not correct tar.gz upstream source packages are normally for
> java projects.
> 
> I already realized that java upstream has several different upstream
> packages - zip files, jar file, with/without version, with/without
> top-level directory and with capital letters.
> 
> The "automatic" way for building the orig.tar.gz with dh_make works
> only for tar.gz upstream sources with lower case letters and a
> version number which starts with digits.
> 
> In the above cases I extracted the source tree - renamed/created the
> top-level directory with packagename-version and build the orig.tar.gz
> myself.
> 
> Please comment if I am totally wrong :-)

You don't need to repack for that, just use the original tarball.
dpkg-source will automatically extract into the right directory.

Only repack if you NEED to remove stuff from the tarball, do not repack
in any other case than that.
 
> Now I have a package with the following upstream name:
> 
> JRclient-RE817.tar.gz
> 
> What to do with it ? In the debian-policy is said the
> upstream version _should_ start with a digit. Is it therefore
> OK to just use lower case letters and repackage to jrclient-re817
> as top-level directory and rclient_re817.orig.tar.gz ?

You'll need a Debian upstream version that's sane. I don't know the
upstream numbering, what does RE mean here? I think you _must_ start
with a digit, even, though I'm not sure.

--Jeroen

-- 
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl