This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit aac061ac0f47c2e92558db1b019e92cb9631c839
Author: Dominique Dumont <d...@debian.org>
Date:   Sat Mar 28 10:33:11 2015 +0100

    added copyright update-upgrade test with file addition, move and deletion
---
 .../debian/compat                                  |   1 +
 .../debian/control                                 |  30 ++++
 .../debian/copyright                               | 195 +++++++++++++++++++++
 .../debian/fix.scanned.copyright                   |   3 +
 .../pan-copyright-upgrade-update-more/debian/rules |  17 ++
 .../debian/source/format                           |   1 +
 t/model_tests.d/dpkg-test-conf.pl                  |  23 +++
 7 files changed, 270 insertions(+)

diff --git 
a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/compat 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/compat
@@ -0,0 +1 @@
+9
diff --git 
a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/control
 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/control
new file mode 100644
index 0000000..aa735d3
--- /dev/null
+++ 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/control
@@ -0,0 +1,30 @@
+Source: pan
+Maintainer: Dominique Dumont <d...@debian.org>
+Section: news
+Priority: optional
+Build-Depends: autotools-dev,
+               debhelper (>= 9),
+               intltool,
+               libgmime-2.6-dev,
+               libgtk2.0-dev,
+               libgtkspell-dev,
+               libnotify-dev,
+               libgnome-keyring-dev,
+               libdbus-1-dev
+Standards-Version: 3.9.3
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/pan.git
+Vcs-Git: git://anonscm.debian.org/collab-maint/pan.git
+Homepage: http://pan.rebelbase.com/
+
+Package: pan
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         gnome-keyring
+Description: newsreader based on GTK2, which looks like Forte Agent
+ Pan is a newsreader, loosely based on Agent and Gravity, which attempts to be
+  pleasant to use for new and advanced users alike. It has all the typical
+  features found in newsreaders and also supports offline newsreading,
+  sophisticated filtering, multiple connections, and a number of extra features
+  for power users and alt.binaries fans.
+
diff --git 
a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright
 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright
