merge experimental debian stuff from gramps40

This commit is contained in:
Jérôme Rapinat 2014-04-20 10:18:21 +02:00
parent 774e25b050
commit 2bdda43936
23 changed files with 121 additions and 61 deletions

14
debian/README.Debian vendored
View File

@ -1,10 +1,18 @@
gramps for Debian Gramps for Debian
---------------------- ----------------------
This is the Debian package of the 4.0 series of GRAMPS. This is the Debian package of the 4.0 series of GRAMPS.
It is a major update of Gramps to enable a switch to Python 3 as the default interpreter, It is a major update of Gramps to upgrade to GTK 3. A switch was also made to distutils from autotools.
and to upgrade to GTK 3. A switch was also made to distutils from autotools.
The 4.0 series of Gramps is being packaged for the experimental distribution until all dependencies are available The 4.0 series of Gramps is being packaged for the experimental distribution until all dependencies are available
and it proves stable. and it proves stable.
Webkit - gir1.2-webkit-3.0 crashes. Gramps has been patched disable the hidden
HTML view instead until a solution is found.
Goocanvas2 - The latest Goocanvas is not available in Debian yet. If you miss
the Graphview plugin, you could try installing the gir1.2-goocanvas-2.0-9 which
is available in Ubuntu.
-- Ross Gammon <rossgammon@mail.dk> Sat, 25 Jan 2014 18:00:00 +0100

12
debian/changelog vendored
View File

@ -1,3 +1,15 @@
gramps (4.0.3) precise; urgency=low
* - 4.0.4-git.f08e40 Experimental stream gramps.git
-- Jérôme Rapinat <romjerome@yahoo.fr> Tue, 04 Feb 2014 19:49:32 +0100
gramps (4.0.2) precise; urgency=low
* experimental .deb for gramps 4.0.2
-- Jérôme Rapinat <romjerome@yahoo.fr> Wed, 04 Dec 2013 10:23:36 +0100
gramps (4.0.1-2) precise; urgency=low gramps (4.0.1-2) precise; urgency=low
* bug 6918: make package more compliant according to Debian policy * bug 6918: make package more compliant according to Debian policy

40
debian/control vendored
View File

@ -1,20 +1,42 @@
Source: gramps Source: gramps
Section: gnome Section: python
Priority: optional Priority: optional
Maintainer: Ross Gammon <rossgammon@mail.dk> Maintainer: Ross Gammon <rossgammon@mail.dk>
Build-Depends-Indep: libxml-parser-perl, gettext, python3-all, intltool, dh-python, python3-setuptools Build-Depends-Indep:
Build-Depends: debhelper (>= 9.0.0) dh-linktree,
gettext,
intltool,
libxml-parser-perl,
python-all,
python-setuptools
Build-Depends:
debhelper (>= 9.0.0)
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Vcs-Git: git://anonscm.debian.org/collab-maint/gramps.git Vcs-Git: git://anonscm.debian.org/collab-maint/gramps.git
Vcs-browser: http://anonscm.debian.org/git/collab-maint/gramps.git Vcs-browser: http://anonscm.debian.org/gitweb/?p=collab-maint/gramps.git
Homepage: http://www.gramps-project.org/ Homepage: http://www.gramps-project.org/
X-Python3-Version: >= 3.2 X-Python-Version: >= 2.7
Package: gramps Package: python-gramps
Architecture: all Architecture: all
Depends: ${python3:Depends}, librsvg2-2, xdg-utils, python-gobject (>= 3.3.2), gir1.2-gtk-3.0, python3-gi-cairo, python3-bsddb3, ${misc:Depends} Depends:
Recommends: graphviz, python-pyicu gir1.2-gtk-3.0,
Suggests: ttf-freefont, python-gtkspell, rcs, python3-pil.imagetk, python-pygoocanvas, python-webkit, gir1.2-gexiv2-0.4 librsvg2-2,
python-gi,
python-gi-cairo,
xdg-utils,
${misc:Depends},
${python:Depends}
Recommends:
graphviz,
libosmgpsmap-1.0-0-dev,
python-pyicu
Suggests:
fonts-freefont-ttf,
gir1.2-gexiv2-0.4,
gir1.2-gtk-gtkspell3-3.0,
python-pil,
rcs
Description: Genealogical research program Description: Genealogical research program
GRAMPS is an Open Source genealogy program written in Python, using GRAMPS is an Open Source genealogy program written in Python, using
the GTK/GNOME interface. It is an extremely flexible program fitting the GTK/GNOME interface. It is an extremely flexible program fitting

7
debian/gbp.conf vendored
View File

@ -1,7 +0,0 @@
[DEFAULT]
# the default build command
#builder=debuild -i\.git -I.git
# the default branch for experimental upstream sources
upstream-branch=upstream
# the default branch for the debian patch
debian-branch=experimental

View File

@ -1,2 +0,0 @@
NEWS
README

2
debian/gramps.dirs vendored
View File

@ -1,2 +0,0 @@
usr/share/pixmaps
usr/share/mime/packages

5
debian/gramps.docs vendored
View File

@ -1,5 +0,0 @@
AUTHORS
FAQ
NEWS
README
TODO

