--- apgdiff-2.3.orig/debian/compat +++ apgdiff-2.3/debian/compat @@ -0,0 +1 @@ +7 --- apgdiff-2.3.orig/debian/README.source +++ apgdiff-2.3/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt 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 configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- apgdiff-2.3.orig/debian/control +++ apgdiff-2.3/debian/control @@ -0,0 +1,22 @@ +Source: apgdiff +Maintainer: Christoph Berg +Standards-Version: 3.9.1 +Section: database +Priority: extra +Build-Depends-Indep: asciidoc, docbook-xml, docbook-xsl, libxml2-utils, xsltproc, + default-jdk, +# test suite: + junit4, ant-optional, libhamcrest-java +Build-Depends: ant, debhelper (>> 7), quilt +Homepage: http://apgdiff.startnet.biz/ +Vcs-Svn: svn://svn.debian.org/pkg-postgresql/trunk/apgdiff +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-postgresql/trunk/apgdiff + +Package: apgdiff +Architecture: all +Depends: default-jre-headless | java2-runtime-headless, ${misc:Depends} +Description: Another PostgreSQL Diff Tool + Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful + for schema upgrades. The tool compares two schema dump files and creates + an SQL output file that is (after some hand-made modifications) suitable for + upgrades of old schemata. --- apgdiff-2.3.orig/debian/apgdiff.install +++ apgdiff-2.3/debian/apgdiff.install @@ -0,0 +1 @@ +dist/apgdiff-*.jar usr/share/java --- apgdiff-2.3.orig/debian/rules +++ apgdiff-2.3/debian/rules @@ -0,0 +1,54 @@ +#!/usr/bin/make -f + +VERSION=$(shell dpkg-parsechangelog | perl -lne 'print $$1 if /Version: (.*)-/') + +include /usr/share/quilt/quilt.make + +debian/apgdiff.1: debian/apgdiff.1.txt + a2x -f manpage debian/apgdiff.1.txt + +build-arch: + +build build-indep: build-stamp +build-stamp: $(QUILT_STAMPFN) debian/apgdiff.1 + ant -Dnoget=1 jar + + # setting up test suite + -mkdir lib + cp /usr/share/java/junit4.jar lib/junit.jar + cp -a /usr/share/java/hamcrest-* lib + ant -Dnoget=1 compile-tests + ant -Dnoget=1 test + touch $@ + +install: build-stamp + dh_prep + install -d debian/apgdiff/usr/bin + sed -e 's/VERSION/$(VERSION)/' debian/apgdiff.sh > debian/apgdiff/usr/bin/apgdiff + dh install + +binary-arch: + +binary binary-indep: install + +clean: unpatch + ant -Dnoget=1 clean + rm -f src/main/resources/cz/startnet/utils/pgdiff/usage.xml + rm -f build-stamp debian/apgdiff.1 debian/apgdiff.1.xml + dh_clean + +%: + dh $@ + +origtgz: unpatch + test ! -e ../apgdiff_$(VERSION).orig.tar.gz + test ! -d ../orig/apgdiff-$(VERSION) + mkdir -p ../orig/apgdiff-$(VERSION) + cp -a * ../orig/apgdiff-$(VERSION) + rm -rf ../orig/apgdiff-$(VERSION)/debian + find ../orig/apgdiff-$(VERSION) -name .svn | xargs -r rm -rf + cd ../orig && tar -czf ../apgdiff_$(VERSION).orig.tar.gz apgdiff-$(VERSION) + rm -rf ../orig/apgdiff-$(VERSION) + rmdir ../orig + +.PHONY: build build-arch build-indep clean origtgz --- apgdiff-2.3.orig/debian/changelog +++ apgdiff-2.3/debian/changelog @@ -0,0 +1,70 @@ +apgdiff (2.3-1) unstable; urgency=low + + * New upstream version. + + -- Christoph Berg Sun, 31 Oct 2010 19:45:57 +0100 + +apgdiff (2.2.2-1) unstable; urgency=low + + * New upstream version. + * Using changelog included in zipfile, thanks Miroslav for providing this. + * Update manpage. + + -- Christoph Berg Mon, 11 Oct 2010 09:08:18 +0200 + +apgdiff (2.2-1) unstable; urgency=low + + * New upstream version. + * Update homepage location. + * Finally enable test suite, yay! + + -- Christoph Berg Sat, 02 Oct 2010 19:35:17 +0200 + +apgdiff (1.4-2) unstable; urgency=low + + * Change java runtime depends to default-jre-headless | + java2-runtime-headless. (Closes: #573377) + + -- Christoph Berg Thu, 11 Mar 2010 10:00:37 +0100 + +apgdiff (1.4-1) unstable; urgency=low + + * New upstream version. (Without changelog, I am afraid.) + * Test suite still not enabled as it needs network access. (The junit + version in Debian needs upgrading.) + * Optimize rules files a bit so debhelper doesn't clean twice, and quilt's + patch target doesn't prevent build-stamp from working. + + -- Christoph Berg Wed, 02 Dec 2009 11:11:33 +0100 + +apgdiff (1.3-3) unstable; urgency=low + + * Build-Depend on default-jdk. (Closes: #543055) + * Use Section: database. + * Thanks to Michael Koch for packaging tips. + + -- Christoph Berg Fri, 28 Aug 2009 21:28:17 +0200 + +apgdiff (1.3-2) unstable; urgency=low + + * Add asciidoc to Build-Depends. (Closes: #533919) + * Also fix warnings about deprecated glossary syntax in apgdiff.1.txt, and + add libxml2-utils to Build-Depends. By Andres Rodriguez. + (Closes: #534395) + + -- Christoph Berg Thu, 25 Jun 2009 11:41:38 +0200 + +apgdiff (1.3-1) unstable; urgency=low + + * New upstream version. + * Manually copy changelog entries from sourceforge.net to CHANGES. + * Use quilt. + * Add watch file. + + -- Christoph Berg Mon, 04 May 2009 11:24:40 +0200 + +apgdiff (1.2-1) unstable; urgency=low + + * Initial release. + + -- Christoph Berg Tue, 09 Sep 2008 15:42:54 +0200 --- apgdiff-2.3.orig/debian/apgdiff.sh +++ apgdiff-2.3/debian/apgdiff.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec java -jar /usr/share/java/apgdiff-VERSION.jar "$@" --- apgdiff-2.3.orig/debian/copyright +++ apgdiff-2.3/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Christoph Berg on +Fri, 05 Sep 2008 13:37:58 +0200. The .orig.tar.gz file was created by repacking +upstream's .zip file. + +Upstream website: http://apgdiff.sourceforge.net/ + +Author: Miroslav Šulc + +Copyright and License: + +Copyright (c) 2006 StartNet s.r.o. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the +Software without restriction, including without limitation the rights to use, copy, +modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- apgdiff-2.3.orig/debian/watch +++ apgdiff-2.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/apgdiff/apgdiff-(.+)-src.zip --- apgdiff-2.3.orig/debian/apgdiff.1.txt +++ apgdiff-2.3/debian/apgdiff.1.txt @@ -0,0 +1,63 @@ +APGDIFF(1) +========== +Christoph Berg + +NAME +---- +apgdiff - Another PostgreSQL Diff Tool + +SYNOPSIS +-------- +Usage: apgdiff [options] + +DESCRIPTION +----------- +Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful +for schema upgrades. The tool compares two schema dump files and creates +an SQL output file that is (after some hand-made modifications) suitable for +upgrades of old schemata. + +OPTIONS +------- + +--version:: + displays apgdiff version + +--add-defaults:: + adds DEFAULT ... in case new column has NOT NULL constraint but no default + value (the default value is dropped later) + +--add-transaction:: + adds START TRANSACTION and COMMIT TRANSACTION to the generated diff file + +--ignore-function-whitespace:: + ignores multiple spaces and new lines when comparing content of functions + - WARNING: this may cause functions to appear to be same in cases they are + not, so use this feature only if you know what you are doing + +--ignore-start-with:: + ignores START WITH modifications on SEQUENCEs (default is not to ignore + these changes) + +--in-charset-name :: + charset that should be used for reading input files (standard charset name + supported by Java, default is UTF-8) + +--out-charset-name :: + charset that should be used for writing output (standard charset name + supported by Java, default is UTF-8) + +--output-ignored-statements:: + outputs information about DDL statements that apgdiff ignores at this + moment (it will not output any SELECT, INSERT, UPDATE and/or DELETE + statements) + +--list-charsets:: + lists all supported charsets + +AUTHOR +------ + +Miroslav Šulc . This manual page was written by +Christoph Berg for the Debian system (but may be used by +others). --- apgdiff-2.3.orig/debian/apgdiff.manpages +++ apgdiff-2.3/debian/apgdiff.manpages @@ -0,0 +1 @@ +debian/apgdiff.1 --- apgdiff-2.3.orig/debian/patches/series +++ apgdiff-2.3/debian/patches/series @@ -0,0 +1 @@ +# quilt series file