new file mode 100644
index 0000000..7790975
--- /dev/null
+++ 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/copyright
@@ -0,0 +1,195 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pan
+Upstream-Contact: Charles Kerr <char...@rebelbase.com>
+Source: http://pan.rebelbase.com/
+
+Files: *
+Copyright: 1994-2001, Frank Pilhofer. The author may
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2012 Dominique Dumont <d...@debian.org>
+ 2007-2009 Mario Iseli <ad...@marioiseli.com>
+        Norbert Tretkowski <no...@debian.org>
+ 2000-2006 Søren Boll Overgaard <b...@debian.org>
+License: GPL-2
+
+Files: pan/*
+Copyright: 2002-2007, Charles Kerr <char...@rebelbase.com>
+License: GPL-2
+
+Files: pan/data/cert-store.cc
+Copyright: 2011, Heinrich Müller <henm...@src.gnome.org>
+  2002-2005, Charles Kerr <char...@rebelbase.com>
+License: GPL-2
+
+Files: pan/general/e-util-to-be-removed.cc
+  pan/general/e-util-to-be-removed.h
+Copyright: 2000, Ximian, Inc
+License: LGPL-2
+
+Files: pan/general/locking.h
+  pan/general/worker-pool.cc
+  pan/general/worker-pool.h
+Copyright: 2007, Calin Culianu <ca...@ajvar.org>
+  2002-2005, Charles Kerr <char...@rebelbase.com>
+License: LGPL-2+
+Comment: Header file mentions Lesser GPL version 2. Actually the first version
+ of Lesser GPL is 2.1
+
+Files: pan/general/map-vector.h
+Copyright: 2001, Andrei Alexandrescu
+License: show-copyright
+ yada yada show-copyright stuff
+
+Files: pan/general/sorted-vector.h
+Copyright: 2002, Martin Holzherr (holzh...@infobrain.com).
+License: public-domain
+ Permission is granted to use, distribute and modify this code provided 
+ that: this copyright notice appears,
+
+Files: pan/gui/e-action-renamed-combo-box.c
+  pan/gui/e-action-combo-box.h
+Copyright: 2008, Novell, Inc
+License: LGPL-2
+
+Files: pan/gui/e-charset-combo-box.c
+  pan/gui/e-charset-combo-box.h
+  pan/gui/e-charset.c
+  pan/gui/e-charset.h
+Copyright: 1999-2008, Novell, Inc.
+License: LGPL-2 or LGPL-3
+
+Files: pan/gui/e-charset-dialog.c
+  pan/gui/e-cte-dialog.c
+Copyright: 2001, Ximian, Inc
+License: GPL-2
+
+Files: pan/gui/license.h
+Copyright: 1989, 1991, Free Software Foundation
+License: GPL-2
+Comment: This file is actually "#define LICENSE <whole GPL-2 text>"
+
+Files: pan/gui/xface.c
+Copyright: , messages are not removed, and no monies are exchanged
+  , James Ashton - Sydney University - June 1990
+License: show-copyright
+ Permission is given to distribute these sources, as long as the
+ copyright messages are not removed, and no monies are exchanged. 
+Comment: This file is a derived work from files in libcompface package. This 
file
+ is bundling compface.h and compface.c from libcompface and some more code.
+ yada yda
+
+Files: pan/tasks/decoder.cc
+  pan/tasks/decoder.h
+  pan/tasks/encoder.cc
+  pan/tasks/encoder.h
+Copyright: 2007, Calin Culianu <ca...@ajvar.org>
+  2002-2007, Charles Kerr <char...@rebelbase.com>
+License: LGPL-2+
+
+Files: pan/tasks/socket-impl-main.cc
+  pan/tasks/socket-impl-main.h
+  pan/tasks/socket-impl-openssl.cc
+Copyright: 2011, Heinrich Müller <henm...@src.gnome.org>
+  2002-2006, Charles Kerr <char...@rebelbase.com>
+License: GPL-2
+
+Files: pan/tasks/socket-impl-openssl.h
+Copyright: 2011, Heinrich Müller <henm...@src.gnome.org>
+  2002-2006, Charles Kerr <char...@rebelbase.com>
+  2002, vjt (irssi project)
+License: GPL-2
+
+Files: pan/tasks/task-article.cc
+  pan/tasks/task-article.h
+  pan/tasks/task-upload.cc
+  pan/tasks/task-upload.h
+Copyright: 2007, Calin Culianu <ca...@ajvar.org>
+  2002-2007, Charles Kerr <char...@rebelbase.com>
+License: GPL-2
+
+Files: pan/usenet-utils/MersenneTwister.h
+Copyright: 2000-2009, Richard J. Wagner
+  1997-2002, Makoto Matsumoto and Takuji Nishimura
+License: BSD-2-clause
+
+Files: pan/usenet-utils/ssl-utils.h
+Copyright: 2011, Heinrich Müller <henm...@src.gnome.org>
+  2002-2006, Charles Kerr <char...@rebelbase.com>
+  2002-2005, 2007, 2008, 2010, Free Software
+  2002, vjt (irssi project)
+License: GPL-2
+
+Files: uulib/crc32.c
+Copyright: 1995-2005, Mark Adler
+License: Zlib
+
+Files: uulib/fptools.c  uulib/fptools.h
+Copyright: Unknown
+License: GPL-1
+Comment: No copyright owner is specified in the files. Only the license is 
mentioned.
+
+License: BSD-2-clause
+ yada yada
+
+License: GPL-1
+ This program 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, February 1989
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
+
+License: GPL-2
+ This program 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 dated June, 1991.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: GPL-2+
+ This program 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 dated June, 1991, or (at your
+ option) any later version.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: LGPL-2
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published by the
+ Free Software Foundation; version 2 of the License.
+ .
+ On Debian systems, the complete text of version 2 of the GNU Library
+ Public License can be found in `/usr/share/common-licenses/LGPL-2'.
+
+License: LGPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of version 2 of the GNU Lesser
+ Public License can be found in `/usr/share/common-licenses/LGPL-2'.
+
+License: LGPL-2.1
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; version 2.1 of the License.
+ .
+ On Debian systems, the complete text of version 2.1 of the GNU Lesser
+ Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+License: LGPL-3
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published by the
+ Free Software Foundation; version 3 of the License.
+ .
+ On Debian systems, the complete text of version 3 of the GNU Library
+ Public License can be found in `/usr/share/common-licenses/LGPL-3'.
+
+License: Zlib
+ yada yada
diff --git 
a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/fix.scanned.copyright
 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/fix.scanned.copyright
new file mode 100644
index 0000000..29d1ede
--- /dev/null
+++ 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/fix.scanned.copyright
@@ -0,0 +1,3 @@
+! copyright Files:"pan/general/map-vector.h" 
Copyright=~"s/\n.*Addison-Wesley//"
+! copyright Files:~pan/gui/e-charset.c Copyright=~"s/\s\(.*\)//"
+! copyright Files:"pan/gui/license.h" Copyright=~"s/\s*,\s*Inc.*//s"
\ No newline at end of file
diff --git 
a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/rules 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/rules
new file mode 100755
index 0000000..c949e44
--- /dev/null
+++ 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+       dh $@  --with autotools-dev
+
+# --with-gnutls is forbidden until pan goes to license GPL-2+ (#699892)
+override_dh_auto_configure:
+       dh_auto_configure -- --enable-gkr --enable-silent-rules 
--enable-libnotify --with-dbus
\ No newline at end of file
diff --git 
a/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/source/format
 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ 
b/t/model_tests.d/dpkg-examples/pan-copyright-upgrade-update-more/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/t/model_tests.d/dpkg-test-conf.pl 
b/t/model_tests.d/dpkg-test-conf.pl
index 18740e5..d852a1a 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -91,6 +91,29 @@ my $del_home = sub {
             "copyright License:GPL-2 text" => qr/GNU/,
         },
         file_check_sub => $del_home,
+    },
+    {
+        # emulate removed and added file, updated copyright years
+        # the difference with above test is in debian/copyright file to be 
updated
+        name => 'pan-copyright-upgrade-update-more',
+        update => { in => path('t/scanner/examples/pan.in') },
+        check => {
+            "copyright License:GPL-2 text" => {value => undef, mode => 
'custom'},
+            "copyright License:GPL-2 text" => qr/GNU/,
+            'copyright Files:pan/general/map-vector.h Copyright' => "2001, 
Andrei Alexandrescu",
+            'copyright Files:pan/general/map-vector.h License short_name' => 
'show-copyright',
+            'copyright Files:pan/general/map-vector.h License full_license'
+            => 'yada yada show-copyright stuff',
+            'copyright Files:pan/general/sorted-vector.h Copyright'
+            => '2002, Martin Holzherr (holzh...@infobrain.com).',
+            'copyright Files:pan/general/sorted-vector.h License short_name' 
=> 'public-domain',
+            qq'copyright Files:"uulib/*" Copyright' => 'Unknown',
+        },
+        wr_check => {
+            "copyright License:GPL-2 text" => {value => undef, mode => 
'custom'},
+            "copyright License:GPL-2 text" => qr/GNU/,
+        },
+        file_check_sub => $del_home,
     }
 );
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to