Build deb packages. This is still alpha

git-svn-id: svn://svn.berlios.de/gpodder@9 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Peter Hoffmann 2005-11-22 13:57:08 +00:00
parent f0b0e90977
commit 2ed7a0e647
3 changed files with 96 additions and 0 deletions

View File

@ -20,6 +20,12 @@ all:
test:
$(BINFILE) --debug
deb:
@echo "##########################################################################"
@echo "# This is still alpha, see doc/dev/debian.txt for more info. #"
@echo "##########################################################################"
python setup.py bdist_deb --maintainer "Peter Hoffmann <tosh@cs.tu-berlin.de>" --extra-depends "python-gtk2, python-glade2, python-xml, wget"
release: generators
python setup.py sdist

48
doc/dev/debian.html Normal file
View File

@ -0,0 +1,48 @@
<html><body>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" ><h1> Howto patch distutils for building deb packages </h1>
<p>Get Patch from the bottom of
</p>
<ul>
<li> <a class="external" href="https://sourceforge.net/tracker/?func=detail&amp;atid=305470&amp;aid=1054967&amp;group_id=5470">https://sourceforge.net/tracker/?func=detail&amp;atid=305470&amp;aid=1054967&amp;group_id=5470</a></li>
</ul>
<p>Get the distutils cvs version:
</p>
<pre class="code">
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/python co -P distutils
cp -r distutils cvs.3
</pre>
<p>Unzip the patch and apply it:
</p>
<pre class="code">
gunzip distutils-cvs_bdist_deb-20041111.patch.gz
patch -p0 &lt;distutils-cvs_bdist_deb-20041111.patch
</pre>
<p>It is better to keep your version of distutils and install the patched version
somewhere else:
</p>
<pre class="code">
cd cvs.3
python setup.py install --root=/home/ph/tmp
</pre>
<p>Add the new version of distutils to your pythonpath:
</p><pre class="code">
export PYTHONPATH=/home/ph/tmp/lib/python/
</pre>
<p>Maybe you need to install devscripts
</p><pre class="code">
sudo apt-get install devscripts
</pre>
<p>Build the new pakage
</p><pre class="code">
python setup.py bdist_deb --maintainer Peter Hoffmann &lt;tosh@cs.tu-berlin.de&gt; --extra-depends "python-gtk2, python-glade2, python-xml, wget"
</pre>
</body></html>

42
doc/dev/debian.txt Normal file
View File

@ -0,0 +1,42 @@
= Howto patch distutils for building deb packages =
Get Patch from the bottom of
* https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1054967&group_id=5470
Get the distutils cvs version:
{{{
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/python co -P distutils
cp -r distutils cvs.3
}}}
Unzip the patch and apply it:
{{{
gunzip distutils-cvs_bdist_deb-20041111.patch.gz
patch -p0 <distutils-cvs_bdist_deb-20041111.patch
}}}
It is better to keep your version of distutils and install the patched version
somewhere else:
{{{
cd cvs.3
python setup.py install --root=/home/ph/tmp
}}}
Add the new version of distutils to your pythonpath:
{{{
export PYTHONPATH=/home/ph/tmp/lib/python/
}}}
Maybe you need to install devscripts
{{{
sudo apt-get install devscripts
}}}
Build the new pakage
{{{
python setup.py bdist_deb --maintainer "Peter Hoffmann <tosh@cs.tu-berlin.de>" --extra-depends "python-gtk2, python-glade2, python-xml, wget"
}}}