From fd5433363eb84960fcf7be4e2213dfa2d224283a Mon Sep 17 00:00:00 2001 From: Ross Gammon Date: Mon, 19 Feb 2018 07:28:36 +0100 Subject: [PATCH] Resync debian dir from Debian 5.0 experimental branch --- debian/NEWS | 18 ++ debian/README.Debian | 24 +-- debian/README.test | 157 +++++++++++++++++ debian/compat | 2 +- debian/control | 51 ++++-- debian/copyright | 276 ++++-------------------------- debian/gbp.conf | 18 ++ debian/gramps.docs | 1 + debian/rules | 48 +++--- debian/source/format | 2 +- debian/source/local-options | 1 + debian/tests/control | 3 + debian/tests/gramps-import-export | 38 ++++ debian/upstream/metadata | 7 + debian/watch | 8 + 15 files changed, 362 insertions(+), 292 deletions(-) create mode 100644 debian/NEWS create mode 100644 debian/README.test create mode 100644 debian/gbp.conf create mode 100644 debian/gramps.docs create mode 100644 debian/source/local-options create mode 100644 debian/tests/control create mode 100755 debian/tests/gramps-import-export create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/NEWS b/debian/NEWS new file mode 100644 index 000000000..d8db9c8b1 --- /dev/null +++ b/debian/NEWS @@ -0,0 +1,18 @@ +gramps (4.1.0~dfsg-1) unstable; urgency=medium + + This 4.1.0 release of Gramps for Debian has involved a switch to + Python 3. This change also means an upgrade of the database that + Gramps uses to store your Family History information. When you + first run this new version of Gramps you will receive a warning + that your data is about to be converted to the new database format, + and that you will not be able to open the database in an older + version of Gramps in the future. + As a precaution, if you do not have a backup of your Family Trees + (preferably in Gramps XML format), it is recommended that you copy + the directory with your Family Tree Database (usually ~/.gramps + unless you set it to a different place in Gramps Preferences) to a + safe place before opening one of your family trees in the new + version of Gramps. This is just in case something happens + that causes you to revert to your previous version of Gramps. + + -- Ross Gammon Wed, 15 Oct 2014 22:33:00 +0200 diff --git a/debian/README.Debian b/debian/README.Debian index d68203b57..c91ae39b3 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,18 +1,18 @@ Gramps for Debian ----------------------- +----------------- -This is the Debian package of the 4.0 series of GRAMPS. +Version 5.0 of gramps adds the option of using a new database backend called +DB_API, as an alternative to the default BSDDB (Berkeley). -It is a major update of Gramps to upgrade to GTK 3. A switch was also made to distutils from autotools. +Two DB-API SQL engines have been developed, sqlite3 and postgresql. Compared +to BSDDB, the alternative backends have beend designed allow some flexibility +with respect to using the database with multiple users, or in multiple +locations (different computers). -The 4.0 series of Gramps is being packaged for the experimental distribution until all dependencies are available -and it proves stable. +For more details, please read the Gramps wiki: +https://gramps-project.org/wiki/index.php?title=DB-API_Database_Backend -Webkit - gir1.2-webkit-3.0 crashes. Gramps has been patched disable the hidden -HTML view instead until a solution is found. +Please note, this particular version is a pre-release version for testing. +Please do not use it on your only copy of important genealogical data. -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 Sat, 25 Jan 2014 18:00:00 +0100 + -- Ross Gammon Mon, 19 Feb 2018 00:04:00 +0100 diff --git a/debian/README.test b/debian/README.test new file mode 100644 index 000000000..5ef34f206 --- /dev/null +++ b/debian/README.test @@ -0,0 +1,157 @@ +Run gramps -v from the commandline and check dependencies: +- From the commandline type $ gramps -v + - The gramps version and versions of library dependencies are output + - Check that all dependencies have been installed, show their versions, and that there are no error messages +- If required, install the dependencies that have not been found (typically icu, osmgpsmap & gexiv) +- Type $ gramps -v again + - Check that all dependencies have been installed, show their versions, and that there are no error messages + +Open Gramps, create an empty Family Tree, and check the Gramps version, credits & license: +- Run gramps + - Family Trees window opens +- Click "New" to create an empty Family Tree +- Type a name for your family tree (e.g. Sample), and press "Enter" +- Click "Load Family Tree" + - Gramps displays the "Welcome to Gramps!" start screen +- Choose Help > About from the menu + - The "About gramps" window is displayed with Version information +- Click on "Credits" + - A list of Authors and Contributors to Gramps is displayed +- Click on "License" + - The GNU General Public License is displayed +- Click on the "X" to close the "About gramps" window + - Gramps closes the "About gramps" window and returns to the "Welcome to Gramps!" start screen + +Import a GEDCOM file into Gramps +If you do not have one to hand, the provided example can be extracted to your home directory and imported from there. +/usr/share/doc/gramps/example/gedcom/sample.ged.gz +- From your open and empty Family Tree, choose Family Trees > Import from the menu + - The Gramps: Import Family Tree window opens +- Locate your GEDCOM file, select it and click on "Import" + - The Import Statistics window displays "Results: done" +- Click on "Close" + - The GEDCOM import report window displays "No errors detected" +- CLick on "Close" + - The Top Surnames gramplet displays the surnames of the people imported into the Tree + +Test aspects of the People View +- Click on the People View + - A list of people in "Group View" mode are shown +- Click on the arrow for a surname (e.g. Hansdotter) + - The people with this surname are revealed +- Select a person and click in the "Edit selcted person" icon (or just double click on the person) + - The "Person" window opens showing the details of this person +- Click on Cancel + - The "Person" window closes +- Choose the person list view (not grouped) by clicking on the "People" icon + - The people are now listed without any grouping by surname +- Click on the "+" icon to create a new person + - An empty "Person" window opens +- Enter some details about the person (e.g. given name, surname, and gender) +- Click on the "+" button to create a new event for this person + - The "Event Reference Editor" window opens +- Create an event (e.g. birth) by entering a date +- Click on the "+" button to add a new place + - The "New Place" window opens +- Type in some details about the place (Name, Type, Latitude & Longitude) +- Click on OK + - The "New Place" window closes +- In the "Event Reference Editor" click OK +- In the "Person" window click OK + - The "Person" window closes and you can find the person just created in the list of people + +Test aspects of the Relationships View +- Click on Anna Hansdotter to select her +- Click on the Relationships View + - Details of Anna and her family are displayed +- Click on one of her children, Hjalmar Smith + - Details of Hjalmar and his family are displayed +- Click on the "Add existing Child to family" icon just above Halmar's children + - The "Select Child" window opens +- Find the person you entered previously and select it +- Click OK + - The "Select Child" window closes and you can see the new person listed as a child in Hjalmar's family + +Test aspects of the Charts View +- Click on the Charts View + - The Pedigree View is shown +- Click somewhere in the Pedigree View and drag the chart around + - The mouse pointer changes to a hand and the chart can be move around +- Click on the left and right arrows (when going left you need to choose the child to move to) + - The chart will move to reveal the next generation in the family +- Make sure there are several families in view, then Click on the "Fan Chart" icon + - A fan chart showing the ancesters of the main person is shown +- Click on the Descendant Fan icon + - A fan chart showing the descendants of the same person is shown + +Test aspects of the Geography View +- Click on the Geography View + - The map may take some time to load, then a pin for the person you entered early should be shown on the map at the coordinates you entered +- Click on the pin + - A choice of the place, or the person will be offered +- Hover over the place name, and choose "Edit Place" + - The "Place Selection in a region" opens +- Double click on the place + - The "Place:" editor opens +- Click on Cancel +- Click on the pin + - A choice of the place, or the person will be offered +- Hover over the persons name, and choose "Edit Event" + - The "Event:" window opens +- Click on Cancel + +Import a Gramps Xml file (*.gramps) into Gramps +An existing Gramps *.gramps file with links to media will be needed for this and the next test. If you do not have one to hand, the provided example can be extracted to your home directory and imported from there. +/usr/share/doc/gramps/example/gramps/example.gramps.gz +- From the "Family Trees" menu, choose "Manage Family Trees" + - The Family Trees window opens +- Click "New" to create an empty Family Tree +- Type a name for your family tree (e.g. Example), and press "Enter" +- Click "Load Family Tree" + - Gramps opens an empty database +- From your open and empty Family Tree, choose Family Trees > Import from the menu + - The Gramps: Import Family Tree window opens +- Locate your *.gramps file, select it and click on "Import" + - The import may take some minutes, then the Import Statistics window displays the number of objects imported. +- Click on "Close" + - The Import Statistics window closes. + +View Media for a person, and add new media +The media for the example file you may have used in the previous test can be found in /usr/share/doc/gramps/example/gramps/. Create a folder in your home directory to store Gramps media, and then copy the media there. +You will also need a photo to add to Gramps. Any photo will do (e.g. *.jpg file - but you can use the ones provided with Gramps). +You also need to set the base media patch for Gramps. +- In the "Edit" menu, choose "Preferences". + - The Preferences window opens on the "General" tab. +- Click the "Folder" icon to set the "Base path for relative media paths". + - The "Select media directory" window opens +- Choose the directory where your media is stored and then click "Apply" + - The "Select media directory" window closes +- Click Close + - The "Preferences" window closes +- In the "People" View, find a person with media associated (e.g. Eugene Stanley Garner, Jr. in the example database) and select him/her. + - Below the Detials tab, a thumbnail image of the person should appear (in the case of Eugene Stanley Garner, Jr. you should see him yawning). It may be necessary to restart Gramps to see the Thumbnail. +- Double click on the person's name in the People View. + - The "Person:" window opens, and the image is dispayed for the person in the Image square in the top left corner of the "Person:" window. +- Double click on the image. + - The Media Reference Editor opens showing details about the image. +- Double click in the bottom image Preview. + - An external viewer opens giving details of the image metadata and allowing some basic manipulation of the image. +- Click on the "X" to close the external viewer +- Click "Cancel" on the Media Reference Editor +- Click "Cancel" on the "Person:" window. + - All three windows close. +- Click on the "Media View". + - A list of available media is shown. +- Click on the "+" icon. + - The "Select a media object" window opens. +- Move to the folder where the media is and select the new photo (if you are using the examples provided with Gramps, I can recommend choosing O3.jpg). +- Click on "OK". + - The "New Media" window opens. +- Click on "OK". + - The media is added to the list of media. +- Select the new media. + - A preview (thumbnail) image is shown. +- Close Gramps by choosing "Quit" from the "Family Trees" menu. + - Gramps closes. + +TODO: Tagging & Filtering diff --git a/debian/compat b/debian/compat index ec635144f..b4de39476 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 +11 diff --git a/debian/control b/debian/control index 06a65d7fb..a5c5b512d 100644 --- a/debian/control +++ b/debian/control @@ -1,29 +1,38 @@ Source: gramps -Section: python +Section: gnome Priority: optional -Maintainer: Ross Gammon +Maintainer: Ross Gammon Build-Depends-Indep: - dh-linktree, + dh-python, gettext, intltool, libxml-parser-perl, python3-all, - python3-setuptools + python3-setuptools, + python3-nose, + gir1.2-gtk-3.0 (>= 3.10.0), + python3-gi (>= 3.12.0), + python3-gi-cairo, + python3-bsddb3, + python3-lxml, + python3-jsonschema, + python3-mock, + python3-icu, + python3-nose-exclude Build-Depends: - dh-python, - debhelper (>= 9.0.0) -Standards-Version: 3.9.5 -Vcs-Git: git://anonscm.debian.org/collab-maint/gramps.git -Vcs-browser: http://anonscm.debian.org/gitweb/?p=collab-maint/gramps.git -Homepage: http://www.gramps-project.org/ -X-Python-Version: >= 3.2 + debhelper (>= 11) +Standards-Version: 4.1.3 +Vcs-Git: https://salsa.debian.org/debian/gramps.git -b experimental +Vcs-browser: https://salsa.debian.org/debian/gramps +Homepage: https://www.gramps-project.org/ +X-Python3-Version: >= 3.2 -Package: python3-gramps +Package: gramps Architecture: all Depends: gir1.2-gtk-3.0 (>= 3.10.0), librsvg2-2, - python3-gi, + python3-gi (>= 3.12.0), python3-gi-cairo, python3-bsddb3, xdg-utils, @@ -31,16 +40,22 @@ Depends: ${python3:Depends} Recommends: graphviz, - gir1.2-goocanvas-2.0, - libosmgpsmap-1.0-0, + gir1.2-gexiv2-0.10, gir1.2-osmgpsmap-1.0, - python3-pyicu + python3-icu Suggests: fonts-freefont-ttf, - gir1.2-gexiv2-0.10, + gir1.2-goocanvas-2.0, gir1.2-gtkspell3-3.0, python3-pil, - rcs + rcs, + python3-numpy +Conflicts: + python-gramps, + python3-gramps +Replaces: + python-gramps, + python3-gramps Description: Genealogical research program Gramps is an Open Source genealogy program written in Python, using the GTK/GNOME interface. It is an extremely flexible program fitting diff --git a/debian/copyright b/debian/copyright index 652c70687..c16d81c8c 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,37 +1,37 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Gramps -Source: http://gramps-project.org +Source: https://gramps-project.org Files: * Copyright: 2000-2007, Alex Roitman 2000-2002, Bruce J. DeGrasse 2000-2008, Donald N. Allingham 2000-2007, Martin Hawlisch - 2001, Andrés Sepúlveda + 2001, Andrés Sepúlveda 2001, David R. Hampton - 2001-2013, Free Software Foundation, Inc. + 2001-2017, Free Software Foundation, Inc. 2001, Graham J. Williams 2001, Jesper Zedlitz - 2001-2013, The Gramps Project + 2001-2017, The Gramps Project 2002, Gary Shao 2003-2006, Josiah Carlson 2004-2006, Eero Tamminen - 2004-2013, Julio Sánchez - 2004, Toshio Kuratomi - 2005-2011, Serge Noiraud - 2006-2011, Brian G. Matherly + 2004-2013, Julio Sánchez + 2005-2017, Serge Noiraud + 2006-2012, Brian G. Matherly 2006, 2008-2011, Kees Bakker 2006-2008, Steve Hall - 2007-2012, Benny Malengier - 2007-2012, Douglas S. Blank + 2007-2013, Benny Malengier + 2007-2013, 2015-2016, Douglas S. Blank 2007-2012, Gary Burton 2007-2011, Jerome Rapinat 2007, Johan Gronqvist 2007, Robert Cawley 2007-2009, Stephane Charette + 2007-2016, The Gramps Developers 2007, Thom Sturgill 2007-2008, Zsolt Foldvari - 2008-2010, 2012, Craig J. Anderson + 2008-2010, 2012-2015, Craig J. Anderson 2008-2009, James Friedmann 2008-2009, Jason Simanek 2008, Lukasz Rymarczyk @@ -43,133 +43,58 @@ Copyright: 2000-2007, Alex Roitman 2008, Stefan Siegel 2008-2010, Stephen George 2009-2010, Andrew I Baznikin - 2009, 2011, The Dojo Foundation 2009, Florian Heinle 2009, Gerald W. Britton 2009, Igal Shapira - 2009, 2011, John Resig - 2009-2013, Nick Hall + 2009-2018, Nick Hall 2009, Pander Musubi 2009, Robert Ham 2009, Swoon on bug tracker 2009, Yevgeny Zegzda - 2010, Gramps + 2010, 2015 Gramps 2010, Jakim Friant 2010, Josip 2010, lcc & Robert Jerome 2010-2012, Michiel D. Nauta - 2010-2013, Tim G L Lyons - 2010-2011, Vlada Perić + 2010-2016, Tim G L Lyons + 2010-2011, 2014, Vlada Perić 2011, Adam Stein 2011-2012, Harald Rosemann 2011, 2013, Heinz Brinker 2011, Helge Herz 2011, 2013 John Ralls - 2011, Matt Keenan - 2011-2013, Paul Franklin - 2012, Mathieu MD + 2011, 2016 Matt Keenan + 2011-2017, Paul Franklin + 2012, lcc + 2012, 2014, Mathieu MD 2012, Nicolas Adenis-Lamarre - 2013, Fedir Zinchuk - 2013, Oleh Petrivk - 2013, Vassilii Khachaturov + 2013, Artem Glebov + 2011-2016, Fedir Zinchuk + 2013-2017, Alois Poettker + 2013-2014, Vassilii Khachaturov 2013, Zissis Papadopoulos + 2015, Icelandic translators of Gramps + 2014, Bastien Jacquet + 2014, Gerald Kunzmann + 2015, Fabrice + 2015, Lajos Nemeséri + 2015, Detlef Wolz + 2016, Allen Crider + 2016, DaAwesomeP + 2016-2017, Paul Culley + 2016, QuLogic + 2016, Tom Samstag + 2017, Mindaugas Baranauskas + 2017, Robert Carnell License: GPL-2+ -Files: data/javascript/jquery-1.3.2.min.js -Copyright: 2009, John Resig -License: MIT and GPL - -Files: data/javascript/jquery-1.7.1.js -Copyright: 2011, John Resig - 2011, The Dojo Foundation -License: BSD and MIT and GPL-2 - -Files: data/javascript/jquery-ui-1.7.2.custom.min.js -Copyright: 2009, jQuery UI Team (http://jqueryui.com/about/) -License: MIT and GPL-2 - -Files: data/javascript/jquery.flexbox* -Copyright: 2008-2010, Noah Heldman and Fairway Technologies -License: Ms-PL - -Files: data/jhtmlarea/Readme.txt -Copyright: 2009, Chris Pietschmann -License: Ms-RL - -Files: data/jhtmlarea/scripts/jHtmlArea* -Copyright: 2009, Chris Pietschmann -License: Ms-RL - -Files: data/jhtmlarea/scripts/jquery-1.3.2* -Copyright: 2009, John Resig - 2009, The Dojo Foundation -License: MIT - -Files: data/jhtmlarea/scripts/jquery-ui-* -Copyright: 2009, jQuery UI Team (http://jqueryui.com/about) -License: MIT and GPL - Files: debian/* Copyright: 2001-2002, Brandon L. Griffith 2002, Alex Roitman 2002-2012, James A. Treacy - 2013, Ross Gammon + 2013-2018, Ross Gammon License: GPL-2+ -Files: gramps/webapp/grampsdb/view/png.py -Copyright: 2006, Johann C. Rocholl - 2009, David Jones - 2006, Nicko van Someren -License: MIT - -License: BSD - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - . - THIS SOFTWARE IS PROVIDED BY John Resig ''AS IS'' AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -License: GPL - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 1 only of the License. - . - On Debian systems, the complete text of the GNU General - Public License can be found in `/usr/share/common-licenses/GPL'. - -License: GPL-2 - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 only of the License. - . - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License - along with this package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - . - On Debian systems, the complete text of the GNU General - Public License can be found in `/usr/share/common-licenses/GPL-2'. - License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -187,128 +112,3 @@ License: GPL-2+ . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. - -License: MIT - Permission is hereby granted, free of charge, to any person obtaining a - copy of this software and associated documentation files (the "Software"), - to deal in the Software without restriction, including without limitation - the rights to use, copy, modify, merge, publish, distribute, sublicense, - and/or sell copies of the Software, and to permit persons to whom the - Software is furnished to do so, subject to the following conditions: - . - The above copyright notice and this permission notice shall be included - in all copies or substantial portions of the Software. - . - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - -License: Ms-PL - This license governs use of the accompanying software. If you use the - software, you accept this license. If you do not accept the license, do not - use the software. - . - 1. Definitions - . - The terms "reproduce," "reproduction," "derivative works," and "distribution" - have the same meaning here as under U.S. copyright law. - . - A "contribution" is the original software, or any additions or changes to the - software. - . - A "contributor" is any person that distributes its contribution under this - license. - . - "Licensed patents" are a contributor's patent claims that read directly on its - contribution. - . - 2. Grant of Rights - . - (A) Copyright Grant- Subject to the terms of this license, including the - license conditions and limitations in section 3, each contributor grants you a - non-exclusive, worldwide, royalty-free copyright license to reproduce its - contribution, prepare derivative works of its contribution, and distribute its - contribution or any derivative works that you create. - . - (B) Patent Grant- Subject to the terms of this license, including the license - conditions and limitations in section 3, each contributor grants you a - non-exclusive, worldwide, royalty-free license under its licensed patents to - make, have made, use, sell, offer for sale, import, and/or otherwise dispose of - its contribution in the software or derivative works of the contribution in the - software. - . - 3. Conditions and Limitations - . - (A) No Trademark License- This license does not grant you rights to use any - contributors' name, logo, or trademarks. - . - (B) If you bring a patent claim against any contributor over patents that you - claim are infringed by the software, your patent license from such contributor - to the software ends automatically. - . - (C) If you distribute any portion of the software, you must retain all copyright, - patent, trademark, and attribution notices that are present in the software. - . - (D) If you distribute any portion of the software in source code form, you may do - so only under this license by including a complete copy of this license with your - distribution. If you distribute any portion of the software in compiled or object - code form, you may only do so under a license that complies with this license. - . - (E) The software is licensed "as-is." You bear the risk of using it. The - contributors give no express warranties, guarantees or conditions. You may have - additional consumer rights under your local laws which this license cannot change. - To the extent permitted under your local laws, the contributors exclude the - implied warranties of merchantability, fitness for a particular purpose and - non-infringement. - -License: Ms-RL - This license governs use of the accompanying software. If you use the software, - you accept this license. If you do not accept the license, do not use the software. - . - 1. Definitions - The terms "reproduce," "reproduction," "derivative works," and "distribution" have - the same meaning here as under U.S. copyright law. - A "contribution" is the original software, or any additions or changes to the - software. - A "contributor" is any person that distributes its contribution under this license. - "Licensed patents" are a contributor's patent claims that read directly on its - contribution. - . - 2. Grant of Rights - (A) Copyright Grant- Subject to the terms of this license, including the license - conditions and limitations in section 3, each contributor grants you a - non-exclusive, worldwide, royalty-free copyright license to reproduce its - contribution, prepare derivative works of its contribution, and distribute its - contribution or any derivative works that you create. - (B) Patent Grant- Subject to the terms of this license, including the license - conditions and limitations in section 3, each contributor grants you a - non-exclusive, worldwide, royalty-free license under its licensed patents to make, - have made, use, sell, offer for sale, import, and/or otherwise dispose of its - contribution in the software or derivative works of the contribution in the software. - . - 3. Conditions and Limitations - (A) Reciprocal Grants- For any file you distribute that contains code from the - software (in source code or binary format), you must provide recipients the source - code to that file along with a copy of this license, which license will govern that - file. You may license other files that are entirely your own work and do not contain - code from the software under any terms you choose. - (B) No Trademark License- This license does not grant you rights to use any - contributors' name, logo, or trademarks. - (C) If you bring a patent claim against any contributor over patents that you claim - are infringed by the software, your patent license from such contributor to the - software ends automatically. - (D) If you distribute any portion of the software, you must retain all copyright, - patent, trademark, and attribution notices that are present in the software. - (E) If you distribute any portion of the software in source code form, you may do so - only under this license by including a complete copy of this license with your - distribution. If you distribute any portion of the software in compiled or object code - form, you may only do so under a license that complies with this license. - (F) The software is licensed "as-is." You bear the risk of using it. The contributors - give no express warranties, guarantees or conditions. You may have additional consumer - rights under your local laws which this license cannot change. To the extent permitted - under your local laws, the contributors exclude the implied warranties of - merchantability, fitness for a particular purpose and non-infringement. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 000000000..8821f4cb7 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,18 @@ +[DEFAULT] +# Applies to all commands +sign-tags = True + +# The default name for the upstream branch is "upstream". +# Change it if the name is different (for instance, "master"). +upstream-branch = upstream + +# The default name for the Debian branch is "master". +# Change it if the name is different (for instance, "debian/unstable"). +debian-branch = experimental + +# git-import-orig uses the following names for the upstream tags. +# Change the value if you are not using git-import-orig +upstream-tag = upstream/%(version)s + +# Always use pristine-tar. +pristine-tar = True diff --git a/debian/gramps.docs b/debian/gramps.docs new file mode 100644 index 000000000..0596204cd --- /dev/null +++ b/debian/gramps.docs @@ -0,0 +1 @@ +RELEASE_NOTES diff --git a/debian/rules b/debian/rules index a9e7539e6..47144bbae 100755 --- a/debian/rules +++ b/debian/rules @@ -1,35 +1,39 @@ #!/usr/bin/make -f # Uncomment this to turn on verbose mode. -export DH_VERBOSE=1 -export DH_OPTIONS=-v +#export DH_VERBOSE=1 +#export DH_OPTIONS=-v +export PYBUILD_NAME=gramps +export PYBUILD_INSTALL_ARGS_python3=--resourcepath=/usr/share --force %: dh $@ --with python3 --buildsystem=pybuild -# Override auto test because upstream do not use the standard unittest discover +# Override auto test to enable node tests override_dh_auto_test: - -# Override of auto_build -override_dh_auto_build: - python3 setup.py build + HOME=$(CURDIR)/build \ + nosetests3 -vv \ + --exclude=TestcaseGenerator \ + --exclude=test_tcg_and_check_and_repair \ + --exclude=test4_arbitrary_uncode_path \ + --exclude-dir=gramps/plugins/test/ \ + gramps # Override of auto_install to remove information from package override_dh_auto_install: - #dh_auto_install - python3 setup.py install --resourcepath=/usr/share --root=debian/python3-gramps --install-layout=deb - # Remove duplicate license/copyright information - rm $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/COPYING + dh_installchangelogs NEWS + dh_auto_install # Remove install file as it is not needed by package users - rm $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/INSTALL - # Link license/copyright information to debians - ln -s /usr/share/common-licenses/GPL-2 $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/COPYING + rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/INSTALL + # Remove NEWS file as it is now installed as the changelog + rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/NEWS + #Remove license information in COPYING file & link to system license + rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/COPYING + ln -s /usr/share/common-licenses/GPL-2 $(CURDIR)/debian/gramps/usr/share/doc/gramps/COPYING -# Make css style sheets and png icons non-executable -override_dh_fixperms: - dh_fixperms - chmod a-x $(CURDIR)/debian/python3-gramps/usr/share/gramps/css/Web_*.css - -# Avoid compressing COPYING file so that it can appear in the "About" dialog -override_dh_compress: - dh_compress -X COPYING +# Fix clean target +override_dh_clean: + rm -rf data/tips.xml + rm -rf gramps/plugins/lib/holidays.xml + rm -rf po/.intltool-merge-cache + dh_clean diff --git a/debian/source/format b/debian/source/format index 625934097..163aaf8d8 100644 --- a/debian/source/format +++ b/debian/source/format @@ -1 +1 @@ -1.8 +3.0 (quilt) diff --git a/debian/source/local-options b/debian/source/local-options new file mode 100644 index 000000000..4aceb10e3 --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1 @@ +unapply-patches diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 000000000..762e0a3c0 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: gramps-import-export +Depends: gramps, gzip +Restrictions: allow-stderr diff --git a/debian/tests/gramps-import-export b/debian/tests/gramps-import-export new file mode 100755 index 000000000..7efec99d4 --- /dev/null +++ b/debian/tests/gramps-import-export @@ -0,0 +1,38 @@ +#!/bin/sh + +# Author: Ross Gammon +# +# autopkgtest check: Tests that gramps can import the sample gedcom file and +# export it in the .gpkg format, and then import the example gramps database +# and export it in gedcom format. + +set -e + +echo "--------------------------------" +echo "GEDCOM to Gramps conversion test" +echo "--------------------------------" +echo "Retrieving sample gedcom" +cp /usr/share/doc/gramps/example/gedcom/sample.ged.gz . +echo "Unzipping sample gedcom" +gunzip sample.ged.gz +echo "Importing gedcom into gramps and exporting a gramps .gpkg file" +gramps -i sample.ged -e sample.gpkg +echo "-----------------------------------" +echo "GEDCOM to Gramps conversion SUCCESS" +echo "-----------------------------------" +echo + +echo "--------------------------------" +echo "Gramps to GEDCOM conversion test" +echo "--------------------------------" +echo "Retrieving example gramps file" +cp /usr/share/doc/gramps/example/gramps/example.gramps.gz . +echo "Unzipping example gramps file" +gunzip example.gramps.gz +echo "Importing gramps file into gramps and exporting a gedcom" +gramps -i example.gramps -e example.ged +echo "-----------------------------------" +echo "Gramps to GEDCOM conversion SUCCESS" +echo "-----------------------------------" +echo +echo "gramps-import-export: TEST PASSED" diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 000000000..8bef66150 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,7 @@ +Bug-Database: https://gramps-project.org/bugs/my_view_page.php +Contact: https://lists.sourceforge.net/lists/listinfo/gramps-users +Donation: https://sourceforge.net/project/project_donations.php?group_id=25770 +Name: Gramps +Homepage: https://gramps-project.org/ +Repository: https://github.com/gramps-project/gramps.git +Repository-Browse: https://github.com/gramps-project/gramps diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..37a5375ec --- /dev/null +++ b/debian/watch @@ -0,0 +1,8 @@ +version=3 + +opts=\ +dversionmangle=s/(\~|\+)(debian|dfsg|ds|deb)(\.\d+)?$//,\ +filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/$1\.tar\.gz/,\ +repacksuffix=~dfsg \ +https://github.com/gramps-project/gramps/tags \ +.*/archive/v?([\d\.]+).tar.gz