Package: xsane
Version: 0.995-1
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch



In Ubuntu, we've applied the attached patch to achieve the following:

* debian/control:
  - build seperate xsane-doc package
* rename xsane-common.doc-base to xsane-doc.doc-base

We thought you might be interested in doing the same. 

The rational is that the documentation is relatively big and it is
convenient for people with little diskspace to strip it out.

Thanks,
 Michael

-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
--- xsane-0.995/debian/xsane-common.doc-base
+++ xsane-0.995.orig/debian/xsane-common.doc-base
@@ -1,15 +0,0 @@
-Document: xsane
-Title: Xsane
-Author: Oliver Rauch
-Abstract: This manual describes how to use xsane as a frontend to
- hardware scanners.  Xsane is a gtk-based X11 frontend for SANE
- (Scanner Access Now Easy).  SANE stands for "Scanner Access Now Easy"
- and is an application programming interface (API) that provides
- standardized access to any raster image scanner hardware (flatbed
- scanner, hand-held scanner, video- and still-cameras, frame-grabbers,
- etc.).
-Section: Apps/Graphics
-
-Format: html
-Index: /usr/share/doc/xsane-common/html/sane-xsane-doc.html
-Files: /usr/share/doc/xsane-common/html/*.html
diff -u xsane-0.995/debian/changelog xsane-0.995/debian/changelog
diff -u xsane-0.995/debian/rules xsane-0.995/debian/rules
--- xsane-0.995/debian/rules
+++ xsane-0.995/debian/rules
@@ -92,21 +92,21 @@
 binary-indep: build install
        dh_testdir
        dh_testroot
-       dh_installdirs
+       dh_installdirs -i
 
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man
 
-       $(MAKE) -C doc install prefix=$(CURDIR)/debian/xsane-common/usr \
+       $(MAKE) -C doc install prefix=$(CURDIR)/debian/xsane-doc/usr \
                                xsanedocdir=\$${datadir}/doc/xsane-common/html
 
        rm -rf debian/xsane-common/usr/share/pixmaps
 
        # remove outdated/useless documentation
-       rm -f 
debian/xsane-common/usr/share/doc/xsane-common/html/sane-backends-doc.html
-       rm -f 
debian/xsane-common/usr/share/doc/xsane-common/html/sane-pnm-doc.html
+       rm -f 
debian/xsane-doc/usr/share/doc/xsane-common/html/sane-backends-doc.html
+       rm -f debian/xsane-doc/usr/share/doc/xsane-common/html/sane-pnm-doc.html
 
        # manpages go in the binary packages
-       rm -rf debian/xsane-common/usr/share/man
+       rm -rf debian/xsane-doc/usr/share/man
 
        $(MAKE) -C po install prefix=$(CURDIR)/debian/xsane-common/usr
 
@@ -123,9 +123,9 @@
        done && \
        cd -
 
-       dh_testdir -i
-       dh_testroot -i
        dh_installdocs -i
+       ln -sf ../xsane-common/html 
debian/xsane-doc/usr/share/doc/xsane-doc/html
+
 #      dh_installexamples -i 
        dh_installman -i
 #      dh_installinfo -i
diff -u xsane-0.995/debian/control xsane-0.995/debian/control
--- xsane-0.995/debian/control
+++ xsane-0.995/debian/control
@@ -9,3 +10,3 @@
 Section: graphics
 Architecture: any
 Depends: xsane-common (= ${source:Version}), ${shlibs:Depends}
Recommends: iceweasel | www-browser
-Suggests: gimp, hylafax-client | mgetty-fax, gv, gocr
+Suggests: xsane-doc, gimp, hylafax-client | mgetty-fax, gv, gocr
 Description: featureful graphical frontend for SANE (Scanner Access Now Easy)
  xsane can be run as a stand-alone program or through the GIMP image
  manipulation program.  In stand-alone mode, xsane can save an image
@@ -42 +43,13 @@
- (locales, help).
+ (locales).
+
+Package: xsane-doc
+Section: doc
+Architecture: all
+Replaces: xsane-common (<< 0.995-1)
+Description: GTK+-based X11 frontend for SANE (Scanner Access Now Easy)
+ xsane can be run as a stand-alone program or through the GIMP image 
+ manipulation program.  In stand-alone mode, xsane can save an image 
+ to a file in a variety of image formats, serve as a frontend to a 
+ fax program, or send an image to a printer. 
+ .
+ This package contains the help files for xsane.
only in patch2:
unchanged:
--- xsane-0.995.orig/debian/xsane-doc.doc-base
+++ xsane-0.995/debian/xsane-doc.doc-base
@@ -0,0 +1,15 @@
+Document: xsane
+Title: Xsane
+Author: Oliver Rauch
+Abstract: This manual describes how to use xsane as a frontend to
+ hardware scanners.  Xsane is a gtk-based X11 frontend for SANE
+ (Scanner Access Now Easy).  SANE stands for "Scanner Access Now Easy"
+ and is an application programming interface (API) that provides
+ standardized access to any raster image scanner hardware (flatbed
+ scanner, hand-held scanner, video- and still-cameras, frame-grabbers,
+ etc.).
+Section: Apps/Graphics
+
+Format: html
+Index: /usr/share/doc/xsane-common/html/sane-xsane-doc.html
+Files: /usr/share/doc/xsane-common/html/*.html

Reply via email to