debian/0000755000000000000000000000000012217672036007174 5ustar debian/control0000644000000000000000000000231712217672036010602 0ustar Source: pecomato Section: utils Priority: extra Maintainer: Ricardo Mones Build-Depends: debhelper (>= 9), perl (>= 5), python-minimal (>= 2.4), ghostscript, hardening-wrapper Standards-Version: 3.9.4 Homepage: http://www.mollux.org/projects/pecomato/ Vcs-Git: git://anonscm.debian.org/users/mones/pecomato.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/mones/pecomato.git Package: pecomato Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Picture-embedded contents manipulation tool PECoMaTo is a metadata processor designed to display any kind of information embedded in picture files, as well as checking, filtering, extracting, removing, adding and fixing such information. . It supports the following file formats: JPEG/JFIF, Adobe PSD, FFO and raw IPTC. And it knows about the following metadata formats: JFIF, IPTC, Exif, Adobe and Fotostation. . One of its main goals is to check the validity of parsed metadata as well as optionally check the strict compliance to official standards. On another hand, it aims to provide ways of fixing broken or not compliant chunks as well as providing general basic functions to manipulate the metadata. debian/watch0000644000000000000000000000013312217672036010222 0ustar version=3 http://www.mollux.org/projects/pecomato/download/sources/pecomato-(.*)\.tar\.gz debian/install0000644000000000000000000000004012217672036010557 0ustar dist-linux/bin/pecomato usr/bin debian/source/0000755000000000000000000000000012217672036010474 5ustar debian/source/format0000644000000000000000000000001412217672036011702 0ustar 3.0 (quilt) debian/pecomato.doc-base0000644000000000000000000000030412217672036012377 0ustar Document: pecomato-manual Title: Pecomato Manual Author: Tristan Chabredier Abstract: This is PECoMaTo user manual Section: Graphics Format: PDF Files: /usr/share/doc/pecomato/user-manual.pdf.gz debian/clean0000644000000000000000000000001312217672036010173 0ustar pecomato.1 debian/copyright0000644000000000000000000000541612217672036011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pecomato Upstream-Contact: Tristan Chabredier Source: http://www.mollux.org/projects/pecomato/ Files: * Copyright: 2005-2010 Tristan Chabredier License: GPL-3+ Files: devtools/txt2tags.py Copyright: 2001, 2002, 2003, 2004, 2005, 2006 Aurelio Marinho Jargas License: GPL-2 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 have received a copy of the GNU General Public License along with this program, on the COPYING file. Files: devtools/cvs2cl.pl Copyright: 2001,2002,2003,2004 Martyn J. Pearce 1999 Karl Fogel License: GPL-2+ Files: devtools/html2ps.pl Copyright: 1995-2005 Jan Karrman License: GPL-2+ Files: debian/* Copyright: 2007-2013 Ricardo Mones License: GPL-2+ License: GPL-2+ 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 of the License, 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. . On Debian systems the complete text of GPL-2 license can be found in the file '/usr/share/common-licenses/GPL-2'. License: GPL-3+ 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 3 of the License, 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, see . On Debian systems the complete text of GPL-3 license can be found in the file '/usr/share/common-licenses/GPL-3'. debian/rules0000755000000000000000000000024512217672036010255 0ustar #!/usr/bin/make -f export DEB_BUILD_HARDENING=1 %: dh $@ override_dh_auto_install: dh_auto_install cp dist-linux/share/doc/pecomato/man/manpage.man pecomato.1 debian/patches/0000755000000000000000000000000012217672036010623 5ustar debian/patches/series0000644000000000000000000000003512217672036012036 0ustar makefile.patch warning.patch debian/patches/warning.patch0000644000000000000000000000064312217672036013314 0ustar Description: fix warning “incompatible implicit declaration of built-in function '_exit'” Author: Ricardo Mones Last-Update: 2013-09-23 diff -urN a/util.c b/util.c --- a/util.c +++ b/util.c @@ -12,11 +12,7 @@ #include #include #ifndef OS_WIN32 -#ifdef __GNUC__ -#if (__GNUC__ < 4) -#include -#endif -#else +#ifdef __GNUC__ #include #endif #endif debian/patches/makefile.patch0000644000000000000000000001645112217672036013430 0ustar Description: add Makefile based on Makefile.linux Author: Ricardo Mones Forwarded: not-needed Last-Update: 2013-09-20 diff -urN a/Makefile b/Makefile --- a/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ b/Makefile 2013-09-20 00:45:06.045731833 +0200 @@ -0,0 +1,227 @@ +include Makefile.linux.inc +include doc/Makefile.inc + +CC ?= gcc +CFLAGS ?= -O2 -fomit-frame-pointer -ansi -pedantic -Wall -W +#CFLAGS ?= -g -pipe -ansi -pedantic -Wall -W +CFLAGS += -D_GNU_SOURCE -DOS_UNIX -DOS_LINUX -DPRODUCT_ID="\"$(PRODUCT)\"" -DPRODUCT_VERSION="\"$(VERSION)\"" +LFLAGS = +PREFIX ?= $(shell pwd)/dist-linux + +BIN_DIR = $(PREFIX)/bin +DATA_DIR = $(PREFIX)/share +DOC_DIR = $(DATA_DIR)/doc/$(PRODUCT) +SRC_PREFIX = $(shell pwd)/dist-src + +TARGET = $(PRODUCT) +OBJECTS = main.o util.o exif.o iptc.o jfif.o adobe.o tiff.o +DOC_DEFS = doc/Makefile.defs + + +default: all + +syst: + echo "linux system: $(SYST) ($(SYSTBASE))" + +all: $(TARGET) + +full: clean all + +deps: $(OBJECTS) + +doc: make-defs + $(MAKE) -C doc/ -f Makefile.posix all + +$(TARGET): deps + $(CC) $(LFLAGS) -o $@ $(OBJECTS) + +%.o: %.c %.h config.h + $(CC) $(CFLAGS) -c -o $@ $< + +install: all install-dirs install-data install-bin + +install-strip: install + strip $(BIN_DIR)/$(TARGET) + +install-dirs: + $(CHECK_EXIST_DIR) $(BIN_DIR) || \ + $(CREATE_DIR) $(BIN_DIR) + $(CHECK_EXIST_DIR) $(DOC_DIR) || \ + $(CREATE_DIR) $(DOC_DIR) + +install-data: install-doc + +install-doc: make-defs + $(MAKE) -C doc/ -f Makefile.posix install + +install-bin: $(TARGET) + $(COPY_FILE) $(TARGET) $(BIN_DIR)/ + +uninstall: uninstall-bin uninstall-data uninstall-dirs + +uninstall-bin: + -$(DEL_FILE) $(BIN_DIR)/$(TARGET) + +uninstall-data: uninstall-doc + +uninstall-doc: make-defs + -$(MAKE) -C doc/ -f Makefile.posix uninstall + +uninstall-dirs: + -$(DEL_DIR) $(BIN_DIR)/ + -$(DEL_DIR) $(DOC_DIR)/ + +clean: clean-doc + -$(DEL_FILE) $(TARGET) *.o core + +clean-doc: make-defs + -$(MAKE) -C doc/ -f Makefile.posix clean + +clean-changelog: + -$(DEL_FILE) ChangeLog* + +clean-defs: + -$(DEL_FILE) $(DOC_DEFS) + +clean-in: + -for FILE in *.in; \ + do \ + rm -f $${FILE:0:$${#FILE}-3}; \ + done + +dist: distbin distsrc + +dist-fc5: dist rpmbuild + for FILE in $(PRODUCT)-$(VERSION)-[0-9].i686.rpm; \ + do \ + $(RENAME_FILE) $$FILE $$(echo $$FILE | sed s/.i686./.fc5.i686./); \ + done + for FILE in $(PRODUCT)-$(VERSION)-[0-9].src.rpm; \ + do \ + $(RENAME_FILE) $$FILE $$(echo $$FILE | sed s/.src./.fc5.src./); \ + done + +dist-rh7: dist rpm + for FILE in $(PRODUCT)-$(VERSION)-[0-9].i386.rpm; \ + do \ + $(RENAME_FILE) $$FILE $$(echo $$FILE | sed s/.i386./.rh7.i386./); \ + done + for FILE in $(PRODUCT)-$(VERSION)-[0-9].src.rpm; \ + do \ + $(RENAME_FILE) $$FILE $$(echo $$FILE | sed s/.src./.rh7.src./); \ + done + +distbin: install-strip distbin-gz distbin-bz2 distbin-zip distbin-rar distbin-7z + +distbin-gz: + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-$(SYST).tar.gz + cd $(PREFIX) && \ + $(TARGZ) ../$(PRODUCT)-$(VERSION)-$(SYST).tar.gz * + +distbin-bz2: + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-$(SYST).tar.bz2 + cd $(PREFIX) && \ + $(TARBZ2) ../$(PRODUCT)-$(VERSION)-$(SYST).tar.bz2 * + +distbin-zip: + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-$(SYST).zip + cd $(PREFIX) && \ + $(ZIP) ../$(PRODUCT)-$(VERSION)-$(SYST).zip * + +distbin-rar: + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-$(SYST).rar + cd $(PREFIX) && \ + $(RAR) ../$(PRODUCT)-$(VERSION)-$(SYST).rar * + +distbin-7z: + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-$(SYST).7z + cd $(PREFIX) && \ + $(7ZIP) ../$(PRODUCT)-$(VERSION)-$(SYST).7z * + +rpmbuild: distsrc make-spec + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-*.i686.rpm + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-*.src.rpm + $(COPY_FILE) $(PRODUCT)-$(VERSION).tar.gz $(HOME)/rpmbuild/SOURCES + $(RPMBUILD) --target=i686 $(PRODUCT).spec + $(COPY_FILE) $(HOME)/rpmbuild/RPMS/i686/$(PRODUCT)-$(VERSION)-*.i686.rpm . + $(COPY_FILE) $(HOME)/rpmbuild/SRPMS/$(PRODUCT)-$(VERSION)-*.src.rpm . + +rpm: distsrc make-spec + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-*.i386.rpm + -$(DEL_FILE) $(PRODUCT)-$(VERSION)-*.src.rpm + $(COPY_FILE) $(PRODUCT)-$(VERSION).tar.gz $(HOME)/rpm/SOURCES + $(RPM) --target=i386 $(PRODUCT).spec + $(COPY_FILE) $(HOME)/rpm/RPMS/i386/$(PRODUCT)-$(VERSION)-*.i386.rpm . + $(COPY_FILE) $(HOME)/rpm/SRPMS/$(PRODUCT)-$(VERSION)-*.src.rpm . + +distsrc: distsrc-prep distsrc-gz distsrc-bz2 distsrc-zip distsrc-rar distsrc-7z + +distsrc-prep: make-changelog doc + $(CHECK_EXIST_DIR) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION) && \ + $(DEL_DIR) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/* || \ + $(CREATE_DIR) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION) + $(CREATE_DIR) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/doc + $(CREATE_DIR) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/devtools + $(COPY_FILE) ChangeLog $(MKFILES) $(SOURCES) $(RESOURCES) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/ + $(COPY_FILE) $(DOC_SOURCES) $(DOC_MKFILES) $(DOC_RESOURCES) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/doc/ + $(COPY_FILE) $(TOOLS) $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/devtools/ + $(COPY_FILE) doc/$(TXT_DIR)/DISCLAIMER.txt $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/DISCLAIMER + $(COPY_FILE) doc/$(TXT_DIR)/INSTALL.txt $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/INSTALL + $(COPY_FILE) doc/$(TXT_DIR)/LICENSE.txt $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/LICENSE + $(COPY_FILE) doc/$(TXT_DIR)/README.txt $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/README + $(COPY_FILE) doc/$(TXT_DIR)/TODO.txt $(SRC_PREFIX)/$(PRODUCT)-$(VERSION)/TODO + +distsrc-gz: + -$(DEL_FILE) $(PRODUCT)-$(VERSION).tar.gz + cd $(SRC_PREFIX) && \ + $(TARGZ) ../$(PRODUCT)-$(VERSION).tar.gz $(PRODUCT)-$(VERSION)/ + +distsrc-bz2: + -$(DEL_FILE) $(PRODUCT)-$(VERSION).tar.bz2 + cd $(SRC_PREFIX) && \ + $(TARBZ2) ../$(PRODUCT)-$(VERSION).tar.bz2 $(PRODUCT)-$(VERSION)/ + +distsrc-zip: + -$(DEL_FILE) $(PRODUCT)-$(VERSION).zip + cd $(SRC_PREFIX) && \ + $(ZIP) ../$(PRODUCT)-$(VERSION).zip $(PRODUCT)-$(VERSION)/ + +distsrc-rar: + -$(DEL_FILE) $(PRODUCT)-$(VERSION).rar + cd $(SRC_PREFIX) && \ + $(RAR) ../$(PRODUCT)-$(VERSION).rar $(PRODUCT)-$(VERSION)/ + +distsrc-7z: + -$(DEL_FILE) $(PRODUCT)-$(VERSION).7z + cd $(SRC_PREFIX) && \ + $(7ZIP) ../$(PRODUCT)-$(VERSION).7z $(PRODUCT)-$(VERSION)/ + +distcvs: distsrc-prep distsrc-gz distsrc-bz2 distsrc-zip distsrc-rar distsrc-7z + $(RENAME_FILE) $(PRODUCT)-$(VERSION).tar.gz $(PRODUCT)-cvs-snapshot.tar.gz + $(RENAME_FILE) $(PRODUCT)-$(VERSION).tar.bz2 $(PRODUCT)-cvs-snapshot.tar.bz2 + $(RENAME_FILE) $(PRODUCT)-$(VERSION).zip $(PRODUCT)-cvs-snapshot.zip + $(RENAME_FILE) $(PRODUCT)-$(VERSION).rar $(PRODUCT)-cvs-snapshot.rar + $(RENAME_FILE) $(PRODUCT)-$(VERSION).7z $(PRODUCT)-cvs-snapshot.7z + +distclean: uninstall clean distclean-doc clean-changelog clean-defs clean-in + -$(DEL_DIR) dist-linux/ + -$(DEL_DIR) dist-src/ + +distclean-doc: make-defs + -$(MAKE) -C doc/ -f Makefile.posix distclean + +make-changelog: + $(CHECK_EXIST_FILE) ChangeLog || \ + $(PERL) $(CVS2CL) + +make-defs: + echo "INSTALL_HTML_DIR = $(DOC_DIR)/html" > $(DOC_DEFS) + echo "INSTALL_TXT_DIR = $(DOC_DIR)/txt" >> $(DOC_DEFS) + echo "INSTALL_MAN_DIR = $(DOC_DIR)/man" >> $(DOC_DEFS) + echo "INSTALL_PDF_DIR = $(DOC_DIR)/pdf" >> $(DOC_DEFS) + +make-spec: + -$(DEL_FILE) $(PRODUCT).spec + sed -e "s/@PRODUCT@/$(PRODUCT)/g" -e "s/@VERSION@/$(VERSION)/g" -e "s/@DESCRIPTION@/$(DESCRIPTION)/g" \ + -e "s/@AUTHOR_CONTACT@/$(AUTHOR_CONTACT)/g" -e "s/@HOMEPAGE@/$(HOMEPAGE)/g" -e "s/@CATEGORY@/$(CATEGORY)/g" \ + -e "s/@LICENSE@/$(LICENSE)/g" $(PRODUCT).spec.in > $(PRODUCT).spec debian/manpages0000644000000000000000000000001312217672036010704 0ustar pecomato.1 debian/docs0000644000000000000000000000015612217672036010051 0ustar README TODO dist-linux/share/doc/pecomato/html/manpage.html dist-linux/share/doc/pecomato/pdf/user-manual.pdf debian/compat0000644000000000000000000000000212217672036010372 0ustar 9 debian/changelog0000644000000000000000000000345312217672036011053 0ustar pecomato (0.0.15-5) unstable; urgency=low * debian/patches/{makefile.patch|series}, Makefile.patch - Replace cp + patch by a complete patch to create the Makefile * debian/rules, debian/install, debian/manpages - Switch to debhelper sequencer * debian/control, debian/compat, debian/rules - Require debhelper compat level 9 - Update Vcs-* headers to use the canonical hostname - Bump Standards-Version to 3.9.4 (no other changes) - Enable hardened build through hardening-wrapper * debian/copyright - Update Format: line and year * debian/pecomato.doc-base - Add control file for provided user manual (thanks lintian!) * debian/patches/{warning.patch|series} - Add patch to fix build warning -- Ricardo Mones Mon, 23 Sep 2013 00:49:06 +0200 pecomato (0.0.15-4) unstable; urgency=low * debian/copyright - Slightly improved with separate license sections * debian/control - Updated Standards-Version to 3.9.2 (no other changes) - Development moved to git.debian.org: added Vcs-* headers * debian/rules - Add targets build-arch and build-indep (thanks lintian!) -- Ricardo Mones Thu, 08 Sep 2011 21:42:51 +0200 pecomato (0.0.15-3) unstable; urgency=low * debian/control - Updated Standards-Version to 3.9.1 (no other changes) * Switch to dpkg-source 3.0 (quilt) format * debian/copyright - Rewritten in DEP-5 format -- Ricardo Mones Wed, 29 Dec 2010 19:40:16 +0100 pecomato (0.0.15-2) unstable; urgency=low * debian/control - Updated Standards-Version (no other changes required) -- Ricardo Mones Thu, 31 Dec 2009 18:03:45 +0100 pecomato (0.0.15-1) unstable; urgency=low * Initial packaging (Closes: #462181) -- Ricardo Mones Mon, 04 Feb 2008 22:42:21 +0100 debian/dirs0000644000000000000000000000003312217672036010054 0ustar usr/bin usr/share/man/man1