Zim

Merge lp:~bratdaking/zim/pyzim-debianfiles into lp:~jaap.karssenberg/zim/pyzim

Proposed by Bart de Koning
Status: Merged
Merged at revision: not available
Proposed branch: lp:~bratdaking/zim/pyzim-debianfiles
Merge into: lp:~jaap.karssenberg/zim/pyzim
Diff against target: None lines
To merge this branch: bzr merge lp:~bratdaking/zim/pyzim-debianfiles
Reviewer Review Type Date Requested Status
Jaap Karssenberg Approve
Review via email: mp+11055@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Bart de Koning (bratdaking) wrote :

Used the http://ghantoos.org/2008/10/19/creating-a-deb-package-from-a-python-setuppy/ to make the files necessary to create debian/ubuntu packages easily. It uses cdbs to make up the rule automatically. You might have to change the debian/changelog file to match your GPG key.

It might be necessary to check the control file though, I was not sure of the section, and could have been mistaken in the recommends and suggests lists.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Sorry for the delay, will merge as soon as I'm online on a regular basis
again.

-- Jaap

On Wed, Sep 2, 2009 at 4:50 PM, Bart de Koning <email address hidden> wrote:

> Bart de Koning has proposed merging lp:~bratdaking/zim/pyzim-debianfiles
> into lp:zim/pyzim.
>
> Requested reviews:
> Jaap Karssenberg (pardus-cpan)
>
> Used the
> http://ghantoos.org/2008/10/19/creating-a-deb-package-from-a-python-setuppy/to make the files necessary to create debian/ubuntu packages easily. It uses
> cdbs to make up the rule automatically. You might have to change the
> debian/changelog file to match your GPG key.
>
> It might be necessary to check the control file though, I was not sure of
> the section, and could have been mistaken in the recommends and suggests
> lists.
>
>
>
> --
> https://code.launchpad.net/~bratdaking/zim/pyzim-debianfiles/+merge/11055<https://code.launchpad.net/%7Ebratdaking/zim/pyzim-debianfiles/+merge/11055>
> You are requested to review the proposed merge of
> lp:~bratdaking/zim/pyzim-debianfiles into lp:zim/pyzim.
>

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) :
review: Approve
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'Makefile'
2--- Makefile 1970-01-01 00:00:00 +0000
3+++ Makefile 2009-08-26 16:21:28 +0000
4@@ -0,0 +1,40 @@
5+# $Id: Makefile,v 1.6.1 2009/08/26 17:04:35 Bart de Koning Exp $
6+#
7+# Based on Makefile v 1.6 2008/10/29 01:01:35 by ghantoos
8+# http://ghantoos.org/2008/10/19/creating-a-deb-package-from-a-python-setuppy/#setuppy
9+
10+PYTHON=`which python`
11+DESTDIR=/
12+BUILDIR=$(CURDIR)/debian/pyzim
13+PROJECT=pyzim
14+VERSION=0.42.alpha2
15+
16+all:
17+ @echo "make source - Create source package"
18+ @echo "make install - Install on local system"
19+ @echo "make buildrpm - Generate a rpm package"
20+ @echo "make builddeb - Generate a deb package"
21+ @echo "make clean - Get rid of scratch and byte files"
22+
23+source:
24+ $(PYTHON) setup.py sdist $(COMPILE)
25+
26+install:
27+ $(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
28+
29+buildrpm:
30+ $(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
31+
32+builddeb:
33+ # build the source package in the parent directory
34+ # then rename it to project_version.orig.tar.gz
35+ $(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../ --prune
36+ rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
37+ # build the package
38+ dpkg-buildpackage -i -I -rfakeroot
39+
40+clean:
41+ $(PYTHON) setup.py clean
42+ $(MAKE) -f $(CURDIR)/debian/rules clean
43+ rm -rf build/ MANIFEST
44+ find . -name '*.pyc' -delete
45
46=== added directory 'debian'
47=== added file 'debian/changelog'
48--- debian/changelog 1970-01-01 00:00:00 +0000
49+++ debian/changelog 2009-09-02 13:54:17 +0000
50@@ -0,0 +1,5 @@
51+pyzim (0.42.alpha2-ubuntu1) jaunty; urgency=low
52+
53+ * Initial release. (Closes: #XXXXXX)
54+
55+ -- Bart de Koning <bratdaking@gmail.com> Wed, 26 Aug 2009 15:03:33 +0200
56
57=== added file 'debian/compat'
58--- debian/compat 1970-01-01 00:00:00 +0000
59+++ debian/compat 2009-08-26 15:11:24 +0000
60@@ -0,0 +1,1 @@
61+7
62
63=== added file 'debian/control'
64--- debian/control 1970-01-01 00:00:00 +0000
65+++ debian/control 2009-09-02 13:54:17 +0000
66@@ -0,0 +1,24 @@
67+Source: pyzim
68+Section: utils
69+Priority: optional
70+Maintainer: Bart de Koning <bratdaking@gmail.com>
71+Standards-Version: 3.8.0
72+Build-Depends: debhelper (>=7), python-support (>= 0.8), cdbs (>= 0.4.49)
73+Homepage: http://zim-wiki.org/
74+
75+Package: pyzim
76+Architecture: all
77+Depends: ${misc:Depends}, ${python:Depends}
78+Recommends: desktop-file-utils, bzr, subversion
79+Suggests: scrot
80+Conflicts: zim (<= 0.41)
81+Description: Graphical text editor based on wiki technologies
82+ Zim is a WYSIWYG text editor. It aims at bringing the concept of a wiki to
83+ your desktop. For example every page is saved as a text file with wiki markup.
84+ Pages can contain links to other pages, and are saved automatically. Creating
85+ a new page is as easy as linking to a non-existing page. Pages are
86+ ordered in a hierarchical structure that gives it the look and feel of an
87+ outliner.\n\n
88+ This tool can be used to keep track of TODO lists or ideas, to take notes
89+ during a meeting or to draft any other kind of text: blog entries,
90+ important mails, etc.
91
92=== added file 'debian/copyright'
93--- debian/copyright 1970-01-01 00:00:00 +0000
94+++ debian/copyright 2009-08-26 15:11:24 +0000
95@@ -0,0 +1,32 @@
96+This package was debianized by Bart de Koning <bratdaking@gmail.com>
97+ on Wed, 26 Aug 2009 15:03:33 +0200
98+
99+It was downloaded from: https://code.launchpad.net/~pardus-cpan/zim/pyzim
100+
101+Upstream Author(s): Jaap Karssenberg <pardus@cpan.org>
102+
103+Copyright:
104+ Copyright (C) 2008, 2009 Jaap Karssenberg <pardus@cpan.org>
105+
106+License:
107+
108+ This program is free software; you can redistribute it and/or modify
109+ it under the terms of the GNU General Public License as published by
110+ the Free Software Foundation; either version 2 of the License, or
111+ (at your option) any later version.
112+
113+ This program is distributed in the hope that it will be useful,
114+ but WITHOUT ANY WARRANTY; without even the implied warranty of
115+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
116+ GNU General Public License for more details.
117+
118+ You should have received a copy of the GNU General Public License
119+ along with this program; if not, write to the Free Software
120+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
121+ MA 02110-1301, USA.
122+
123+Packaging:
124+ Copyright (C) 2009 by Bart de Koning <bratdaking@gmail.com>
125+ released under the GNU General Public License as published by
126+ the Free Software Foundation; either version 2 of the License, or
127+ (at your option) any later version.
128
129=== added file 'debian/rules'
130--- debian/rules 1970-01-01 00:00:00 +0000
131+++ debian/rules 2009-08-26 16:21:28 +0000
132@@ -0,0 +1,12 @@
133+#!/usr/bin/make -f
134+# -*- makefile -*-
135+
136+DEB_PYTHON_SYSTEM := pysupport
137+
138+include /usr/share/cdbs/1/rules/debhelper.mk
139+include /usr/share/cdbs/1/class/python-distutils.mk
140+
141+clean::
142+ rm -rf build build-stamp configure-stamp build/ MANIFEST
143+ dh_clean
144+