--- libiptcdata-1.0.4.orig/debian/control.in
+++ libiptcdata-1.0.4/debian/control.in
@@ -0,0 +1,76 @@
+Source: libiptcdata
+Section: libs
+Priority: extra
+Maintainer: Ian Wienand <ianw@debian.org>
+Uploaders: Sylvain Le Gall <gildor@debian.org>
+Build-Depends: @cdbs@, autotools-dev, gtk-doc-tools, dpkg-dev (>= 1.13.19), python-all-dev, python-central (>= 0.5)
+Standards-Version: 3.7.2
+Vcs-Svn: svn://svn.debian.org/svn/pkg-libiptcdata/
+XS-Python-Version: >= 2.3
+Homepage: http://libiptcdata.sourceforge.net/
+
+Package: libiptcdata0-dev
+Section: libdevel
+Provides: libiptcdata-dev
+Architecture: any
+Suggests: libiptcdata-doc
+Depends: libiptcdata0 (= ${binary:Version}), libc6-dev
+Description: Library to parse IPTC metadata (development files)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata0-dbg
+Section: debug
+Architecture: any
+Depends: libiptcdata0 (= ${binary:Version})
+Description: Library to parse IPTC metadata (debug files)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata-doc
+Section: doc
+Architecture: all
+Description: Library to parse IPTC metadata (documentation)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata-bin
+Section: graphics
+Architecture: any
+Depends: libiptcdata0 (= ${binary:Version})
+Description: Library to parse IPTC metadata (programs)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata0
+Section: libs
+Architecture: any
+Provides: libiptcdata
+Depends: ${shlibs:Depends}
+Description: Library to parse IPTC metadata
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: python-iptcdata
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Python bindings for the iptcdata library
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+ .
+ This package contains the python bindings for libiptcdata.
--- libiptcdata-1.0.4.orig/debian/libiptcdata0.install
+++ libiptcdata-1.0.4/debian/libiptcdata0.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
--- libiptcdata-1.0.4.orig/debian/rules
+++ libiptcdata-1.0.4/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# debian/rules for libiptcdata package
+# Copyright (C) 2006-2007 Sylvain Le Gall <gildor at-stmp-server debian.org>
+# Copyright (C) 2006-2007 Ian Wienand <ianw at-stmp-server debian.org>
+# Copyright (C) 2006 Hubert Figuiere <hub at-smtp-server figuiere.net>
+#
+# 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; either version 2, or (at
+# your option) any later version.
+#
+# 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.
+
+# Generate debian/control using
+# fakeroot debian/rules debian/control DEB_AUTO_UPDATE_DEBIAN_CONTROL:=yes
+
+DEB_DH_INSTALL_SOURCEDIR = $(CURDIR)/debian/tmp
+DEB_DH_STRIP_ARGS := --dbg-package=libiptcdata0
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/utils.mk
+include $(CURDIR)/debian/mk/docbook-manpage.mk
+
+PY_VERSIONS = $(shell pyversions --requested debian/control)
+
+DEB_BUILDDIR := build
+
+DEB_CONFIGURE_EXTRA_FLAGS := --enable-python --enable-gtk-doc
+
+configure-stamp-%:
+	mkdir build-$*
+	cd build-$* && PYTHON=`which $*` $(DEB_CONFIGURE_SCRIPT_ENV) \
+	    $(DEB_CONFIGURE_SCRIPT) \
+		$(DEB_CONFIGURE_NORMAL_ARGS) \
+		--disable-maintainer-mode \
+		$(cdbs_configure_flags) \
+		$(DEB_CONFIGURE_EXTRA_FLAGS) \
+		$(DEB_CONFIGURE_USER_FLAGS)
+	touch $@
+
+
+configure/python-iptcdata:: $(addprefix configure-stamp-, $(PY_VERSIONS))
+
+build-stamp-%:
+	make -C build-$*
+	touch $@
+
+build/python-iptcdata:: $(addprefix build-stamp-, $(PY_VERSIONS))
+
+install-stamp-%:
+	make -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
+	touch $@
+
+install/python-iptcdata:: $(addprefix install-stamp-, $(PY_VERSIONS))
+
+binary-install/python-iptcdata::
+	dh_pycentral
+	dh_python
+
+DEB_INSTALL_MANPAGES_libiptcdata-bin := debian/xml-man/en/iptc.1
+
+PO4A_SOURCES := $(CURDIR)/debian/xml-man/po4a/po4a.cfg
+
+DOCBOOK_MANPAGE_SOURCES := $(CURDIR)/debian/xml-man/en/iptc.xml
+
+DOCBOOK_MANPAGE_EXTRA_SOURCES := $(CURDIR)/debian/xml-man/en/license.xml      \
+				 $(CURDIR)/debian/xml-man/en/refentryinfo.xml
+
+clean::
+	-$(RM) $(CURDIR)/debian/xml-man/en/iptc.1
+	-$(RM) -r $(DEB_BUILDDIR)
+	-$(RM) -r $(addprefix $(CURDIR)/build-, $(PY_VERSIONS))
+	-$(RM) -r $(addprefix $(CURDIR)/configure-stamp-, $(PY_VERSIONS))
+	-$(RM) -r $(addprefix $(CURDIR)/build-stamp-, $(PY_VERSIONS))
+	-$(RM) -r $(addprefix $(CURDIR)/install-stamp-, $(PY_VERSIONS))
+
--- libiptcdata-1.0.4.orig/debian/python-iptcdata.docs
+++ libiptcdata-1.0.4/debian/python-iptcdata.docs
@@ -0,0 +1 @@
+python/README 
\ No newline at end of file
--- libiptcdata-1.0.4.orig/debian/compat
+++ libiptcdata-1.0.4/debian/compat
@@ -0,0 +1 @@
+5
--- libiptcdata-1.0.4.orig/debian/libiptcdata-doc.doc-base
+++ libiptcdata-1.0.4/debian/libiptcdata-doc.doc-base
@@ -0,0 +1,10 @@
+Document: libiptcdata-reference-manual
+Title: libiptcdata Reference Manual
+Author: David Moore
+Abstract: This manual documents the interfaces of the libiptcdata library and
+ has some notes to help get you up to speed with using the library.
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/libiptcdata-doc/html/index.html
+Files: /usr/share/doc/libiptcdata-doc/html/*.html
--- libiptcdata-1.0.4.orig/debian/python-iptcdata.examples
+++ libiptcdata-1.0.4/debian/python-iptcdata.examples
@@ -0,0 +1 @@
+python/examples/*
\ No newline at end of file
--- libiptcdata-1.0.4.orig/debian/libiptcdata0-dev.install
+++ libiptcdata-1.0.4/debian/libiptcdata0-dev.install
@@ -0,0 +1,4 @@
+usr/lib/lib*.so
+usr/lib/pkgconfig/libiptcdata.pc
+usr/lib/*.la
+usr/include/libiptcdata/*
--- libiptcdata-1.0.4.orig/debian/libiptcdata-doc.install
+++ libiptcdata-1.0.4/debian/libiptcdata-doc.install
@@ -0,0 +1,2 @@
+usr/share/gtk-doc/*
+
--- libiptcdata-1.0.4.orig/debian/copyright
+++ libiptcdata-1.0.4/debian/copyright
@@ -0,0 +1,37 @@
+This package was ubuntuized by Hubert Figuiere <hub at-smtp-server
+figuiere.net> on Wed Sep 21 23:11:53 EDT 2005
+This package was debianized by Ian Wienand <ianw at-smtp-server debian.org> and
+Sylvain Le Gall <gildor at-smtp-server debian.org> on Wed, 17 Jan 2007 23:25:16
++0100 
+
+It was downloaded from http://libiptcdata.sf.net/
+
+Copyright:
+    Copyright (c) 2005 David Moore <dcm@acm.org>
+
+License:
+    This library is free software; you can redistribute it and/or modify it
+    under the terms of the GNU Lesser General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or (at your
+    option) any later version.
+
+    This library 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 Lesser General Public
+    License for more details.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+Documentation License:
+
+  Permission is granted to copy, distribute and/or modify this document under
+  the terms of the GNU Free Documentation License, Version 1.1 or any later
+  version published by the Free Software Foundation with no Invariant Sections,
+  no Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy of the
+  GNU Free Documentation License from the Free Software Foundation by visiting
+  their Web site (http://www.fsf.org) or by writing to: Free Software
+  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On Debian systems, the complete text of teh GNU Free Documentation License
+can be found in `/usr/share/common-licenses/GFDL`
--- libiptcdata-1.0.4.orig/debian/pycompat
+++ libiptcdata-1.0.4/debian/pycompat
@@ -0,0 +1 @@
+2
--- libiptcdata-1.0.4.orig/debian/changelog
+++ libiptcdata-1.0.4/debian/changelog
@@ -0,0 +1,139 @@
+libiptcdata (1.0.4-1) unstable; urgency=low
+
+  * New upstream
+  * Incorporate patch to install files from dist-packages too.  Thanks
+    Michael! (Closes: #532279).
+
+ -- Ian Wienand <ianw@debian.org>  Wed, 13 Jan 2010 12:14:01 -0800
+
+libiptcdata (1.0.3-1) unstable; urgency=low
+
+  * New upstream (Closes: #508128, #510399, #510726)
+  
+ -- Ian Wienand <ianw@debian.org>  Wed, 25 Mar 2009 13:46:19 -0700
+
+libiptcdata (1.0.2+libtool01-2) unstable; urgency=low
+
+  * Add ${shlibs:Depends} to libiptcdata-bin
+
+ -- Ian Wienand <ianw@debian.org>  Fri, 18 Jan 2008 11:48:12 +1100
+
+libiptcdata (1.0.2+libtool01-1) unstable; urgency=low
+
+  * As per http://lists.debian.org/debian-devel/2008/01/msg00306.html this
+    version is built from a tarball which was created with the latest
+    libtool to avoid setting an rpath on amd64.
+  * Depend on debhelper 5.0.37.2 for dh_python compat level 2
+  * Bump standards to 3.7.3
+  * Move libiptcdata.so into -dev package
+  
+ -- Ian Wienand <ianw@debian.org>  Thu, 10 Jan 2008 15:10:58 +1100
+
+libiptcdata (1.0.2-3) unstable; urgency=low
+
+  [ Sylvain Le Gall ]
+  * Use DTD from docbook-xml package and not from docbook package
+  * Reduce debian/copyright to 80 columns
+
+  [ Ian Wienand ]
+  * Bump priority to optional for gthumb (Closes: #458169)
+
+ -- Ian Wienand <ianw@debian.org>  Wed, 02 Jan 2008 13:40:23 +1100
+
+libiptcdata (1.0.2-2) unstable; urgency=low
+
+  [ Ian Wienand ]
+  * Add missing .so to library package, .la to -dev package 
+  (Closes: #429050)
+
+ -- Ian Wienand <ianw@debian.org>  Sat, 16 Jun 2007 09:56:13 +1000
+
+libiptcdata (1.0.2-1) unstable; urgency=low
+  [ Ian Wienand ]
+
+  * New upstream, fixes build problems
+
+ -- Ian Wienand <ianw@debian.org>  Tue, 15 May 2007 21:02:29 +1000
+
+libiptcdata (1.0.1-2) unstable; urgency=low
+
+  [ Ian Wienand ]
+  * Update copyright file with links to full licenses
+  * Regenerate control for updated build-deps
+
+ -- Ian Wienand <ianw@debian.org>  Sun, 13 May 2007 10:37:54 +1000
+
+libiptcdata (1.0.1-1) unstable; urgency=low
+
+  [ Ian Wienand ]
+  * New upstream
+  * Build python-iptcdata with Python module wrappers
+
+ -- Ian Wienand <ianw@debian.org>  Thu, 10 May 2007 16:23:13 +1000
+
+libiptcdata (0.2.1+cvs20070221-1) unstable; urgency=low
+
+  [ Ian Wienand ]
+  * Take upstream from CVS
+  * debian/control.in : add dependency for gtk-tools-doc
+  * debian/copyright : Make note of GFDL documentation (note no invariant
+    sections, etc, so should be fine for main)
+
+ -- Ian Wienand <ianw@debian.org>  Wed, 21 Feb 2007 17:38:19 +1100
+
+libiptcdata (0.2.1-2) unstable; urgency=low
+
+  [ Ian Wienand ]
+  * Move to unstable, as it's not really expiermental in any way
+
+ -- Ian Wienand <ianw@debian.org>  Sat, 27 Jan 2007 17:45:01 +1100
+
+libiptcdata (0.2.1-1) experimental; urgency=low
+
+  [ Ian Wienand ]
+  * Import for Debian -- thanks to Hubert for packaging (closes: #407104)
+
+  [ Sylvain Le Gall ]
+  * Replace debian/control by debian/control.in:
+    * Include @cdbs@ inside (better to manage docbook and
+      cdbs related dependencies)
+    * Replace Source-Version by binary:Version in versioned dependency, add a
+      dependency to dpkg-dev >= 1.13.19
+    * Add " Homepage:"
+    * Add XS-Vcs-Svn
+    * Add me as uploaders
+  * Add a watch file pointing to sf.net/libiptcdata
+  * Move the iptc manpage to a xml-manpage + po4a scheme to be able to do
+    translation
+  * Include mk/{docbook-manpage.mk|po4a.mk} to handle the xml-man scheme
+  * Add header+copyright to rules
+  * Add debian/patches and dpatch.mk in rules to be able to user dpatch
+  * Modify copyright Ian and Sylvain debianized the package Hubert ubuntuized
+    it
+  * Add a svn-deblayout to manage svn-buildpackage variables
+  * Add libiptcdata-doc.doc-base (use doc-base for documentation), and
+    libiptcdata-doc.links to do link between gtk-doc and doc
+
+ -- Sylvain Le Gall <gildor@debian.org>  Thu, 18 Jan 2007 00:17:32 +0100
+
+libiptcdata (0.2.1-0ubuntu2) dapper; urgency=low
+
+  * New distro.
+
+ -- Hubert Figuiere <hub@figuiere.net>  Mon, 31 Oct 2005 07:56:27 -0500
+
+libiptcdata (0.2.1-0ubuntu1) breezy; urgency=low
+
+  * New upstream.
+  * Add -dbg package
+  * Version 0
+  * Added iptc.1 manpage
+
+ -- Hubert Figuiere <hub@figuiere.net>  Fri, 30 Sep 2005 00:24:42 -0400
+
+libiptcdata (0.2.0-0ubuntu1) breezy; urgency=low
+
+  * initial package of libiptcdata 0.2.0
+
+ -- Hubert Figuiere <hub@figuiere.net>  Wed, 21 Sep 2005 23:15:48 -0400
+
--- libiptcdata-1.0.4.orig/debian/watch
+++ libiptcdata-1.0.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/libiptcdata/libiptcdata-([0-9].*)\.tar\.gz
--- libiptcdata-1.0.4.orig/debian/libiptcdata-bin.install
+++ libiptcdata-1.0.4/debian/libiptcdata-bin.install
@@ -0,0 +1 @@
+usr/bin/iptc
--- libiptcdata-1.0.4.orig/debian/svn-deblayout
+++ libiptcdata-1.0.4/debian/svn-deblayout
@@ -0,0 +1,2 @@
+origDir=../upstream
+origUrl=svn+ssh://svn.debian.org/svn/pkg-libiptcdata/upstream
--- libiptcdata-1.0.4.orig/debian/python-iptcdata.install
+++ libiptcdata-1.0.4/debian/python-iptcdata.install
@@ -0,0 +1,2 @@
+usr/lib/python*/*-packages/iptcdata.so
+
--- libiptcdata-1.0.4.orig/debian/libiptcdata-doc.links
+++ libiptcdata-1.0.4/debian/libiptcdata-doc.links
@@ -0,0 +1 @@
+/usr/share/gtk-doc/html/libiptcdata /usr/share/doc/libiptcdata-doc/html
--- libiptcdata-1.0.4.orig/debian/control
+++ libiptcdata-1.0.4/debian/control
@@ -0,0 +1,76 @@
+Source: libiptcdata
+Section: libs
+Priority: optional
+Maintainer: Ian Wienand <ianw@debian.org>
+Uploaders: Sylvain Le Gall <gildor@debian.org>
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5.0.37.2), dpatch, po4a, docbook-xml (>= 4.4), docbook-xsl, libxml2-utils, xsltproc, autotools-dev, gtk-doc-tools, dpkg-dev (>= 1.13.19), python-all-dev, python-central (>= 0.5)
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-libiptcdata/
+XS-Python-Version: >= 2.3
+Homepage: http://libiptcdata.sourceforge.net/
+
+Package: libiptcdata0-dev
+Section: libdevel
+Provides: libiptcdata-dev
+Architecture: any
+Suggests: libiptcdata-doc
+Depends: libiptcdata0 (= ${binary:Version}), libc6-dev
+Description: Library to parse IPTC metadata (development files)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata0-dbg
+Priority: extra
+Architecture: any
+Depends: libiptcdata0 (= ${binary:Version})
+Description: Library to parse IPTC metadata (debug files)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata-doc
+Section: doc
+Architecture: all
+Description: Library to parse IPTC metadata (documentation)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata-bin
+Section: graphics
+Architecture: any
+Depends: ${shlibs:Depends}, libiptcdata0 (= ${binary:Version})
+Description: Library to parse IPTC metadata (programs)
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: libiptcdata0
+Section: libs
+Architecture: any
+Provides: libiptcdata
+Depends: ${shlibs:Depends}
+Description: Library to parse IPTC metadata
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+
+Package: python-iptcdata
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Python bindings for the iptcdata library
+ libiptcdata is a library, for manipulating the International Press
+ Telecommunications Council (IPTC) metadata stored within multimedia
+ files such as images. The library provides routines for parsing,
+ viewing, modifying, and saving this metadata.
+ .
+ This package contains the python bindings for libiptcdata.
--- libiptcdata-1.0.4.orig/debian/xml-man/po4a/po4a.cfg
+++ libiptcdata-1.0.4/debian/xml-man/po4a/po4a.cfg
@@ -0,0 +1,7 @@
+[po4a_paths] debian/xml-man/po4a/po/libiptcdata-man.pot
+
+[type: docbook] debian/xml-man/en/iptc.xml
+
+[type: docbook] debian/xml-man/en/license.xml
+
+[type: docbook] debian/xml-man/en/refentryinfo.xml
--- libiptcdata-1.0.4.orig/debian/xml-man/en/iptc.xml
+++ libiptcdata-1.0.4/debian/xml-man/en/iptc.xml
@@ -0,0 +1,222 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+  <!ENTITY debian              "Debian GNU/Linux">
+  <!ENTITY dhprg               "<command>iptc</command>">
+]>
+
+<!--**********************************************************************-->
+<!-- IPTC manpage                                                         -->
+<!--                                                                      -->
+<!-- Copyright (C) 2006 Sylvain Le Gall <gildor at-smtp debian.org>       -->
+<!--                                                                      -->
+<!-- This library is free software; you can redistribute it and/or        -->
+<!-- modify it under the terms of the GNU Lesser General Public           -->
+<!-- License as published by the Free Software Foundation; either         -->
+<!-- version 2.1 of the License, or (at your option) any later version;   -->
+<!-- with the OCaml static compilation exception.                         -->
+<!--                                                                      -->
+<!-- This library 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    -->
+<!-- Lesser General Public License for more details.                      -->
+<!--                                                                      -->
+<!-- You should have received a copy of the GNU Lesser General Public     -->
+<!-- License along with this library; if not, write to the Free Software  -->
+<!-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               -->
+<!-- MA 02110-1301, USA.                                                  -->
+<!--                                                                      -->
+<!-- Contact: gildor at-smtp debian.org                                   -->
+<!--**********************************************************************-->
+
+<refentry>
+
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="refentryinfo.xml"/>
+
+  <refmeta>
+    <refentrytitle>IPTC</refentrytitle>
+    <manvolnum>1</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>iptc</refname>
+
+    <refpurpose>
+      Utility for viewing and modifying the contents of IPTC metadata in images.
+    </refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      &dhprg; 
+      <group>
+        <arg>-q</arg>
+        <arg>--quiet</arg>
+      </group>
+      <group>
+        <arg>-b</arg>
+        <arg>--backup</arg>
+      </group>
+      <group>
+        <arg>-s</arg>
+        <arg>--sort</arg>
+      </group>
+      <group>
+        <arg>-v <replaceable>VALUE</replaceable></arg>
+        <arg>--value=<replaceable>VALUE</replaceable></arg>
+      </group>
+      <group>
+        <group>
+          <arg>-l</arg>
+          <arg>--list</arg>
+        </group>
+        <group>
+          <arg>-L <replaceable>TAGS</replaceable></arg>
+          <arg>--list-desc=<replaceable>TAGS</replaceable></arg>
+        </group>
+        <group>
+          <arg>-a <replaceable>TAGS</replaceable></arg>
+          <arg>--add=<replaceable>TAGS</replaceable></arg>
+        </group>
+        <group>
+          <arg>-m <replaceable>TAGS</replaceable></arg>
+          <arg>--modify=<replaceable>TAGS</replaceable></arg>
+        </group>
+        <group>
+          <arg>-d <replaceable>TAGS</replaceable></arg>
+          <arg>--delete=<replaceable>TAGS</replaceable></arg>
+        </group>
+        <group>
+          <arg>-p <replaceable>TAGS</replaceable></arg>
+          <arg>--print=<replaceable>TAGS</replaceable></arg>
+        </group>
+      </group>
+      <arg>--help</arg>
+      <arg>--version</arg>
+      <arg rep="repeat"><replaceable>file</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the &dhprg; command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.</para>
+
+    <para>&dhprg; is a IPTC data editor. You can add, modify and delete
+      ITPC metadata in images. You can also get the value of a particular
+      tag.
+    </para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-q</option></term>
+        <term><option>--quiet</option></term>
+        <listitem>
+          <para>Produce less verbose output.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-b</option></term>
+        <term><option>--backup</option></term>
+        <listitem>
+          <para>Backup any modified files.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-s</option></term>
+        <term><option>--sort</option></term>
+        <listitem>
+          <para>Sort tags before displaying or saving.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--help</option></term>
+        <listitem>
+          <para>Display an help message and exit.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--version</option></term>
+        <listitem>
+          <para>Display an &dhprg; version number and exit.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-l</option></term>
+        <term><option>--list</option></term>
+        <listitem>
+          <para>List the name of all known tags (i.e. Caption, etc).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-L <replaceable>TAG</replaceable></option></term>
+        <term><option>--list-desc=<replaceable>TAG</replaceable></option></term>
+        <listitem>
+          <para>Print the name and description of TAG.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-a <replaceable>TAG</replaceable></option></term>
+        <term><option>--add=<replaceable>TAG</replaceable></option></term>
+        <listitem>
+          <para>Add new tag with identifier TAG.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-m <replaceable>TAG</replaceable></option></term>
+        <term><option>--modify=<replaceable>TAG</replaceable></option></term>
+        <listitem>
+          <para>Modify tag with identifier TAG (add if not present).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v <replaceable>VALUE</replaceable></option></term>
+        <term><option>--value=<replaceable>VALUE</replaceable></option></term>
+        <listitem>
+          <para>Value for added/modified tag.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-d <replaceable>TAG</replaceable></option></term>
+        <term><option>--delete=<replaceable>TAG</replaceable></option></term>
+        <listitem>
+          <para>Delete tag with identifier TAG.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-p <replaceable>TAG</replaceable></option></term>
+        <term><option>--print=<replaceable>TAG</replaceable></option></term>
+        <listitem>
+          <para>Print value of tag with identifier TAG.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option><replaceable>file</replaceable></option></term>
+        <listitem>
+          <para>Files to edit.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+    
+  </refsect1>
+
+  <refsect1>
+    <title>EXAMPLES</title>
+   
+    <para>Display the IPTC metadata contained in image.jpg: <command>iptc
+        image.jpg</command></para>
+
+    <para>Set caption "Foo" in all jpegs of the current dir: <command>iptc -m
+        Caption -v "Foo" *.jpg</command></para>
+
+
+    <para>Add keyword "vacation" to all jpegs: <command>iptc -a Keywords -v
+        "vacation" *.jpg</command></para>
+
+  </refsect1>
+
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="license.xml"/>
+</refentry>
--- libiptcdata-1.0.4.orig/debian/xml-man/en/refentryinfo.xml
+++ libiptcdata-1.0.4/debian/xml-man/en/refentryinfo.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE refentryinfo PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+]>
+
+<!--**********************************************************************-->
+<!-- Info include for manpage                                             -->
+<!--                                                                      -->
+<!-- Copyright (C) 2005-2006 Sylvain Le Gall <gildor at-smtp debian.org>  -->
+<!--                                                                      -->
+<!-- This library is free software; you can redistribute it and/or        -->
+<!-- modify it under the terms of the GNU Lesser General Public           -->
+<!-- License as published by the Free Software Foundation; either         -->
+<!-- version 2.1 of the License, or (at your option) any later version;   -->
+<!-- with the OCaml static compilation exception.                         -->
+<!--                                                                      -->
+<!-- This library 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    -->
+<!-- Lesser General Public License for more details.                      -->
+<!--                                                                      -->
+<!-- You should have received a copy of the GNU Lesser General Public     -->
+<!-- License along with this library; if not, write to the Free Software  -->
+<!-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               -->
+<!-- MA 02110-1301, USA.                                                  -->
+<!--                                                                      -->
+<!-- Contact: gildor@debian.org                                           -->
+<!--**********************************************************************-->
+
+<refentryinfo>
+  <author>
+    <firstname>Sylvain</firstname>
+    <surname>Le Gall</surname>
+    <email>gildor at-smtp-server debian.org</email>
+  </author>
+  <copyright>
+    <year>2007</year>
+    <holder>Sylvain Le Gall</holder>
+  </copyright>
+  <date>Jan 17, 2007</date>
+</refentryinfo>
--- libiptcdata-1.0.4.orig/debian/xml-man/en/license.xml
+++ libiptcdata-1.0.4/debian/xml-man/en/license.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE refsect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+  <!ENTITY debian "Debian GNU/Linux">
+]>
+
+<!--**********************************************************************-->
+<!-- License include for manpage                                          -->
+<!--                                                                      -->
+<!-- Copyright (C) 2006 Sylvain Le Gall <gildor at-smtp debian.org>       -->
+<!--                                                                      -->
+<!-- This library is free software; you can redistribute it and/or        -->
+<!-- modify it under the terms of the GNU Lesser General Public           -->
+<!-- License as published by the Free Software Foundation; either         -->
+<!-- version 2.1 of the License, or (at your option) any later version;   -->
+<!-- with the OCaml static compilation exception.                         -->
+<!--                                                                      -->
+<!-- This library 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    -->
+<!-- Lesser General Public License for more details.                      -->
+<!--                                                                      -->
+<!-- You should have received a copy of the GNU Lesser General Public     -->
+<!-- License along with this library; if not, write to the Free Software  -->
+<!-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               -->
+<!-- MA 02110-1301, USA.                                                  -->
+<!--                                                                      -->
+<!-- Contact: gildor@debian.org                                           -->
+<!--**********************************************************************-->
+
+<refsect1>
+  <title>LICENSE</title>
+
+  <para>
+    This manual page was written by 
+    <personname>
+      <firstname>Sylvain</firstname>
+      <surname>Le Gall</surname>
+    </personname>
+    <email>gildor@debian.org</email>
+    for the &debian; system (but may be used by others).
+    Permission is granted to copy, distribute and/or modify this document
+    under the terms of the <acronym>GNU</acronym> Lesser General Public
+    License, Version 2.1 or any later version published by the Free
+    Software Foundation; considering as source code all the file that
+    enable the production of this manpage.
+  </para>
+</refsect1>
--- libiptcdata-1.0.4.orig/debian/mk/docbook-manpage.mk
+++ libiptcdata-1.0.4/debian/mk/docbook-manpage.mk
@@ -0,0 +1,126 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2006 Sylvain Le Gall <gildor#debian.org>
+# Description: Rules to manage manpages written in XML.
+#
+# 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; either version 2, or (at
+# your option) any later version.
+#
+# 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. 
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_docbookxml
+_cdbs_rules_docbook_manpage = 1
+
+# needed by debian/control:: rule below
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+# needed for po4a-stamp
+# TODO: if released in CDBS, change above
+include $(CURDIR)/debian/mk/po4a.mk$(_cdbs_makefile_suffix)
+
+# docbook manpages to build
+DOCBOOK_MANPAGE_SOURCES := 
+
+# extra docbook sources to look for (docbook extract to be included in 
+# other docbook manpage)
+DOCBOOK_MANPAGE_EXTRA_SOURCES :=
+
+# version of docbook sources to use (must follow the scheme " (>= version)")
+DOCBOOK_MANPAGE_VERSION := 
+
+# add required build dependency for used tools 
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), docbook-xml@docbook_version@, docbook-xsl, libxml2-utils, xsltproc
+
+# xmllint program to use
+DOCBOOK_MANPAGE_XMLLINT := xmllint
+
+# flags for xmllint
+DOCBOOK_MANPAGE_XMLLINT_FLAGS := --nonet --noout --postvalid --xinclude
+
+# xsltproc program to use
+DOCBOOK_MANPAGE_XSLTPROC := xsltproc
+
+# flags for xsltproc
+DOCBOOK_MANPAGE_XSLTPROC_FLAGS := --nonet --xinclude --param man.charmap.use.subset 0
+
+# XSL stylesheet to transform docbook to manpage
+DOCBOOK_MANPAGE_XSLTPROC_XSL := /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
+
+# file containing the list of generated files
+DOCBOOK_MANPAGE_LIST := $(CURDIR)/debian/docbook-manpage-list
+
+# compute higher docbook version, if required (no version provided and sources defined)
+# and replace it in generated control file.
+ifneq ($(DEB_AUTO_UPDATE_DEBIAN_CONTROL),)
+debian/control::
+	if test -f $(CURDIR)/debian/control && test -f $(CURDIR)/debian/control.in; then \
+	  DOCBOOK_MANPAGE_VERSION=$(strip $(DOCBOOK_MANPAGE_VERSION)); \
+	  if test "x$$DOCBOOK_MANPAGE_VERSION" == "x" && \
+	     test "x$(strip $(DOCBOOK_MANPAGE_SOURCES))" != "x"; then \
+	    DOCBOOK_ALL_SOURCES="$(DOCBOOK_MANPAGE_SOURCES) $(DOCBOOK_MANPAGE_EXTRA_SOURCES)"; \
+	    DOCBOOK_MANPAGE_VERSION=`grep -s -e "-//OASIS//DTD DocBook XML V[0-9\.]*//EN" $$DOCBOOK_ALL_SOURCES | \
+		                     sed "s,.*-//OASIS//DTD DocBook XML V\\([0-9\.]*\\)//EN.*,\\1," | \
+		                     sort -r | head -n 1`; \
+	    if test "x$$DOCBOOK_MANPAGE_VERSION" != "x"; then \
+	      DOCBOOK_MANPAGE_VERSION=" (>= $$DOCBOOK_MANPAGE_VERSION)"; \
+	    fi; \
+	  fi; \
+	  sed -i "s,@docbook_version@,$$DOCBOOK_MANPAGE_VERSION," $(CURDIR)/debian/control; \
+	fi
+endif
+
+# check docbook sources for any problem
+%.docbook-manpage-check:: % 
+	$(DOCBOOK_MANPAGE_XMLLINT) $(DOCBOOK_MANPAGE_XMLLINT_FLAGS) $<
+	echo $@ >> $(DOCBOOK_MANPAGE_LIST)
+	touch $@
+
+# build manpage
+%.docbook-manpage-build:: % $(DOCBOOK_MANPAGE_XSLTPROC_XSL)
+	$(DOCBOOK_MANPAGE_XSLTPROC) \
+	  $(DOCBOOK_MANPAGE_XSLTPROC_FLAGS) \
+	  -o $(dir $<) \
+	  $(DOCBOOK_MANPAGE_XSLTPROC_XSL) \
+	  $<
+	echo $@ >> $(DOCBOOK_MANPAGE_LIST)
+	touch $@
+
+
+# check all docbook sources and build manpage.
+# TODO: find a better solution than recursive call to debian/rules
+docbook-manpage: docbook-manpage-stamp
+docbook-manpage-stamp:: po4a-stamp
+	if test "x$(strip $(DOCBOOK_MANPAGE_SOURCES))" != "x" && \
+	   test "x$(strip $(DOCBOOK_MANPAGE_EXTRA_SOURCES))" != "x"; then \
+	   $(CURDIR)/debian/rules \
+	    $(addsuffix .docbook-manpage-check,\
+	      $(DOCBOOK_MANPAGE_SOURCES) \
+	      $(DOCBOOK_MANPAGE_EXTRA_SOURCES)) \
+	    $(addsuffix .docbook-manpage-build, \
+	      $(DOCBOOK_MANPAGE_SOURCES)); \
+	fi
+	touch $@
+
+build: docbook-manpage
+
+clean::
+	-if test -f $(DOCBOOK_MANPAGE_LIST); then \
+	  $(RM) `cat $(DOCBOOK_MANPAGE_LIST)`; \
+	  $(RM) $(DOCBOOK_MANPAGE_LIST); \
+	fi   
+	-$(RM) docbook-manpage-stamp
+	
+endif
--- libiptcdata-1.0.4.orig/debian/mk/po4a.mk
+++ libiptcdata-1.0.4/debian/mk/po4a.mk
@@ -0,0 +1,80 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2006 Sylvain Le Gall <gildor#debian.org>
+# Description: Rules to manage translation made through po4a.
+#
+# 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; either version 2, or (at
+# your option) any later version.
+#
+# 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. 
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_po4a
+_cdbs_rules_po4a = 1
+
+# needed by debian/control:: rule below
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+# po4a files 
+PO4A_SOURCES :=
+
+# po4a program to use
+PO4A := po4a
+
+# flags for po4a in clean target
+PO4A_CLEAN_FLAGS := --no-translations --rm-backups 
+
+# flags for po4a in build target
+PO4A_BUILD_FLAGS:= --rm-backups
+
+# file containing the list of generated files
+PO4A_LIST := $(CURDIR)/debian/po4a-list
+
+# add required build dependency for used tools 
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), po4a
+
+# generate the translations (rules follow recommendation of po4a author)
+%.po4a-build:: %
+	$(PO4A) $(PO4A_BUILD_FLAGS) $<
+	echo $@ >> $(PO4A_LIST) 
+	touch $@
+
+# call po4a when it is required
+# TODO: find a better solution than recursive call to debian/rules
+po4a: po4a-stamp
+po4a-stamp::
+	if test "x$(strip $(PO4A_SOURCES))" != "x"; then \
+	  $(CURDIR)/debian/rules \
+	    $(addsuffix .po4a-build,\
+	      $(PO4A_SOURCES)); \
+	fi
+	touch $@
+
+build: po4a
+
+# update the POT and PO (rules follow recommendation of po4a author)
+clean::
+	if test -f $(PO4A_LIST); then \
+	  for i in `grep ".po4a-build" $(PO4A_LIST)`; do \
+	    $(PO4A) $(PO4A_CLEAN_FLAGS) $${i%%.po4a-build}; \
+	  done; \
+	fi
+	-if test -f $(PO4A_LIST); then \
+	  $(RM) `cat $(PO4A_LIST)`; \
+	  $(RM) $(PO4A_LIST); \
+	fi
+	-$(RM) po4a-stamp
+
+endif
