[kitchensink-clojure] 01/01: Initial Debian packaging

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Mon Aug 7 18:31:03 UTC 2017


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

apoikos pushed a commit to branch master
in repository kitchensink-clojure.

commit c129d07a3a34d996540e561f53ec9ee132fd834a
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Sat Aug 5 12:09:03 2017 -0400

    Initial Debian packaging
---
 debian/changelog                    |  5 ++++
 debian/compat                       |  1 +
 debian/control                      | 32 +++++++++++++++++++++++++
 debian/copyright                    | 27 +++++++++++++++++++++
 debian/libkitchensink-clojure.docs  |  3 +++
 debian/libkitchensink-clojure.jlibs |  2 ++
 debian/libkitchensink-clojure.poms  | 28 ++++++++++++++++++++++
 debian/maven.rules                  |  1 +
 debian/rules                        | 47 +++++++++++++++++++++++++++++++++++++
 debian/source/format                |  1 +
 debian/watch                        |  3 +++
 11 files changed, 150 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c123bad
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+kitchensink-clojure (2.3.0-1) unstable; urgency=medium
+
+  * Initial release (Closes: #855739)
+
+ -- Apollon Oikonomopoulos <apoikos at debian.org>  Sat, 05 Aug 2017 12:02:11 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ff120ee
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: kitchensink-clojure
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Apollon Oikonomopoulos <apoikos at debian.org>
+Build-Depends: clojure (>= 1.8),
+               debhelper (>= 10),
+               default-jdk-headless,
+               javahelper (>= 0.32),
+               libtools-logging-clojure (>= 0.2.3),
+               libtools-cli-clojure (>= 0.3.4),
+               libclj-time-clojure (>= 0.11.0),
+               libraynes-fs-clojure (>= 1.4.6),
+               libslingshot-clojure (>= 0.12.2),
+               libcheshire-clojure (>= 5.6.1),
+               libini4j-java (>= 0.5.2),
+               libdynapath-clojure (>= 0.2.5),
+               libclj-digest-clojure (>= 1.4.3),
+               markdown,
+               maven-repo-helper (>= 1.5~)
+Standards-Version: 4.0.0
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/kitchensink-clojure.git
+Vcs-Browser: https://anonscm.debian.org/git/pkg-java/kitchensink-clojure.git
+Homepage: https://github.com/puppetlabs/clj-kitchensink
+
+Package: libkitchensink-clojure
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: utility library for Puppet Labs clojure projects
+ kitchensink is a library of utility functions that are common to several
+ Puppet Labs Clojure projects.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1bfacfa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: kitchensink
+Source: https://github.com/puppetlabs/clj-kitchensink
+
+Files: *
+Copyright: © 2013 Puppet Labs
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2017 Apollon Oikonomopoulos <apoikos 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, the complete text of the Apache License 2.0 can
+ be found in "/usr/share/common-licenses/Apache-2.0"
diff --git a/debian/libkitchensink-clojure.docs b/debian/libkitchensink-clojure.docs
new file mode 100644
index 0000000..2e8ae4d
--- /dev/null
+++ b/debian/libkitchensink-clojure.docs
@@ -0,0 +1,3 @@
+README.md
+CONTRIBUTING.md
+doc/*
diff --git a/debian/libkitchensink-clojure.jlibs b/debian/libkitchensink-clojure.jlibs
new file mode 100644
index 0000000..781210e
--- /dev/null
+++ b/debian/libkitchensink-clojure.jlibs
@@ -0,0 +1,2 @@
+kitchensink.jar
+kitchensink-test.jar
diff --git a/debian/libkitchensink-clojure.poms b/debian/libkitchensink-clojure.poms
new file mode 100644
index 0000000..8b304b5
--- /dev/null
+++ b/debian/libkitchensink-clojure.poms
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+debian/pom.xml --usj-name=kitchensink
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..afb03ab
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+* clojure * s/([0-9]+)\.([0-9]+).*/$1.$2.x/ * *
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3711198
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+
+include /usr/share/javahelper/java-vars.mk
+include /usr/share/dpkg/pkg-info.mk
+
+export CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/tools.cli.jar:/usr/share/java/tools.logging.jar:/usr/share/java/clj-time.jar:/usr/share/java/raynes-fs.jar:/usr/share/java/slingshot.jar:/usr/share/java/cheshire.jar:/usr/share/java/ini4j.jar:/usr/share/java/dynapath.jar:/usr/share/java/clj-digest.jar
+
+MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
+
+PRODUCED_JAR=kitchensink.jar
+TEST_JAR=kitchensink-test.jar
+
+%:
+	dh $@ --with javahelper --with maven_repo_helper
+
+override_jh_build: $(MDWN_DOCS)
+	jar cf $(PRODUCED_JAR) -C src .
+	jar cf $(TEST_JAR) -C test .
+	mkdir -p $(CURDIR)/doc/html && mv $^ $(CURDIR)/doc/html
+
+override_jh_clean:
+	jh_clean
+	rm -f $(CURDIR)/$(PRODUCED_JAR)
+	rm -rf $(CURDIR)/doc/html
+
+override_jh_classpath:
+	jh_classpath $(PRODUCED_JAR)
+
+override_dh_auto_test:
+	dh_auto_test
+	(cd test && find . -name "*_test.clj" | \
+		xargs --verbose clojure -cp $(CURDIR)/$(PRODUCED_JAR):$(CLASSPATH))
+
+get-orig-source:
+	uscan --download-version $(DEB_VERSION_UPSTREAM) --force-download --rename
+
+%.html:%.md
+	@echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' \
+		'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' > $@
+	@echo "<html>" >> $@
+	@echo "<head>" >> $@
+	@echo "<title>$(shell head -n 1 $< | sed 's/^#*\s*//')</title>" >> $@
+	@echo "</head>" >> $@
+	@echo "<body>" >> $@
+	markdown $< >> $@
+	@echo "</body>" >> $@
+	@echo "</html>" >> $@
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..842679d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s!.*/archive/(.*)!kitchensink-$1! \
+ https://github.com/puppetlabs/clj-kitchensink/releases	.*/archive/([\d.]+)\.tar\.gz

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



More information about the pkg-java-commits mailing list