r22204 - in /trunk/libconvert-tnef-perl/debian: README.cdbs-tweaks cdbs/1/rules/copyright-check.mk cdbs/1/rules/upstream-tarball.mk changelog compat control copyright_hints
js at users.alioth.debian.org
js at users.alioth.debian.org
Fri Jun 27 05:37:16 UTC 2008
Author: js
Date: Fri Jun 27 05:37:16 2008
New Revision: 22204
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=22204
Log:
+ Update copyright-check.mk to parse licensecheck output 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.
+ Drop wget options broken with recent versions of wget in
update-tarball.mk.
+ Relax copyright-check to only warn by default.
+ Cosmetic updates to README.cdbs-tweaks.
* Update debian/copyright-hints.
* Bump debhelper compatibility level to 6.
* Semi-auto-update debian/control to update build-dependencies:
DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
Modified:
trunk/libconvert-tnef-perl/debian/README.cdbs-tweaks
trunk/libconvert-tnef-perl/debian/cdbs/1/rules/copyright-check.mk
trunk/libconvert-tnef-perl/debian/cdbs/1/rules/upstream-tarball.mk
trunk/libconvert-tnef-perl/debian/changelog
trunk/libconvert-tnef-perl/debian/compat
trunk/libconvert-tnef-perl/debian/control
trunk/libconvert-tnef-perl/debian/copyright_hints
Modified: trunk/libconvert-tnef-perl/debian/README.cdbs-tweaks
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/README.cdbs-tweaks?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/README.cdbs-tweaks (original)
+++ trunk/libconvert-tnef-perl/debian/README.cdbs-tweaks Fri Jun 27 05:37:16 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/libconvert-tnef-perl/debian/cdbs/1/rules/copyright-check.mk
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/cdbs/1/rules/copyright-check.mk?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/cdbs/1/rules/copyright-check.mk (original)
+++ trunk/libconvert-tnef-perl/debian/cdbs/1/rules/copyright-check.mk Fri Jun 27 05:37:16 2008
@@ -28,41 +28,67 @@
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), devscripts (>= 2.10.7)
+# Set to yes to fail on changed/new hints are found
+#DEB_COPYRIGHT_CHECK_STRICT := yes
+
# Single regular expression for files to include or ignore
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 (<>) {'\
+ ' s/[^[:print:]]//g;'\
+ ' 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("\n\t", 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."
@if [ ! -f debian/copyright_hints ]; then touch debian/copyright_hints; fi
@newstrings=`diff -u debian/copyright_hints debian/copyright_newhints | sed '1,2d' | egrep '^\+' - | sed 's/^\+//'`; \
if [ -n "$$newstrings" ]; then \
- echo "ERROR: The following new or changed copyright notices discovered:"; \
+ echo "$(if $(DEB_COPYRIGHT_CHECK_STRICT),ERROR,WARNING): The following new or changed copyright notices discovered:"; \
echo; \
echo "$$newstrings"; \
echo; \
echo "To fix the situation please do the following:"; \
echo " 1) Investigate the above changes and update debian/copyright as needed"; \
echo " 2) Replace debian/copyright_hints with debian/copyright_newhints"; \
- exit 1; \
+ $(if $(DEB_COPYRIGHT_CHECK_STRICT),exit 1,:); \
+ else \
+ echo 'No new copyright notices found - assuming no news is good news...'; \
+ rm -f debian/copyright_newhints; \
fi
-
- @echo 'No new copyright notices found - assuming no news is good news...'
- rm -f debian/copyright_newhints
touch $@
clean::
Modified: trunk/libconvert-tnef-perl/debian/cdbs/1/rules/upstream-tarball.mk
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/cdbs/1/rules/upstream-tarball.mk?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/cdbs/1/rules/upstream-tarball.mk (original)
+++ trunk/libconvert-tnef-perl/debian/cdbs/1/rules/upstream-tarball.mk Fri Jun 27 05:37:16 2008
@@ -77,7 +77,7 @@
rm "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \
fi ; \
echo "Downloading $(cdbs_upstream_local_tarball) from $(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball) ..." ; \
- wget -N -nv -T10 -t3 -O "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" "$(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball)" ; \
+ wget -nv -T10 -t3 -O "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" "$(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball)" ; \
else \
echo "Upstream source tarball have been already downloaded: $(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_tarball)" ; \
fi
Modified: trunk/libconvert-tnef-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/changelog?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/changelog (original)
+++ trunk/libconvert-tnef-perl/debian/changelog Fri Jun 27 05:37:16 2008
@@ -1,11 +1,24 @@
-libconvert-tnef-perl (0.17-7) UNRELEASED; urgency=low
+libconvert-tnef-perl (0.17-7) unstable; urgency=low
* Update local cdbs tweaks:
+ Fix buildinfo.mk invoking dh-buildinfo only once.
+ + Update copyright-check.mk to parse licensecheck output 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.
+ + Drop wget options broken with recent versions of wget in
+ update-tarball.mk.
+ + Relax copyright-check to only warn by default.
+ + Cosmetic updates to README.cdbs-tweaks.
+ * Update debian/copyright-hints.
+ * Bump debhelper compatibility level to 6.
* Separate build-only dependencies from build-and-runtime-dependencies in
debian/rules build-dependency resolving.
+ * Semi-auto-update debian/control to update build-dependencies:
+ DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
- -- Jonas Smedegaard <dr at jones.dk> Thu, 21 Feb 2008 02:08:23 +0100
+ -- Jonas Smedegaard <dr at jones.dk> Thu, 26 Jun 2008 01:47:46 +0200
libconvert-tnef-perl (0.17-6) unstable; urgency=low
Modified: trunk/libconvert-tnef-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/compat?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/compat (original)
+++ trunk/libconvert-tnef-perl/debian/compat Fri Jun 27 05:37:16 2008
@@ -1,1 +1,1 @@
-5
+6
Modified: trunk/libconvert-tnef-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/control?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/control (original)
+++ trunk/libconvert-tnef-perl/debian/control Fri Jun 27 05:37:16 2008
@@ -1,7 +1,7 @@
Source: libconvert-tnef-perl
Section: perl
Priority: optional
-Build-Depends: cdbs (>= 0.4.39), devscripts (>= 2.10.7), dh-buildinfo, debhelper (>= 5), perl (>= 5.6.0-16), libio-stringy-perl, libmime-perl
+Build-Depends: cdbs (>= 0.4.39), devscripts (>= 2.10.7), dh-buildinfo, debhelper (>= 5.0.44), perl (>= 5.6.0-16), libio-stringy-perl, libmime-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Jonas Smedegaard <dr at jones.dk>
Standards-Version: 3.7.3
Modified: trunk/libconvert-tnef-perl/debian/copyright_hints
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconvert-tnef-perl/debian/copyright_hints?rev=22204&op=diff
==============================================================================
--- trunk/libconvert-tnef-perl/debian/copyright_hints (original)
+++ trunk/libconvert-tnef-perl/debian/copyright_hints Fri Jun 27 05:37:16 2008
@@ -1,1 +1,7 @@
-TNEF.pm: Perl [1999 Douglas Wilson <dougw at cpan.org>. All rights reserved]
+*No copyright* UNKNOWN []: Changes
+ MANIFEST
+ Makefile.PL
+ README
+ t/test.t
+ t/tnef.doc
+Perl [1999 Douglas Wilson <dougw at cpan.org>. All rights reserved]: TNEF.pm
More information about the Pkg-perl-cvs-commits
mailing list