[okio] 01/03: Initial packaging
Kai-Chung Yan
seamlik-guest at moszumanska.debian.org
Fri May 27 15:55:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
seamlik-guest pushed a commit to branch master
in repository okio.
commit c23d321347132c77c18c04c427f7a7abfc85f05a
Author: Kai-Chung Yan <seamlikok at gmail.com>
Date: Thu May 19 21:05:45 2016 +0800
Initial packaging
---
debian/.gitignore | 10 ++++++++++
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 32 +++++++++++++++++++++++++++++++
debian/copyright | 24 +++++++++++++++++++++++
debian/libokio-java-doc.javadoc | 1 +
debian/libokio-java.poms | 2 ++
debian/maven.ignoreRules | 2 ++
debian/maven.properties | 2 ++
debian/maven.rules | 2 ++
debian/patches/dependencies_versions.diff | 22 +++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 13 +++++++++++++
debian/source/format | 1 +
debian/watch | 2 ++
15 files changed, 120 insertions(+)
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..832eead
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,10 @@
+.debhelper/
+.mh/
+*.doc-base.javadoc
+*.log
+*.substvars
+debhelper-build-stamp
+files
+libokio-java*/
+maven-repo/
+stamp-poms-patched
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cdc631a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+okio (1.8.0-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #XXXXXX)
+
+ -- Kai-Chung Yan <seamlikok at gmail.com> Thu, 19 May 2016 16:37:02 +0800
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..cd0d990
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: okio
+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,
+ javahelper,
+ libanimal-sniffer-java,
+ maven-debian-helper
+Standards-Version: 3.9.8
+Homepage: https://github.com/square/okio
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/okio.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/okio.git
+
+Package: libokio-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Description: Modern I/O API for Java
+ Okio is a new library that complements java.io and java.nio to make it much
+ easier to access, store, and process your data.
+
+Package: libokio-java-doc
+Section: doc
+Architecture: all
+Depends: ${maven:DocDepends}, ${misc:Depends}
+Recommends: default-jdk-doc
+Description: Modern I/O API for Java - Documentation
+ Okio is a new library that complements java.io and java.nio to make it much
+ easier to access, store, and process your data.
+ .
+ This package contains the API Javadoc.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2febbfb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,24 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Source: https://github.com/square/okio
+Upstream-Name: Okio
+
+Files: *
+Copyright: 2014, Square, Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016, Kai-Chung Yan <seamlikok at gmail.com>
+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.
+ .
+ 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, the full text of the Apache License, Version 2.0
+ can be found in the file `/usr/share/common-licenses/Apache-2.0'.
\ No newline at end of file
diff --git a/debian/libokio-java-doc.javadoc b/debian/libokio-java-doc.javadoc
new file mode 100644
index 0000000..6dc4a08
--- /dev/null
+++ b/debian/libokio-java-doc.javadoc
@@ -0,0 +1 @@
+okio/target/site/apidocs usr/share/doc/libokio-java/api
\ No newline at end of file
diff --git a/debian/libokio-java.poms b/debian/libokio-java.poms
new file mode 100644
index 0000000..84391af
--- /dev/null
+++ b/debian/libokio-java.poms
@@ -0,0 +1,2 @@
+okio/pom.xml --no-parent --artifact=okio/target/okio-*.jar --java-lib
+pom.xml --no-parent --ignore-pom
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..ef7f5f0
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,2 @@
+org.apache.maven.plugins maven-release-plugin * * * *
+org.codehaus.mojo animal-sniffer-maven-plugin * * * *
\ No newline at end of file
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..88769d3
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,2 @@
+maven.compiler.source = 1.7
+maven.compiler.target = 1.7
\ No newline at end of file
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..6456216
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,2 @@
+junit junit * s/.*/4.x/ * *
+org.codehaus.mojo animal-sniffer-annotations * s/.*/debian/ * *
\ No newline at end of file
diff --git a/debian/patches/dependencies_versions.diff b/debian/patches/dependencies_versions.diff
new file mode 100644
index 0000000..df88ccf
--- /dev/null
+++ b/debian/patches/dependencies_versions.diff
@@ -0,0 +1,22 @@
+Description:
+ okio's POM does not specify any versions for its dependencies which causes
+ errors.
+Author: Kai-Chung Yan <seamlikok at gmail.com>
+Last-Update: 2016-05-19
+--- a/okio/pom.xml
++++ b/okio/pom.xml
+@@ -16,12 +16,14 @@
+ <dependency>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-annotations</artifactId>
++ <version>debian</version>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
++ <version>4.x</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dde5b23
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+dependencies_versions.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5923d27
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --buildsystem=maven --with maven_repo_helper,javahelper
+
+override_dh_auto_build:
+ dh_auto_build -- -pl !benchmarks package javadoc:javadoc
+
+override_dh_auto_test:
+ dh_auto_test -- -pl !benchmarks verify
+
+get-orig-source:
+ uscan --download-current-version --force-download --rename
\ 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..61d52d5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://github.com/square/okio/releases /square/okio/archive/okio-parent 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/okio.git
More information about the pkg-java-commits
mailing list