r17832 - in /trunk/libhtml-wikiconverter-perl/debian: README.cdbs-tweaks cdbs/1/rules/copyright-check.mk changelog copyright_hints

js at users.alioth.debian.org js at users.alioth.debian.org
Wed Mar 19 01:14:40 UTC 2008


Author: js
Date: Wed Mar 19 01:14:39 2008
New Revision: 17832

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=17832
Log:
* Update copyright-check cdbs snippet to parse licensecheck using perl:
  + No longer randomly drops newlines
  + More compact hint file (and ordered more like wiki-proposed new copyright
    syntax).
  + No longer ignore files without copyright.
* Update copyright_hints.

Modified:
    trunk/libhtml-wikiconverter-perl/debian/README.cdbs-tweaks
    trunk/libhtml-wikiconverter-perl/debian/cdbs/1/rules/copyright-check.mk
    trunk/libhtml-wikiconverter-perl/debian/changelog
    trunk/libhtml-wikiconverter-perl/debian/copyright_hints

Modified: trunk/libhtml-wikiconverter-perl/debian/README.cdbs-tweaks
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-wikiconverter-perl/debian/README.cdbs-tweaks?rev=17832&op=diff
==============================================================================
--- trunk/libhtml-wikiconverter-perl/debian/README.cdbs-tweaks (original)
+++ trunk/libhtml-wikiconverter-perl/debian/README.cdbs-tweaks Wed Mar 19 01:14:39 2008
@@ -30,14 +30,16 @@
 
 Create and clean builddir _after_ resolving per-package DEB_BUILDDIR.
 
-Honour per-package DEB_BUILDDIR in makefile class.
+Honour per-package DEB_BUILDDIR in makefile and autotools classes.
+
+Support multiple build flavors in makefile and autotools classes.
 
 
 
 Various improvements to python-distutils class
 ----------------------------------------------
 
-Use full path to python interpreter (Python Policy section 1.3.2).
+Use full path to Python interpreter (Python Policy section 1.3.2).
 
 Add CDBS_BUILD_DEPENDS to old policy method.
 
@@ -50,6 +52,20 @@
 Unify install path using new DEB_PYTHON_DESTDIR.
 
 Quote install path.
+
+
+
+New python-autotools class
+--------------------------
+
+Handle autotools-based Python packaging.
+
+
+
+New python-sugar class
+----------------------
+
+Handle packaging of Sugar activities.
 
 
 

Modified: trunk/libhtml-wikiconverter-perl/debian/cdbs/1/rules/copyright-check.mk
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-wikiconverter-perl/debian/cdbs/1/rules/copyright-check.mk?rev=17832&op=diff
==============================================================================
--- trunk/libhtml-wikiconverter-perl/debian/cdbs/1/rules/copyright-check.mk (original)
+++ trunk/libhtml-wikiconverter-perl/debian/cdbs/1/rules/copyright-check.mk Wed Mar 19 01:14:39 2008
@@ -32,19 +32,41 @@
 DEB_COPYRIGHT_CHECK_REGEX = .*
 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(debian/.*|(.*/)?config\.(guess|sub|rpath)(\..*)?)$
 
-# By default sort by license and then by filename
-DEB_COPYRIGHT_CHECK_SORT_OPTS = -t : -k2,1 -k1
-
 pre-build:: debian/stamp-copyright-check
 
 debian/stamp-copyright-check:
 	@echo 'Scanning upstream source for new/changed copyright notices (except debian subdir!)...'
 
+# Perl in shell in make requires extra care:
+#  * Single-quoting ('...') protects against shell expansion
+#  * Double-dollar ($$) expands to plain dollar ($) in make
 	licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \
