[med-svn] [libcofoja-java] 02/02: Add initial untested packaging

Andreas Tille tille at debian.org
Sat Mar 8 22:27:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository libcofoja-java.

commit 334e22b634b4de57aaf826cc906594cbf7dfdb1f
Author: Andreas Tille <tille at debian.org>
Date:   Sat Mar 8 23:26:18 2014 +0100

    Add initial untested packaging
---
 debian/changelog                  |  5 ++++
 debian/compat                     |  1 +
 debian/control                    | 54 +++++++++++++++++++++++++++++++++++++++
 debian/copyright                  | 44 +++++++++++++++++++++++++++++++
 debian/get-orig-source            | 28 ++++++++++++++++++++
 debian/libcofoja-java-doc.javadoc |  1 +
 debian/libcofoja-java.jlibs       |  1 +
 debian/rules                      | 20 +++++++++++++++
 debian/source/format              |  1 +
 debian/watch                      |  3 +++
 10 files changed, 158 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2262e2a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libcofoja-java (1.1-r150-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #???)
+
+ -- Andreas Tille <tille at debian.org>  Sat, 08 Mar 2014 23:17:39 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4ba3f63
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: libcofoja-java
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: java
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               javahelper,
+               default-jdk,
+               ant
+Standards-Version: 3.9.5
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-med/libcofoja-java.git
+Vcs-Git: git://anonscm.debian.org/debian-med/libcofoja-java.git
+Homepage: https://code.google.com/p/cofoja/
+
+Package: libcofoja-java
+Architecture: all
+Depends: ${misc:Depends},
+         ${java:Depends}
+Recommends: ${java:Recommends}
+Description: Java API providing annotating code with contracts
+ Contracts for Java enables annotating code with contracts in the form of
+ preconditions, postconditions and invariants.
+ .
+ These contract annotations are
+  * easy to write and read,
+  * and checked at runtime. 
+ Annotating code with contracts helps you:
+  * design,
+  * document,
+  * test, and
+  * debug
+ programs. 
+
+Package: libcofoja-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${java:Depends}
+Recommends: ${java:Recommends}
+Description: API documentation for libcofoja-java
+ Contracts for Java enables annotating code with contracts in the form of
+ preconditions, postconditions and invariants.
+ .
+ These contract annotations are
+  * easy to write and read,
+  * and checked at runtime. 
+ Annotating code with contracts helps you:
+  * design,
+  * document,
+  * test, and
+  * debug
+ programs. 
+ .
+ This package contains the javadoc documentation files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e28a427
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,44 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Sebastiano Vigna <vigna at acm.org>
+Source: http://fastutil.di.unimi.it/
+
+Files: *
+Copyright: © 2003-2013 Sebastiano Vigna <vigna at acm.org>, Paolo Boldi
+License: Apache-2.0
+
+Files: src/it/unimi/dsi/fastutil/io/*.java test/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStreamTest.java
+Copyright: © 2003-2011 Sebastiano Vigna <vigna at acm.org>, Paolo Boldi
+License: LGPLv2.1+
+ 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.
+ .
+ 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 you can find a copy of GNU Lesser General Public License
+ at /usr/share/common-licenses/LGPL-2.1
+
+Files: debian/*
+Copyright: © 2013 Andreas Tille <tille at debian.org>
+License: Apache-2.0 
+
+License: Apache-2.0 
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+      http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. 
+ .
+ On Debian systems you can find a copy of Apache 2.0 at
+ /usr/share/common-licenses/Apache-2.0
+
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..87a426c
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,28 @@
+#!/bin/sh
+# get source for libcofoja-java from SVN because there is no source tarball distribution
+
+set -e
+set -x
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+UPSTREAMNAME=cofoja
+COMPRESSION=xz
+
+if ! echo $@ | grep -q upstream-version ; then
+    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+else
+    VERSION=`echo $@ | sed "s?^.*--upstream-version \([-0-9.r]\+\) .*${UPSTREAMNAME}.*?\1?"`
+    if echo "$VERSION" | grep -q "upstream-version" ; then
+        echo "Unable to parse version number"
+        exit
+    fi
+fi
+
+TARDIR=${NAME}-${VERSION}
+
+mkdir -p ../tarballs
+cd ../tarballs
+# svn export conserves time stamps of the files, checkout does not
+LC_ALL=C svn export http://${UPSTREAMNAME}.googlecode.com/svn/trunk ${TARDIR}
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX --exclude-vcs -caf "$NAME"_"$VERSION".orig.tar.${COMPRESSION} "${TARDIR}"
+rm -rf "${TARDIR}"
diff --git a/debian/libcofoja-java-doc.javadoc b/debian/libcofoja-java-doc.javadoc
new file mode 100644
index 0000000..b9d9eaa
--- /dev/null
+++ b/debian/libcofoja-java-doc.javadoc
@@ -0,0 +1 @@
+docs /usr/share/doc/libcofoja-java
diff --git a/debian/libcofoja-java.jlibs b/debian/libcofoja-java.jlibs
new file mode 100644
index 0000000..b24ad14
--- /dev/null
+++ b/debian/libcofoja-java.jlibs
@@ -0,0 +1 @@
+cofoja*.jar
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..afc58c2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+%:
+	dh $@ --with javahelper
+
+override_dh_auto_build:
+	make sources
+	# make sources TEST=1		# will compile behavioral and speed tests into the classes
+	# make sources ASSERTS=1	# will compile assertions into the classes
+	ant jar
+	ant javadoc
+
+override_dh_builddeb:
+	dh_builddeb -- -Z xz
+
+get-orig-source:
+	mkdir -p ../tarballs
+	uscan --verbose --force-download --destdir ../tarballs
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..74b8776
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+https://code.google.com/p/cofoja/downloads/list .*/files/cofoja-([\d.]+-r[\d]+)\.jar \
+   debian debian/get-orig-source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libcofoja-java.git



More information about the debian-med-commit mailing list