Commit 66637be3 authored by Andreas Tille's avatar Andreas Tille
Browse files

Initial packaging

parent bf861a7e
Loading
Loading
Loading
Loading

debian/changelog

0 → 100644
+5 −0
Original line number Diff line number Diff line
libjscience-java (4.3.1-1) UNRELEASED; urgency=low

  * Initial release (Closes: #xxxxxx).

 -- Andreas Tille <tille@debian.org>  Sat, 19 May 2018 00:11:29 +0200

debian/compat

0 → 100644
+1 −0
Original line number Diff line number Diff line
11

debian/control

0 → 100644
+23 −0
Original line number Diff line number Diff line
Source: libapfloat-java
Maintainer: Debian Java Maintainers <pkg-java-maintainers@alioth-lists.debian.net>
Uploaders: Andreas Tille <tille@debian.org>
Section: java
Priority: optional
Build-Depends: debhelper (>= 11~),
               default-jdk,
               javahelper
Standards-Version: 4.1.4
Vcs-Browser: https://salsa.debian.org/java-team/libjscience-java
Vcs-Git: https://salsa.debian.org/java-team/libjscience-java.git
Homepage: http://jscience.org/

Package: libjscience-java
Architecture: all
Depends: ${java:Depends},
         ${misc:Depends}
Description: Java tools and libraries for the advancement of sciences
 Comprehensive JavaTM library for the scientific community. It creates
 synergy between all sciences (e.g. math, physics, sociology, biology,
 astronomy, economics, etc.) by integrating them into a single
 architecture. It provides on-line services (webstart) for scientific
 calculations and visualizations.

debian/copyright

0 → 100644
+13 −0
Original line number Diff line number Diff line
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: JScience
Upstream-Contact: jean-marie@dautelle.com
Source: http://www.java2s.com/Code/Jar/j/Downloadjscience431sourcesjar.htm

Files: *
Copyright: 2006-2014
License: 

Files: debian/*
Copyright: 2018 Andreas Tille <tille@debian.org>
License: 

debian/get-orig-source

0 → 100755
+56 −0
Original line number Diff line number Diff line
#!/bin/sh
# if you need to repack for whatever reason you can
# use this script via uscan or directly
#
# FIXME: currently the code is not conform to Debian Policy
#        http://www.debian.org/doc/debian-policy/ch-source.html
#        "get-orig-source (optional)"
#        This target may be invoked in any directory, ...
# --> currently it is assumed the script is called in the
#     source directory featuring the debian/ dir

# Excluding files and repacking archives
# --------------------------------------
# See also mk-origtargz(1) and the --repack option to uscan(1), which
# honor the Files-Excluded list in debian/copyright.
# That may be all you need, especially since the repack option can be set
# in debian/watch.

# For an example how to fetch source from sourceforge SVN see
#   https://anonscm.debian.org/git/debian-med/kmer-tools.git

COMPRESS=xz

set -x
set -e
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`

if ! echo $@ | grep -q upstream-version ; then
    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
    uscan --force-download
else
    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\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
# need to clean up the tarballs dir first because upstream tarball might
# contain a directory with unpredictable name
rm -rf *
tar -xaf ../${NAME}_${VERSION}.orig.tar.gz
rm ../${NAME}_${VERSION}.orig.tar.gz

mkdir ${TARDIR}
cd ${TARDIR}
unzip -q ../*.jar
rm ../*.jar
rm -rf META-INF
cd ..

GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
rm -rf ${TARDIR}
Loading