--- ebook-tools-0.1.1.orig/debian/control +++ ebook-tools-0.1.1/debian/control @@ -0,0 +1,62 @@ +Source: ebook-tools +Priority: optional +Maintainer: Pino Toscano +Build-Depends: debhelper (>= 5), cmake (>= 2.4.0), cdbs (>= 0.4.51), + libxml2-dev, libzip-dev, quilt +Standards-Version: 3.8.0 +Section: libs +Homepage: http://sourceforge.net/projects/ebook-tools +Vcs-Browser: http://ebook-tools.svn.sourceforge.net/viewvc/ebook-tools/branches/0.1/ebook-tools/ +Vcs-Svn: http://ebook-tools.svn.sourceforge.net/svnroot/ebook-tools/branches/0.1/ebook-tools + +Package: libepub-dev +Section: libdevel +Architecture: any +Depends: libepub0 (= ${binary:Version}) +Description: library and tools to work with the EPub file format + The ebook-tools provide ways for accessing and converting different + ebook file formats. + . + This C library is free and portable. It includes methods to parse + EPub files and extract their contents. + . + This package includes development headers and libraries. + +Package: libepub0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: library and tools to work with the EPub file format + The ebook-tools provide ways for accessing and converting different + ebook file formats. + . + This C library is free and portable. It includes methods to parse + EPub files and extract their contents. + +Package: ebook-tools-dbg +Section: libdevel +Architecture: any +Priority: extra +Depends: libepub0 (= ${binary:Version}) +Description: library and tools to work with the EPub file format + The ebook-tools provide ways for accessing and converting different + ebook file formats. + . + This C library is free and portable. It includes methods to parse + EPub files and extract their contents. + . + This package includes the debug symbols for the library. + +Package: epub-utils +Section: graphics +Architecture: any +Depends: ${shlibs:Depends} +Suggests: clit, zip +Description: library and tools to work with the EPub file format + The ebook-tools provide ways for accessing and converting different + ebook file formats. + . + This package contains the following utilities: + - einfo : provides some basic info about an EPub document, + such as metadata, reading order, etc. + - lit2epub : converts a LIT file to EPub (using clit). --- ebook-tools-0.1.1.orig/debian/watch +++ ebook-tools-0.1.1/debian/watch @@ -0,0 +1,6 @@ +# Compulsory line, this is a version 3 file +version=3 + +# find new files on sourceforge, for devscripts >= 2.9 +http://sf.net/ebook-tools/ebook-tools-(.*)\.tar\.gz + --- ebook-tools-0.1.1.orig/debian/libepub-dev.install +++ ebook-tools-0.1.1/debian/libepub-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/libepub.so --- ebook-tools-0.1.1.orig/debian/libepub0.install +++ ebook-tools-0.1.1/debian/libepub0.install @@ -0,0 +1 @@ +usr/lib/libepub.so.0* --- ebook-tools-0.1.1.orig/debian/rules +++ ebook-tools-0.1.1/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +DEB_DH_INSTALL_SOURCEDIR = debian/tmp +DEB_INSTALL_MANPAGES_epub-utils = debian/einfo.1 debian/lit2epub.1 + +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/cmake.mk +include /usr/share/cdbs/1/rules/utils.mk --- ebook-tools-0.1.1.orig/debian/epub-utils.install +++ ebook-tools-0.1.1/debian/epub-utils.install @@ -0,0 +1 @@ +usr/bin/* --- ebook-tools-0.1.1.orig/debian/lit2epub.1 +++ ebook-tools-0.1.1/debian/lit2epub.1 @@ -0,0 +1,20 @@ +.TH LIT2EPUB 1 +.SH NAME +lit2epub \- simple LIT to EPub conversion +.SH SYNOPSIS +\fBlit2epub \fP \fIlit-document\fP [\fIepub-document\fP] +.SH DESCRIPTION +\fBlit2epub\fP is a command line tool for converting a LIT document to an EPub +document. It uses \fIclit\fP and \fIzip\fP for the conversion. + +\fBlit2epub\fP needs to be run with at least one arguments, the LIT document to +be converted. The second argument, \fIepub-document\fP, is the resulting EPub +document. If it is not specified, the output EPub is named after the input LIT +document, with the \fI.lit\fP extension changed in \fI.epub\fP, and placed in the +same directory as the LIT document. + +.SH AUTHOR +lit2epub was written by Ely Levy . +.P +This manual page was written by Pino Toscano , +for the Debian project (but may be used by others). --- ebook-tools-0.1.1.orig/debian/ebook-tools-dbg.lintian-overrides +++ ebook-tools-0.1.1/debian/ebook-tools-dbg.lintian-overrides @@ -0,0 +1 @@ +ebook-tools-dbg: dbg-package-missing-depends ebook-tools \ No newline at end of file --- ebook-tools-0.1.1.orig/debian/compat +++ ebook-tools-0.1.1/debian/compat @@ -0,0 +1 @@ +5 --- ebook-tools-0.1.1.orig/debian/copyright +++ ebook-tools-0.1.1/debian/copyright @@ -0,0 +1,33 @@ +This package was downloaded from + + +Upstream Author: + + Ely Levy + +Copyright (c) 2008 Ely Levy + +License: + + The ebook-tools are licensed under the terms of the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +The Debian packaging is (C) 2008, Pino Toscano and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- ebook-tools-0.1.1.orig/debian/einfo.1 +++ ebook-tools-0.1.1/debian/einfo.1 @@ -0,0 +1,43 @@ +.TH EINFO 1 +.SH NAME +einfo \- shows information of an EPub document +.SH SYNOPSIS +.B einfo +.RI [ options ] " epub-document" +.SH DESCRIPTION +\fBeinfo\fP is a command line tool to show information of an EPub document. +.SH OPTIONS +A summary of the available options is included below. +.TP +.B \-d +Enables the debug mode (implies \-vvv). +.TP +.B \-h +Shows summary of options. +.TP +.B \-p +Linear print book (normal reading). +.TP +.B \-pp +Prints the whole book. +.TP +.B \-n +Don't print metadata +.TP +.B \-t \fP tour-id +Prints the tour \fItour-id\fP. +.TP +.B \-v +Enables the error messages. +.TP +.B \-vv +Like \-v, plus warning messages are enabled. +.TP +.B \-vvv +Like \-vv, plus info messages are enabled. + +.SH AUTHOR +einfo was written by Ely Levy . +.P +This manual page was written by Pino Toscano , +for the Debian project (but may be used by others). --- ebook-tools-0.1.1.orig/debian/changelog +++ ebook-tools-0.1.1/debian/changelog @@ -0,0 +1,35 @@ +ebook-tools (0.1.1-2) unstable; urgency=low + + * add patch 01_lit2epub_bashisms.diff: + + fixes bashisms in lit2epub (Closes: #486031) + + taken from upstream r93 + * debian/rules: + + add build-dependency on quilt + * debian/einfo.1: + + hypen and minus are different, so escape the minus char to get a minus + in the man page + + -- Pino Toscano Sat, 14 Jun 2008 00:34:25 +0200 + +ebook-tools (0.1.1-1) unstable; urgency=low + + * New upstream release. + * Bump Standards-Version to 3.8.0. No changes needed. + * debian/control: + + ebook-tools-dbg: remove dependency on libc6-dbg + * debian/ebook-tools-dbg.lintian-overrides: + + override the lintian warning about the "ebook-tools" package, + as the real package that needs debug symbols is libepub0 + * debian/einfo.1: + * debian/lit2epub.1: + * debian/rules: + + add manpages for einfo(1) and lit2epub(1) + + -- Pino Toscano Fri, 07 Jun 2008 22:00:47 +0200 + +ebook-tools (0.1.0-1) unstable; urgency=low + + * Initial release (Closes: #475513) + + -- Pino Toscano Mon, 19 May 2008 14:34:04 +0200 + --- ebook-tools-0.1.1.orig/debian/patches/series +++ ebook-tools-0.1.1/debian/patches/series @@ -0,0 +1 @@ +01_lit2epub_bashisms.diff --- ebook-tools-0.1.1.orig/debian/patches/01_lit2epub_bashisms.diff +++ ebook-tools-0.1.1/debian/patches/01_lit2epub_bashisms.diff @@ -0,0 +1,27 @@ +Index: ebook-tools/src/tools/lit2epub +=================================================================== +--- ebook-tools/src/tools/lit2epub (revision 92) ++++ ebook-tools/src/tools/lit2epub (revision 93) +@@ -47,7 +47,8 @@ + + WD=$(pwd) + +-IFS=$'\n' ++IFS=' ++' + + $CLIT $LIT $TEMPDIR/OEBPS/ + find "$TEMPDIR"/OEBPS/ -name "*.opf" -exec mv {} "$TEMPDIR"/OEBPS/content.opf \; +@@ -65,9 +66,10 @@ + + EOF + +-echo -n application/epub+zip > "$TEMPDIR"/mimetype ++printf 'application/epub+zip' > "$TEMPDIR"/mimetype + +-IFS=$'\n' ++IFS=' ++' + cd "$TEMPDIR" + + $ZIP -0 -m "$WD/$EPUB" mimetype