3
debian/gramps.files vendored
View File

@ -1,3 +0,0 @@
/usr/bin/
/usr/share/
/etc

View File

@ -1 +1,2 @@
# Install icon to the correct place
debian/gramps.xpm usr/share/pixmaps/ debian/gramps.xpm usr/share/pixmaps/

View File

@ -1 +0,0 @@
data/man/gramps.1.in

3
debian/gramps.menu vendored
View File

@ -1,3 +0,0 @@
?package(gramps):needs="X11" section="Applications/Office"\
title="gramps" command="/usr/bin/gramps"\
icon="/usr/share/pixmaps/gramps.xpm"

View File

@ -1,3 +0,0 @@
#!/bin/sh -e
#DEBHELPER#

View File

@ -1,3 +0,0 @@
#!/bin/sh -e
#DEBHELPER#

3
debian/gramps.prerm vendored
View File

@ -1,3 +0,0 @@
#!/bin/sh -e
# #DEBHELPER#

View File

@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 3f702ae..9622d75 100644
--- a/setup.py
+++ b/setup.py
@@ -248,7 +248,7 @@ class install(_install):
'utils', 'resource-path')
with io.open(resource_file, 'w', encoding='utf-8',
errors='strict') as fp:
- path = os.path.abspath(os.path.join(self.install_data, 'share'))
+ path = '/usr/share'
if sys.version_info[0] < 3:
path = unicode(path)
fp.write(path)

View File

@ -0,0 +1,22 @@
diff --git a/gramps/plugins/view/htmlrenderer.py b/gramps/plugins/view/htmlrenderer.py
index c41942a..8f35b16 100644
--- a/gramps/plugins/view/htmlrenderer.py
+++ b/gramps/plugins/view/htmlrenderer.py
@@ -122,11 +122,12 @@ user_pref("general.useragent.locale, %(lang)s);
TOOLKIT = NOWEB
-try:
- from gi.repository import WebKit as webkit
- TOOLKIT = WEBKIT
-except:
- pass
+#Disable webkit as it is causing a crash in Gramps 4.0.2
+#try:
+# from gi.repository import WebKit as webkit
+# TOOLKIT = WEBKIT
+#except:
+# pass
#no interfaces present, raise Error so that options for GeoView do not show
if TOOLKIT == NOWEB :

2
debian/patches/series vendored Normal file
View File

@ -0,0 +1,2 @@
0001-Correct-resource-path-in-setup.py.patch
0002-Disable-HTML-View.patch

1
debian/pycompat vendored
View File

@ -1 +0,0 @@
2

36
debian/rules vendored
View File

@ -1,25 +1,37 @@
#!/usr/bin/make -f #!/usr/bin/make -f
# Remember to remove verbose option once testing is finished # Uncomment this to turn on verbose mode.
DH_VERBOSE=1 export DH_VERBOSE=1
export PYBUILD_NAME=gramps export DH_OPTIONS=-v
%: %:
dh $@ --with python3 --buildsystem=pybuild dh $@ --with python2
# Override auto test because upstream do not use the standard unittest discover # Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test: override_dh_auto_test:
# Override of auto_build to force python 3 # Override of auto_build
override_dh_auto_build: override_dh_auto_build:
python3 setup.py build python setup.py build
# Override of auto_install to force python 3 # Override of auto_install to remove information from package
override_dh_auto_install: override_dh_auto_install:
python3 setup.py install --root=debian/gramps --install-layout=deb #dh_auto_install
# Need COPYING file into About dialog # Remove duplicate copyright information
#rm debian/gramps/usr/share/doc/gramps/COPYING #rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/COPYING
# Remove install file as it is not needed by package users # Remove install file as it is not needed by package users
rm debian/gramps/usr/share/doc/gramps/INSTALL #rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/INSTALL
# Remove duplicate license information # Remove duplicate license information
rm debian/gramps/usr/share/doc/gramps/LICENSE #rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/LICENSE
python setup.py install --root=debian/python-gramps --install-layout=deb
# Make css style sheets and png icons non-executable
override_dh_fixperms:
dh_fixperms
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/css/Web_*.css
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/22x22/gramps*.png
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/16x16/gramps*.png
# Avoid compressing COPYING file so that it can appear in the "About" dialog
override_dh_compress:
dh_compress -X COPYING

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
1.0

1
debian/source/local-options vendored Normal file
View File

@ -0,0 +1 @@
unapply-patches

2
debian/substvars vendored
View File

@ -1,2 +0,0 @@
shlibs:Depends=libbonobo2-0 (>= 2.4.3), libc6 (>= 2.3.2.ds1-4), libglib2.0-0 (>= 2.2.3), libgnomevfs2-0 (>= 2.4.1), libgnomevfs2-common (>= 2.4.1), liborbit2 (>= 1:2.8.0)
python:Depends=python (>= 2.3), python (<< 2.4)

5
debian/watch vendored
View File

@ -1,3 +1,4 @@
# watch control file for uscan
version=3 version=3
http://sf.net/gramps/gramps-(.+)\.tar\.gz debian uupdate
opts="dversionmangle=s/\+dfsg//g" \
http://sf.net/gramps/gramps-(.+)\.tar\.gz