--- denef-0.3.orig/debian/changelog +++ denef-0.3/debian/changelog @@ -0,0 +1,43 @@ +denef (0.3-0ubuntu6) bionic; urgency=high + + * No change rebuild to pick up -fPIE compiler default + + -- Balint Reczey Tue, 03 Apr 2018 12:19:07 +0000 + +denef (0.3-0ubuntu5) quantal; urgency=low + + * debian/control: added ${misc:Depends} depends + + -- Benjamin Kerensa Mon, 24 Sep 2012 00:51:04 -0700 + +denef (0.3-0ubuntu4) karmic; urgency=low + + * debian/patches/02-gcc-4.4-fix.diff: new patch, adds necessary headers + for building with gcc-4.4 (LP: #434571) + + -- Ilya Barygin Tue, 22 Sep 2009 14:39:01 +0400 + +denef (0.3-0ubuntu3) hardy; urgency=low + + * debian/watch: Added watchfile + * debian/control: + - Bumped standards version + - Added homepage field (removed from long description) + * Closes LP: #182450 + + -- Cody A.W. Somerville Sat, 12 Jan 2008 21:40:05 -0400 + +denef (0.3-0ubuntu2) gutsy; urgency=low + + * debian/control: Update maintainer fields according to debian- + maintainer-field spec. + + -- Martin Pitt Wed, 15 Aug 2007 08:03:38 +0000 + +denef (0.3-0ubuntu1) edgy; urgency=low + + * Initial version. + * Fix C++ build: patches/01-cpp-fixes.diff + + -- Hubert Figuiere Sun, 13 Aug 2006 22:29:29 -0400 + --- denef-0.3.orig/debian/compat +++ denef-0.3/debian/compat @@ -0,0 +1 @@ +5 --- denef-0.3.orig/debian/control +++ denef-0.3/debian/control @@ -0,0 +1,15 @@ +Source: denef +Section: graphics +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Hubert Figuiere +Build-Depends: cdbs (>= 0.4.23-1.1), gnulib (>= 0.0.20041014-2), debhelper (>= 5.0.0) +Standards-Version: 3.7.3 +Homepage: http://www.cheeseplant.org/~daniel/pages/denef.html + +Package: denef +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Decode Nikon D1 NEF image files + DeNEF is a simple decoder for Nikon D1 NEF RAW image files. + --- denef-0.3.orig/debian/copyright +++ denef-0.3/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Hubert Figuiere on +Wed, 08 Oct 2005 17:12:42 -0400. + +It was downloaded from +http://www.cheeseplant.org/~daniel/pages/denef.html + +Copyright (C) 2000 Daniel Stephens (daniel@cheeseplant.org) + + + +DeNEF 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; either version 2 of the License, or (at your +option) any later version. + +DeNEF 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 DeNEF; 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'. --- denef-0.3.orig/debian/denef.1 +++ denef-0.3/debian/denef.1 @@ -0,0 +1,104 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.\" Modified by the package maintainer +.TH DENEF "1" "August 2006" "denef 0.3" "User Commands" +.SH NAME +denef \- Decode Nikon NEF file +.SH SYNOPSIS +.B denef +[\fIoptions\fR] \fIfilename\fR +.SH DESCRIPTION +Summary of options (Current settings in []'s) +.SS "Data source options:" +.TP +\fB\-\-startx=\fR +Start X position of processed output [minimum] +.TP +\fB\-\-starty=\fR +Start Y position of processed output [minimum] +.TP +\fB\-\-width=\fR +Width of processed output [maxmimum] +.TP +\fB\-\-height=\fR +Height of processed output [maxmimum] +.TP +\fB\-\-interp=\fR +Interpolation algorithm [gradlumin] +Available: null, basic, rgb, lumin, gradlumin +.SS "Post-processing options:" +.TP +\fB\-\-cc=\fR +Perform sRGB color correction [Yes] +.TP +\fB\-\-scale=\fR +Set linear scale factor [1.6] +.TP +\fB\-\-gc=\fR +Perform gamma correction [Yes] +.SS "File options:" +.TP +\fB\-\-hist=\fR +Create histogram file [No] +.TP +\fB\-\-histfile=\fR +Histogram filename [histo.pgm] +.TP +\fB\-\-outfile=\fR +Image output filename [nef.ppm] +.SS "Misc. Options:" +.TP +\fB\-\-show\fR +Show current settings before starting. +.TP +\fB\-\-help\fR +Show options and exit. +.PP +Summary of options (Current settings in []'s) +.SS "Data source options:" +.TP +\fB\-\-startx=\fR +Start X position of processed output [minimum] +.TP +\fB\-\-starty=\fR +Start Y position of processed output [minimum] +.TP +\fB\-\-width=\fR +Width of processed output [maxmimum] +.TP +\fB\-\-height=\fR +Height of processed output [maxmimum] +.TP +\fB\-\-interp=\fR +Interpolation algorithm [gradlumin] +Available: null, basic, rgb, lumin, gradlumin +.SS "Post-processing options:" +.TP +\fB\-\-cc=\fR +Perform sRGB color correction [Yes] +.TP +\fB\-\-scale=\fR +Set linear scale factor [1.6] +.TP +\fB\-\-gc=\fR +Perform gamma correction [Yes] +.SS "File options:" +.TP +\fB\-\-hist=\fR +Create histogram file [No] +.TP +\fB\-\-histfile=\fR +Histogram filename [histo.pgm] +.TP +\fB\-\-outfile=\fR +Image output filename [nef.ppm] +.SS "Misc. Options:" +.TP +\fB\-\-show\fR +Show current settings before starting. +.TP +\fB\-\-help\fR +Show options and exit. +.SH "SEE ALSO" +The full documentation for +.B denef +is available at --- denef-0.3.orig/debian/patches/01-cpp-fixes.diff +++ denef-0.3/debian/patches/01-cpp-fixes.diff @@ -0,0 +1,300 @@ +diff -ru denef-0.3/denef.cc denef-0.3-new/denef.cc +--- denef-0.3/denef.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/denef.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,10 +19,10 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include + + #include + #include +@@ -32,6 +32,8 @@ + #include + #include + ++using namespace std; ++ + #include "options.h" + + #include "nefdata.h" +@@ -660,14 +662,14 @@ + obuf[oofs++] = ov; + + if (oofs > 2997) { +- os.write(obuf, oofs); ++ os.write((const char*)obuf, oofs); + oofs =0; + } + } + } + + if (oofs > 0) { +- os.write(obuf, oofs); ++ os.write((const char*)obuf, oofs); + oofs =0; + } + os.close(); +diff -ru denef-0.3/ifd.cc denef-0.3-new/ifd.cc +--- denef-0.3/ifd.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/ifd.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,7 +19,9 @@ + ------------------------------------------------------------------------------ + */ + +-#include ++#include ++ ++using namespace std; + + #include "metacam.h" + +diff -ru denef-0.3/ifdentry.cc denef-0.3-new/ifdentry.cc +--- denef-0.3/ifdentry.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/ifdentry.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,7 +19,9 @@ + ------------------------------------------------------------------------------ + */ + +-#include ++#include ++ ++using namespace std; + + #include "metacam.h" + +diff -ru denef-0.3/interp_basic.cc denef-0.3-new/interp_basic.cc +--- denef-0.3/interp_basic.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/interp_basic.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,9 +19,11 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "interp.h" + +diff -ru denef-0.3/interp.cc denef-0.3-new/interp.cc +--- denef-0.3/interp.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/interp.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -20,12 +20,15 @@ + */ + + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "interp.h" + + static const char *rcsid="$Id: interp.cc,v 1.3 2000/09/18 07:51:43 daniel Exp $"; + +-ifInterpolator::~ifInterpolator() {}; ++ifInterpolator::~ifInterpolator() {} ++ +diff -ru denef-0.3/interp_gradlumin.cc denef-0.3-new/interp_gradlumin.cc +--- denef-0.3/interp_gradlumin.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/interp_gradlumin.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,9 +19,11 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "interp.h" + +diff -ru denef-0.3/interp_lumin.cc denef-0.3-new/interp_lumin.cc +--- denef-0.3/interp_lumin.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/interp_lumin.cc 2006-08-13 23:05:16.000000000 -0400 +@@ -19,9 +19,11 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "interp.h" + +diff -ru denef-0.3/interp_null.cc denef-0.3-new/interp_null.cc +--- denef-0.3/interp_null.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/interp_null.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,9 +19,11 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "interp.h" + +diff -ru denef-0.3/interp_rgb.cc denef-0.3-new/interp_rgb.cc +--- denef-0.3/interp_rgb.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/interp_rgb.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,9 +19,11 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "interp.h" + +diff -ru denef-0.3/metacam.h denef-0.3-new/metacam.h +--- denef-0.3/metacam.h 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/metacam.h 2006-08-13 23:02:21.000000000 -0400 +@@ -28,11 +28,10 @@ + #include + #include + #include ++#include + + class IFD; + class IFDEntry; +-class istream; +-class ostream; + + typedef unsigned long tiffUNSIGNED; + typedef signed long tiffSIGNED; +@@ -119,7 +118,7 @@ + friend class IFDEntry; + + istream &is; +- unsigned long global_offset; ++ streamoff global_offset; + bool bigendian; + + protected: +diff -ru denef-0.3/nefdata.cc denef-0.3-new/nefdata.cc +--- denef-0.3/nefdata.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/nefdata.cc 2006-08-13 23:03:25.000000000 -0400 +@@ -19,10 +19,10 @@ + ------------------------------------------------------------------------------ + */ + +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include + + #include + #include +@@ -31,6 +31,8 @@ + #include + #include + ++using namespace std; ++ + #include "metacam.h" + #include "nefdata.h" + +@@ -155,7 +157,7 @@ + unsigned char *obuf = new unsigned char[bcount * 2]; + + is.seekg(offset); +- is.read(buf, bcount); ++ is.read((char*)buf, bcount); + + // Now - have to convert this 12 bit data to 16 bits + +diff -ru denef-0.3/options.cc denef-0.3-new/options.cc +--- denef-0.3/options.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/options.cc 2006-08-13 23:04:13.000000000 -0400 +@@ -20,9 +20,11 @@ + */ + + +-#include +-#include +-#include ++#include ++#include ++#include ++ ++using namespace std; + + #include "options.h" + +@@ -202,6 +204,6 @@ + return true; + } + +-options::actionOption::~actionOption() {}; ++options::actionOption::~actionOption() {} + +-options::optionInterface::~optionInterface() {}; ++options::optionInterface::~optionInterface() {} +diff -ru denef-0.3/tifffile.cc denef-0.3-new/tifffile.cc +--- denef-0.3/tifffile.cc 2000-12-10 17:11:45.000000000 -0500 ++++ denef-0.3-new/tifffile.cc 2006-08-13 23:02:21.000000000 -0400 +@@ -19,11 +19,13 @@ + ------------------------------------------------------------------------------ + */ + +-#include ++#include + #include + #include + #include + ++using namespace std; ++ + #include "metacam.h" + + static const char *rcsid="$Id: tifffile.cc,v 1.3 2000/09/18 07:51:43 daniel Exp $"; +@@ -62,7 +64,7 @@ + void + tiffFile::Get_Data(unsigned char *buf, size_t bytes) + { +- is.read(buf, bytes); ++ is.read((char *)buf, bytes); + if (is.gcount() != bytes) { + int err = errno; + cerr << "Read failed: " << strerror(err) << endl; --- denef-0.3.orig/debian/patches/02-gcc-4.4-fix.diff +++ denef-0.3/debian/patches/02-gcc-4.4-fix.diff @@ -0,0 +1,33 @@ +diff -Nur -x '*.orig' -x '*~' denef-0.3/denef.cc denef-0.3.new/denef.cc +--- denef-0.3/denef.cc 2009-09-22 14:33:36.000000000 +0400 ++++ denef-0.3.new/denef.cc 2009-09-22 14:33:36.000000000 +0400 +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + using namespace std; + +diff -Nur -x '*.orig' -x '*~' denef-0.3/ifd.cc denef-0.3.new/ifd.cc +--- denef-0.3/ifd.cc 2009-09-22 14:33:36.000000000 +0400 ++++ denef-0.3.new/ifd.cc 2009-09-22 14:34:08.000000000 +0400 +@@ -20,6 +20,7 @@ + */ + + #include ++#include + + using namespace std; + +diff -Nur -x '*.orig' -x '*~' denef-0.3/tifffile.cc denef-0.3.new/tifffile.cc +--- denef-0.3/tifffile.cc 2009-09-22 14:33:36.000000000 +0400 ++++ denef-0.3.new/tifffile.cc 2009-09-22 14:33:36.000000000 +0400 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + using namespace std; + --- denef-0.3.orig/debian/rules +++ denef-0.3/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +install/denef:: + install -d $(CURDIR)/debian/denef/usr/bin + install denef $(CURDIR)/debian/denef/usr/bin + install -d $(CURDIR)/debian/denef/usr/share/man/man1 + gzip -9c < $(CURDIR)/debian/denef.1 > $(CURDIR)/debian/denef/usr/share/man/man1/denef.1.gz + +clean:: + rm -f denef dependencies --- denef-0.3.orig/debian/watch +++ denef-0.3/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.cheeseplant.org/~daniel/pages/denef.html (?:.*/)?denef-?_?([\d+\.]+|\d+)\.tar.* debian uupdate +