--- lfhex-0.42.orig/debian/rules +++ lfhex-0.42/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f + +include /usr/share/dpatch/dpatch.make + +SRCDIR=src + +configure: configure-stamp +configure-stamp: patch-stamp + dh_testdir + + cd $(SRCDIR) && qmake-qt4 lfhex.pro + + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + cd $(SRCDIR) && $(MAKE) + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + cd $(SRCDIR) && ([ ! -f Makefile ] || $(MAKE) clean) + rm -f $(SRCDIR)/Makefile $(SRCDIR)/lfhex + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Do a manual install, qmake does not correctly generate an install + # target + cd $(SRCDIR) && install -D -m755 -p lfhex $(CURDIR)/debian/lfhex/usr/bin/lfhex + +# Build architecture-independent files here. +binary-indep: +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs + dh_installman debian/lfhex.1 + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- lfhex-0.42.orig/debian/control +++ lfhex-0.42/debian/control @@ -0,0 +1,17 @@ +Source: lfhex +Section: editors +Priority: optional +Maintainer: Tobias Klauser +Build-Depends: debhelper (>= 7), dpatch, libqt4-dev, flex, bison +Standards-Version: 3.8.3 +Homepage: http://stoopidsimple.com/lfhex +Vcs-Git: http://git.distanz.ch/scm/debian/pkg-lfhex.git +Vcs-Browser: http://git.distanz.ch/?p=debian/pkg-lfhex.git + +Package: lfhex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: large file hex editor + lfhex is an application for viewing and editing files in hex, octal, + binary, or ascii text. The main strength of lfhex is its ability to + work with files much larger than system memory or address space. --- lfhex-0.42.orig/debian/README.source +++ lfhex-0.42/debian/README.source @@ -0,0 +1,29 @@ +lfhex for Debian +---------------- + +This package uses dpatch to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To get the fully patched source after unpacking the source package, cd +to the root level of the source package and run: + + debian/rules patch + +Removing a patch is as simple as removing its entry from the +debian/patches/00list file, and please also remove the patch file +itself. + +Creating a new patch is done with "dpatch-edit-patch patch XX_patchname" +where you should replace XX with a new number and patchname with a +descriptive shortname of the patch. You can then simply edit all the +files your patch wants to edit, and then simply "exit 0" from the shell +to actually create the patch file. + +To tweak an already existing patch, call "dpatch-edit-patch XX_patchname" +and replace XX_patchname with the actual filename from debian/patches +you want to use. + +To clean up afterwards again, "debian/rules unpatch" will do the +work for you - or you can of course choose to call +"fakeroot debian/rules clean" all together. --- lfhex-0.42.orig/debian/copyright +++ lfhex-0.42/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Tobias Klauser on +Tue, 27 May 2008 18:56:54 +0200. + +It was downloaded from . + +Upstream Author: + + Salem Ganzhorn + +Copyright: + + Copyright (C) 2006 Salem Ganzhorn + +License: + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation version 2. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 file. + +The Debian packaging is (C) 2008, Tobias Klauser and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. --- lfhex-0.42.orig/debian/changelog +++ lfhex-0.42/debian/changelog @@ -0,0 +1,56 @@ +lfhex (0.42-3) unstable; urgency=low + + * Fix stoopid^Wstupid typo in watch file (really closes: #551418). + + -- Tobias Klauser Sun, 17 Jan 2010 13:24:22 +0100 + +lfhex (0.42-2) unstable; urgency=low + + * Update watch file so it no longer produces a 404 errror (closes: #551418). + * Add README.source file (text taken from + /usr/share/doc/dpatch/README.source). This fixes a lintian warning. + * Reference the versioned license file (GPL-2) in debian/copyright. This + fixes a lintian warning. + * Update to Standards-Version 3.8.3 + * Update maintainer email address in some more places. + + -- Tobias Klauser Wed, 21 Oct 2009 14:25:18 +0200 + +lfhex (0.42-1) unstable; urgency=low + + * Acknowledge NMU. + * New upstream release. + * Replaced obsolete dh_clean -k with dh_prep in rules. + * Added Vcs-Git and Vcs-Browser fields to control. + * Updated debhelper compatibility level from 6 to 7. + * Updated maintainer email address. + + -- Tobias Klauser Sat, 03 Jan 2009 15:31:36 +0100 + +lfhex (0.4-3.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/rules: + Call qmake-qt4, not qmake (Closes: #500380) + + -- Evgeni Golov Sat, 04 Oct 2008 12:29:05 +0200 + +lfhex (0.4-3) unstable; urgency=low + + * Actually apply the patch to fix FTBFS. Really Closes: #495467 this time. + Thanks Thiemo Seufer. + + -- Tobias Klauser Sat, 13 Sep 2008 13:45:17 +0200 + +lfhex (0.4-2) unstable; urgency=low + + * Fix FTBFS caused by abs not being in the global namespace anymore on some + platforms since g++-4.3. Patch by Thiemo Seufer. (Closes: #495467) + + -- Tobias Klauser Fri, 22 Aug 2008 20:12:39 +0200 + +lfhex (0.4-1) unstable; urgency=low + + * Initial release (Closes: #483159, #483165) + + -- Tobias Klauser Tue, 27 May 2008 19:49:49 +0200 --- lfhex-0.42.orig/debian/watch +++ lfhex-0.42/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://stoopidsimple.com/lfhex \ +http://stoopidsimple\.com/files/lfhex-(.+)\.tar\.gz --- lfhex-0.42.orig/debian/docs +++ lfhex-0.42/debian/docs @@ -0,0 +1 @@ +README --- lfhex-0.42.orig/debian/lfhex.1 +++ lfhex-0.42/debian/lfhex.1 @@ -0,0 +1,25 @@ +.TH LFHEX 1 "May 27, 2008" +.SH NAME +lfhex \- Large File Hex Editor +.SH SYNOPSIS +.B lfhex +.RI [ options ] " files" ... +.SH DESCRIPTION +\fBlfhex\fP is an application for viewing and editing files in hex, octal, +binary, or ascii text. The main strength of lfhex is its ability to work with +files much larger than system memory or address space. +.SH OPTIONS +.B \-c \fIfile1\fR \fIfile2\fR +Start lfhex in compare mode +.PP +lfhex supports some traditional X11 command line options supported through Qt's +QApplication class. See +\fBhttp://doc.trolltech.com/4.1/qapplication.html#QApplication for details.\fP +.SH SEE ALSO +.PP +The lfhex manual at: \fBhttp://stoopidsimple.com/lfhex/manual\fP +.SH AUTHOR +lfhex was written by Salem Ganzhorn . +.PP +This manual page was written by Tobias Klauser , +for the Debian project (but may be used by others). --- lfhex-0.42.orig/debian/compat +++ lfhex-0.42/debian/compat @@ -0,0 +1 @@ +7 --- lfhex-0.42.orig/debian/patches/01-abs-llabs.dpatch +++ lfhex-0.42/debian/patches/01-abs-llabs.dpatch @@ -0,0 +1,19 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 01-abs-llabs.dpatch by Thiemo Seufer +## +## DP: Fixes FTBFS due to abs() not being in the global anymore since g++ 4.3 +## (#495467) + +diff -up lfhex-0.42.orig/src/reader.cpp lfhex-0.42/src/reader.cpp +--- lfhex-0.42.orig/src/reader.cpp 2008-10-08 19:25:57.000000000 +0200 ++++ lfhex-0.42/src/reader.cpp 2008-10-08 19:26:16.000000000 +0200 +@@ -238,7 +238,7 @@ bool Reader::loadPage(off_t pageIdx) + // free the page which is the furthest away from the page we are loading + + // this could be trouble if off_t is unsigned! +- if( abs(_firstPage - pageIdx) > abs(_lastPage - pageIdx) ) ++ if( ::llabs(_firstPage - pageIdx) > ::llabs(_lastPage - pageIdx) ) + while(!freePage(_firstPage++)); + else + while(!freePage(_lastPage--)); + --- lfhex-0.42.orig/debian/patches/00list +++ lfhex-0.42/debian/patches/00list @@ -0,0 +1 @@ +01-abs-llabs.dpatch