tags 546492 + patch
thanks

On Fri, Dec 11, 2009 at 04:54:25PM +0000, Barak A. Pearlmutter wrote:
> I'd point out that, if I wanted to edit that document, I would
> mechanically extract the text, rather than using a hex editor.  As is,
> the document is in a "transparent" format in the sense used by the FSF
> in the GFDL, albeit a not a particularly convenient one.  But
> apparently, it is the only format that exists; the LaTeX has been
> lost.

I personally don't buy this argument, if sources of some program are
gone, we don't simply ship the program saying it is the only one
remaining representation of that program. We rather don't ship that
program at all. You might argue that documentation is different (and
that might be a reasonable position), but the Debian project has already
ruled in the past that it considers documentation to be bound to the
same rules of programs. We can't have a double standard for that on just
this package.

Now, on the propositive side, please find attached a patch which adds
the get-orig-source target to debian/rules, with the semantics
prescribed by policy. By invoking it you will obtain an .orig source
where the 2 incriminated DJVU specifications have been removed. I
propose to upload a new "+dfsg" version of the package which strips out
the 2 spec. No other changes are needed as documents were installed only
in the -dev package and the .docs debhelper file is using a wildcard
already (which still matches other documents).

If you really want to have this documentation shipped, I'd say you have
2 choices: 1) re-LaTeX-ing itA or 2) split a djvulibre-doc (source)
package to be uploaded to non-free.

Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime
Only in djvulibre-3.5.22.new/: arname
diff -aur djvulibre-3.5.22/debian/rules djvulibre-3.5.22.new/debian/rules
--- djvulibre-3.5.22/debian/rules	2010-01-23 16:03:14.000000000 +0100
+++ djvulibre-3.5.22.new/debian/rules	2010-01-23 16:01:19.225427357 +0100
@@ -147,3 +147,16 @@
 	dh $@ --after makeshlibs
 
 .PHONY: build clean binary-indep binary-arch binary install testlibver
+
+get-orig-source:
+	tmpdir=`mktemp -d` ; destdir=`pwd` ; \
+	uscan --force-download --rename --destdir $$tmpdir ; \
+	cd $$tmpdir ; tarname=`ls *.orig.tar.gz | head -n 1` ; \
+	tar xzf $$tarname ; \
+	rm */doc/djvu?spec.djvu ; \
+	tarname=`echo $$tarname | sed 's/.orig/+dfsg.orig/'` ; \
+	srcdir=`echo $$tarname | sed -e 's/.orig.tar.gz//' -e 's/_/-/'` ; \
+	mv djvulibre-*/ $$srcdir ; \
+	tar czf $$tarname $$srcdir ; \
+	mv $$tarname $$destdir ; \
+	rm -rf $$tmpdir

Reply via email to