[uncommons-maths] 01/01: Initial packaging

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Thu Aug 11 09:48:16 UTC 2016


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

seamlik-guest pushed a commit to branch master
in repository uncommons-maths.

commit 80aecb3394474243d507f76447fa24f30a1b4ca9
Author: Kai-Chung Yan (殷啟聰) <seamlikok at gmail.com>
Date:   Thu Aug 11 17:14:05 2016 +0800

    Initial packaging
---
 debian/.gitignore                          | 10 ++++++++++
 debian/build.gradle                        | 19 ++++++++++++++++++
 debian/changelog                           |  5 +++++
 debian/compat                              |  1 +
 debian/control                             | 32 ++++++++++++++++++++++++++++++
 debian/copyright                           | 16 +++++++++++++++
 debian/libuncommons-maths-java-doc.javadoc |  1 +
 debian/libuncommons-maths-java.poms        |  1 +
 debian/rules                               | 18 +++++++++++++++++
 debian/settings.gradle                     |  1 +
 debian/source/format                       |  1 +
 debian/watch                               |  2 ++
 12 files changed, 107 insertions(+)

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..487713c
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,10 @@
+.debhelper/
+.gradle/
+.javahelper_clean
+.mh/
+*.doc-base.javadoc
+*.log
+*.substvars
+debhelper-build-stamp
+files
+libuncommons-maths-java*/
\ No newline at end of file
diff --git a/debian/build.gradle b/debian/build.gradle
new file mode 100644
index 0000000..0176cca
--- /dev/null
+++ b/debian/build.gradle
@@ -0,0 +1,19 @@
+apply plugin: 'java'
+apply plugin: 'maven'
+apply plugin: 'osgi'
+
+group = 'org.uncommons.maths'
+version = upstreamVersion
+sourceCompatibility = 1.6
+targetCompatibility = 1.6
+
+sourceSets.main.java { srcDir '../core/src/java/main' }
+
+javadoc.options.links 'file:///usr/share/doc/default-jdk/api'
+
+task generatePom {
+  outputs.files "${buildDir}/${project.name}.pom"
+  assemble.dependsOn generatePom
+  clean.doLast { delete "${buildDir}/${project.name}.pom" }
+  doFirst { pom { project {} }.writeTo("${buildDir}/${project.name}.pom") }
+}
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4ab53af
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+uncommons-maths (1.2.3-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #XXXXXX)
+
+ -- Kai-Chung Yan <seamlikok at gmail.com>  Mon, 30 May 2016 23:50:25 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f11c82a
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3b48b86
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: uncommons-maths
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Kai-Chung Yan <seamlikok at gmail.com>
+Build-Depends: debhelper (>= 9),
+               default-jdk-doc,
+               default-jdk-headless | default-jdk,
+               gradle-debian-helper,
+               javahelper,
+               maven-repo-helper
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/uncommons-maths.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/uncommons-maths.git
+Homepage: http://maths.uncommons.org
+
+Package: libuncommons-maths-java
+Architecture: all
+Depends: ${misc:Depends}
+Description: Maths library for Java
+ The Uncommons Maths library provides easy-to-use APIs for random number
+ generators, probability distributions, combinatorics and statistics.
+
+Package: libuncommons-maths-java-doc
+Section: doc
+Architecture: all
+Depends: default-jdk-doc, ${misc:Depends}
+Description: Maths library for Java - Documentations
+ The Uncommons Maths library provides easy-to-use APIs for random number
+ generators, probability distributions, combinatorics and statistics.
+ .
+ This package contains the API Javadoc.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d3927a2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Source: https://github.com/dwdyer/uncommons-maths
+Upstream-Name: Uncommons Maths
+Files-Excluded: lib
+
+Files: *
+Copyright: 2006-2012, Daniel W. Dyer
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016, Kai-Chung Yan <seamlikok at gmail.com>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libuncommons-maths-java-doc.javadoc b/debian/libuncommons-maths-java-doc.javadoc
new file mode 100644
index 0000000..970271a
--- /dev/null
+++ b/debian/libuncommons-maths-java-doc.javadoc
@@ -0,0 +1 @@
+debian/build/docs/javadoc   usr/share/doc/libuncommons-maths-java/api
\ No newline at end of file
diff --git a/debian/libuncommons-maths-java.poms b/debian/libuncommons-maths-java.poms
new file mode 100644
index 0000000..38c9619
--- /dev/null
+++ b/debian/libuncommons-maths-java.poms
@@ -0,0 +1 @@
+debian/build/uncommons-maths.pom --java-lib --artifact=debian/build/libs/*.jar
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..79ba2a6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+	dh $@ --buildsystem=gradle --with=maven-repo-helper,javahelper
+
+override_dh_auto_build:
+	dh_auto_build -- --settings-file debian/settings.gradle \
+	                 --project-prop upstreamVersion=$(DEB_VERSION_UPSTREAM) \
+	                 assemble javadoc
+
+override_dh_auto_clean:
+	dh_auto_clean
+	$(RM) -r debian/.gradle
+
+get-orig-source:
+	uscan --download-current-version --force-download --repack --compression xz
\ No newline at end of file
diff --git a/debian/settings.gradle b/debian/settings.gradle
new file mode 100644
index 0000000..e319426
--- /dev/null
+++ b/debian/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'uncommons-maths'
\ No newline at end of file
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..46ebe02
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
\ No newline at end of file
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9ae643a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://github.com/dwdyer/uncommons-maths/tags /dwdyer/uncommons-maths/archive/Release at ANY_VERSION@.tar.gz
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/uncommons-maths.git



More information about the pkg-java-commits mailing list