-		| grep -v '^\(\|.*: \*No copyright\* \(GENERATED FILE\|UNKNOWN\)\)$$' - \
-		| sed 's/\s*(with incorrect FSF address)\s*$$//; s/\s(\+v\(.\+\) or later)/-\1\+/; s/^\s*\[Copyright:\s*/ \[/' \
-		| awk '/^[^ ]/{printf "%s",$$0;next}{print}' \
-		| LC_ALL=C sort $(DEB_COPYRIGHT_CHECK_SORT_OPTS) \
+		| LC_ALL=C perl -e \
+	'$$n=0; while (<>) {'\
+	'	if (/^([^:\s][^:]+):[\s]+(\S.*?)\s*$$/) {'\
+	'		$$files[$$n]{name}=$$1;'\
+	'		$$files[$$n]{license}=$$2;'\
+	'	};'\
+	'	if (/^\s*\[Copyright:\s*(\S.*?)\s*\]/) {'\
+	'		$$files[$$n]{copyright}=$$1;'\
+	'	};'\
+	'	/^$$/ and $$n++;'\
+	'};'\
+	'foreach $$file (@files) {'\
+	'	$$file->{license} =~ s/\s*\(with incorrect FSF address\)//;'\
+	'	$$file->{license} =~ s/\s+\(v([^)]+) or later\)/-$$1+/;'\
+	'	$$file->{copyright} =~ s/(?<=(\b\d{4}))(?{$$y=$$^N})\s*[,-]\s*((??{$$y+1}))\b/-$$2/g;'\
+	'	$$file->{copyright} =~ s/(?<=\b\d{4})\s*-\s*\d{4}(?=\s*-\s*(\d{4})\b)//g;'\
+	'	$$pattern = "$$file->{license} [$$file->{copyright}]";'\
+	'	push @{ $$patternfiles{"$$pattern"} }, $$file->{name};'\
+	'};'\
+	'foreach $$pattern ( sort {'\
+	'			@{$$patternfiles{$$b}} <=> @{$$patternfiles{$$a}}'\
+	'			||'\
+	'			$$a cmp $$b'\
+	'		} keys %patternfiles ) {'\
+	'	print "$$pattern: ", join(", ", sort @{ $$patternfiles{$$pattern} }), "\n";'\
+	'};'\
 		> debian/copyright_newhints
 	@patterncount="`cat debian/copyright_newhints | sed 's/^[^:]*://' | LANG=C sort -u | grep . -c -`"; \
 		echo "Found $$patterncount different copyright and licensing combinations."

Modified: trunk/libhtml-wikiconverter-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-wikiconverter-perl/debian/changelog?rev=17832&op=diff
==============================================================================
--- trunk/libhtml-wikiconverter-perl/debian/changelog (original)
+++ trunk/libhtml-wikiconverter-perl/debian/changelog Wed Mar 19 01:14:39 2008
@@ -1,3 +1,14 @@
+libhtml-wikiconverter-perl (0.61-3) unstable; urgency=low
+
+  * Update copyright-check cdbs snippet to parse licensecheck using perl:
+    + No longer randomly drops newlines
+    + More compact hint file (and ordered more like wiki-proposed new copyright
+      syntax).
+    + No longer ignore files without copyright.
+  * Update copyright_hints.
+
+ -- Jonas Smedegaard <dr at jones.dk>  Wed, 19 Mar 2008 02:13:30 +0100
+
 libhtml-wikiconverter-perl (0.61-2) unstable; urgency=low
 
   * Pass over maintenance of the package to the Perl group: Change Maintainer,

Modified: trunk/libhtml-wikiconverter-perl/debian/copyright_hints
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-wikiconverter-perl/debian/copyright_hints?rev=17832&op=diff
==============================================================================
--- trunk/libhtml-wikiconverter-perl/debian/copyright_hints (original)
+++ trunk/libhtml-wikiconverter-perl/debian/copyright_hints Wed Mar 19 01:14:39 2008
@@ -1,1 +1,2 @@
-LICENSE: UNKNOWN [1989, 1991 Free Software Foundation, Inc / the software, and]
+*No copyright* UNKNOWN []: Changes, INSTALL, MANIFEST, META.yml, Makefile.PL, README, bin/html2wiki, lib/HTML/WikiConverter.pm, lib/HTML/WikiConverter/Dialects.pod, lib/HTML/WikiConverter/Normalizer.pm, t/00-load.t, t/01-wikiconverter.t, t/boilerplate.t, t/pod-coverage.t, t/pod.t
+UNKNOWN [1989, 1991 Free Software Foundation, Inc / the software, and]: LICENSE




More information about the Pkg-perl-cvs-commits mailing list