--- gimp-dcraw-1.31.orig/Makefile +++ gimp-dcraw-1.31/Makefile @@ -0,0 +1,19 @@ +# Executables +GIMPTOOL = /usr/bin/gimptool-2.0 +INSTALL = /usr/bin/install + +SRC = rawphoto.c +TGT = rawphoto + +#Targets +default: rawphoto + +rawphoto: rawphoto.c + $(GIMPTOOL) --build $(SRC) + +install: rawphoto + $(INSTALL) $(TGT) $(DESTDIR)/usr/lib/gimp/2.0/plug-ins/$(TGT) + +clean: + rm -f rawphoto core *.o + --- gimp-dcraw-1.31.orig/getsource +++ gimp-dcraw-1.31/getsource @@ -0,0 +1,61 @@ +#!/bin/bash + +PATH=/usr/bin:/bin + +set -x +set -u +set -e + +DCRAWHOME=http://www.cybercom.net/~dcoffin/dcraw/ +WGET=wget + +http_proxy= +export http_proxy + +TMPFILE=rawphoto.c_new +TEMPLATEDIR=dcraw-template + +# Get the new source +${WGET} -O ${TMPFILE} ${DCRAWHOME}rawphoto.c + +# grep for the current version +NEWVERSION=$(grep -i '\$Revision: [0-9][.][0-9][0-9] \$' ${TMPFILE} | sed -e 's/^.*Revision:.*\([0-9][.][0-9][0-9]\).*$/\1/') + +# Build a working directory +WORKDIR=gimp-dcraw-${NEWVERSION} +if [ -d ${WORKDIR} ] +then + echo "Working directory for current version already exists. stop" + exit 0 +fi + +rm -rf ${WORKDIR} +mkdir ${WORKDIR} +mv ${TMPFILE} ${WORKDIR}/rawphoto.c + +# Build the .orig tar file +rm -rf ${WORKDIR}.orig +cp -a ${WORKDIR} ${WORKDIR}.orig + +#tar -cvzf ${WORKDIR}.orig.tar.gz ${WORKDIR}.orig +#rm -rf ${WORKDIR}.orig + +# Build a template directory with apt-get source +rm -rf ${TEMPLATEDIR} +mkdir ${TEMPLATEDIR} +cd ${TEMPLATEDIR} +apt-get source gimp-dcraw +cd .. + +# Copy in the template debian bits and pieces +cp -a ${TEMPLATEDIR}/gimp-dcraw-*/debian ${WORKDIR} +cp -a ${TEMPLATEDIR}/gimp-dcraw-*/Makefile ${WORKDIR} + +# Prep the changelog +cd ${WORKDIR} +dch --newversion=${NEWVERSION}-1 +egrep '\$Date: [0-9]{4}/[0-9]+/[0-9]+ [0-9]+:[0-9]+:[0-9]+.*\$$' rawphoto.c >> debian/README.Debian + +vi debian/README.Debian + +dpkg-buildpackage -rfakeroot --- gimp-dcraw-1.31.orig/debian/README.Debian +++ gimp-dcraw-1.31/debian/README.Debian @@ -0,0 +1,6 @@ +gimp-dcraw for Debian +--------------------- + +This is a plugin for the gimp (version 2.0) by the author of dcraw +which uses dcraw to load raw digital photos directly into the gimp. + $Date: 2008/01/06 16:37:54 $ --- gimp-dcraw-1.31.orig/debian/copyright +++ gimp-dcraw-1.31/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Steve King on +Fri Jul 25 14:14:07 BST 2008 + +It was downloaded from http://www.cybercom.net/~dcoffin/dcraw/rawphoto.c + +Upstream Author: Dave Coffin at cybercom dot net, user dcoffin + +Copyright from the source file: + +"Copyright 2003-2008 by Dave Coffin", +This code is licensed under the same terms as The GIMP. + +i.e. + +It may be redistributed under the terms of the GNU GPL, Version 2 or +later, found on Debian systems in the file /usr/share/common-licenses/GPL + --- gimp-dcraw-1.31.orig/debian/compat +++ gimp-dcraw-1.31/debian/compat @@ -0,0 +1 @@ +5 --- gimp-dcraw-1.31.orig/debian/dirs +++ gimp-dcraw-1.31/debian/dirs @@ -0,0 +1 @@ +usr/lib/gimp/2.0/plug-ins --- gimp-dcraw-1.31.orig/debian/rules +++ gimp-dcraw-1.31/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + $(MAKE) clean + + dh_clean + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=`pwd`/debian/`dh_listpackages` install + dh_installchangelogs + dh_installdocs + dh_installexamples getsource +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- gimp-dcraw-1.31.orig/debian/control +++ gimp-dcraw-1.31/debian/control @@ -0,0 +1,16 @@ +Source: gimp-dcraw +Section: graphics +Priority: extra +Maintainer: Steve King +Build-Depends: debhelper (>= 5.0.0), libgimp2.0-dev +Standards-Version: 3.8.0.1 +Homepage: http://www.cybercom.net/~dcoffin/dcraw/ + +Package: gimp-dcraw +Architecture: any +Depends: ${shlibs:Depends}, gimp (>=2.0), dcraw +Suggests: +Description: GIMP plug-in for loading RAW digital photos + This is a plug-in for the GIMP which uses dcraw to load the + RAW format files used by certain digital cameras (see dcraw for + supported models). It is by the same author as dcraw itself. --- gimp-dcraw-1.31.orig/debian/changelog +++ gimp-dcraw-1.31/debian/changelog @@ -0,0 +1,43 @@ +gimp-dcraw (1.31-1.1) unstable; urgency=low + + * Non-maintainer upload. + * FTBFS: fix option passed to gimptool-2.0 (--build-strip > --build), + thanks to Tzafrir Cohen (Closes: #537019) + + -- David Paleino Fri, 18 Sep 2009 21:49:53 +0200 + +gimp-dcraw (1.31-1) unstable; urgency=low + + * New upstream version + * Added "Homepage" line to Source stanza in control file + + -- Steve King Fri, 25 Jul 2008 14:06:38 +0100 + +gimp-dcraw (1.27-2) unstable; urgency=low + + * Change Maintainer email + + -- Steve King Thu, 5 Oct 2006 21:03:54 +0100 + +gimp-dcraw (1.27-1) unstable; urgency=low + + * New upstream version + + -- Steve King Tue, 5 Sep 2006 21:57:49 +0100 + +gimp-dcraw (1.21-1) unstable; urgency=low + + * new upstream version + * modified priority from "optional" to "extra" + * closes: Bug#284474 + + -- Steve King Thu, 10 Mar 2005 23:03:59 +0000 + +gimp-dcraw (1.16-1) unstable; urgency=low + + * closes: Bug#231721 + * closes: Bug#218201 + * Initial Release. + + -- Steve King Sun, 5 Sep 2004 14:30:19 +0100 +