Differences between revisions 5 and 6
Revision 5 as of 2007-09-13 18:59:09
Size: 1571
Editor: OndrejCertik
Comment:
Revision 6 as of 2007-09-13 21:23:21
Size: 1783
Comment: add info about svn-inject, other minor changes
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Create a project == == Injecting new package ==
Line 3: Line 3:
Substitute your alioth name for "certik-guest": Remember to substitute "certik-guest" with your alioth account name.

=== using svn-inject ===

{{{
svn-inject -o pypar2_1.4-1.dsc svn+ssh://certik-guest@svn.debian.org/svn/python-apps/packages/
}}}

=== manually ===
Line 12: Line 21:
mkdir debian #put other files in there mkdir debian # put other files in there
Line 18: Line 27:
== Build the package == == Building the package ==
Line 35: Line 44:
== How to get the orig tarball == == How to get the tarball with upstream sources? ==
Line 39: Line 48:
uscan --force-download uscan --force-download --rename
Line 41: Line 50:
Some packages need to great the dfsg tarball: Some packages need to great the DFSG tarball:
Line 46: Line 55:
}}}
Line 48: Line 56:
== More informatin on svn-buildpackage == == More informations on svn-buildpackage ==

Injecting new package

Remember to substitute "certik-guest" with your alioth account name.

using svn-inject

svn-inject -o pypar2_1.4-1.dsc svn+ssh://certik-guest@svn.debian.org/svn/python-apps/packages/

manually

svn mkdir svn+ssh://certik-guest@svn.debian.org/svn/python-apps/packages/mayavi2
svn mkdir svn+ssh://certik-guest@svn.debian.org/svn/python-apps/packages/mayavi2/trunk
svn co svn+ssh://certik-guest@svn.debian.org/svn/python-apps/packages/mayavi2/trunk mayavi2
cd mayavi2

Put your debian directory here and all the other files

mkdir debian   # put other files in there
svn add debian
svn propset mergeWithUpstream 1 debian
svn ci

Building the package

svn co svn+ssh://certik-guest@svn.debian.org/svn/python-apps/packages/mayavi2/trunk mayavi2
cd mayavi2

Get the orig tarball and put it to ../tarballs. Then

svn-buildpackage -rfakeroot

Hint: put

alias svn-b='svn-buildpackage -rfakeroot --svn-ignore-new  -uc -us'

into your ~/.bashrc and use the svn-b command to build the package with local modification and without signing, to test, that everything works, before a commit.

How to get the tarball with upstream sources?

If the package uses the watch file:

uscan --force-download --rename

Some packages need to great the DFSG tarball:

debian/rules get-orig-tarball

see debian/rules for details, usually it will download the original upstream tar.gz from the web, unpack it, deletes non-free stuff and pack it again.

More informations on svn-buildpackage

See: