[typesafe-config-clojure] 01/01: Initial Debian packaging

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Mon Aug 7 18:39:51 UTC 2017


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

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

commit 16d215d495243ea243c43df85465c7ac69bf6ea0
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Sat Aug 5 12:53:25 2017 -0400

    Initial Debian packaging
---
 debian/.gitignore                       |  1 +
 debian/changelog                        |  5 +++
 debian/compat                           |  1 +
 debian/control                          | 26 +++++++++++
 debian/copyright                        | 40 +++++++++++++++++
 debian/footer.html                      |  2 +
 debian/header.html                      |  6 +++
 debian/libtypesafe-config-clojure.docs  |  1 +
 debian/libtypesafe-config-clojure.jlibs |  1 +
 debian/libtypesafe-config-clojure.poms  |  1 +
 debian/pom.xml                          | 79 +++++++++++++++++++++++++++++++++
 debian/rules                            | 34 ++++++++++++++
 debian/source/format                    |  1 +
 debian/watch                            |  3 ++
 14 files changed, 201 insertions(+)

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..87ed251
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1 @@
+!pom.xml
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0262cda
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+typesafe-config-clojure (0.1.5-1) unstable; urgency=medium
+
+  * Initial release (Closes: #855746)
+
+ -- Apollon Oikonomopoulos <apoikos at debian.org>  Sat, 05 Aug 2017 12:49:23 -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..0725907
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: typesafe-config-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:
+ debhelper (>= 10),
+ javahelper (>= 0.32),
+ maven-repo-helper (>= 1.7),
+ clojure (>= 1.8),
+ libtypesafe-config-java (>= 1.2.0),
+ libtext-markdown-perl | markdown,
+ default-jdk-headless
+Standards-Version: 4.0.0
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/typesafe-config-clojure.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/typesafe-config-clojure.git
+Homepage: https://github.com/puppetlabs/clj-typesafe-config
+
+Package: libtypesafe-config-clojure
+Architecture: all
+Depends:
+ ${java:Depends},
+ ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: Java wrapper around libtypesafe-config-java
+ A thin Clojure wrapper around Java's typesafe-config library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d7fb27e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,40 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: clj-typesafe-config
+Source: https://github.com/puppetlabs/clj-typesafe-config
+
+Files: *
+Copyright: 2014-2016 Puppet Labs
+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"
+
+Files: debian/*
+Copyright: 2017 Apollon Oikonomopoulos <apoikos at debian.org>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package 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 General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/footer.html b/debian/footer.html
new file mode 100644
index 0000000..308b1d0
--- /dev/null
+++ b/debian/footer.html
@@ -0,0 +1,2 @@
+</body>
+</html>
diff --git a/debian/header.html b/debian/header.html
new file mode 100644
index 0000000..c95191c
--- /dev/null
+++ b/debian/header.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<head>
+<title>@TITLE@</title>
+</head>
+<body>
diff --git a/debian/libtypesafe-config-clojure.docs b/debian/libtypesafe-config-clojure.docs
new file mode 100644
index 0000000..dd44972
--- /dev/null
+++ b/debian/libtypesafe-config-clojure.docs
@@ -0,0 +1 @@
+*.md
diff --git a/debian/libtypesafe-config-clojure.jlibs b/debian/libtypesafe-config-clojure.jlibs
new file mode 100644
index 0000000..e538cb4
--- /dev/null
+++ b/debian/libtypesafe-config-clojure.jlibs
@@ -0,0 +1 @@
+clj-typesafe-config.jar
diff --git a/debian/libtypesafe-config-clojure.poms b/debian/libtypesafe-config-clojure.poms
new file mode 100644
index 0000000..1a53057
--- /dev/null
+++ b/debian/libtypesafe-config-clojure.poms
@@ -0,0 +1 @@
+debian/pom.xml --usj-name=clj-typesafe-config
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..89e3b93
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>puppetlabs</groupId>
+  <artifactId>typesafe-config</artifactId>
+  <packaging>jar</packaging>
+  <version>0.1.5</version>
+  <name>typesafe-config</name>
+  <description>Thin Clojure wrapper around Typesafe Config library</description>
+  <licenses>
+    <license>
+      <name>Apache License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
+    </license>
+  </licenses>
+  <scm>
+    <tag>bac75e9b5cdd865c048ca3dff2a6d3152b944c54
+</tag>
+    <url/>
+  </scm>
+  <build>
+    <sourceDirectory>src</sourceDirectory>
+    <testSourceDirectory>test</testSourceDirectory>
+    <resources>
+      <resource>
+        <directory>resources</directory>
+      </resource>
+    </resources>
+    <testResources>
+      <testResource>
+        <directory>resources</directory>
+      </testResource>
+    </testResources>
+    <directory>target</directory>
+    <outputDirectory>target/classes</outputDirectory>
+    <plugins/>
+  </build>
+  <repositories>
+    <repository>
+      <id>central</id>
+      <url>https://repo1.maven.org/maven2/</url>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </repository>
+    <repository>
+      <id>clojars</id>
+      <url>https://clojars.org/repo/</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </repository>
+  </repositories>
+  <dependencyManagement>
+    <dependencies/>
+  </dependencyManagement>
+  <dependencies>
+    <dependency>
+      <groupId>org.clojure</groupId>
+      <artifactId>clojure</artifactId>
+      <version>1.5.1</version>
+    </dependency>
+    <dependency>
+      <groupId>com.typesafe</groupId>
+      <artifactId>config</artifactId>
+      <version>1.2.0</version>
+    </dependency>
+  </dependencies>
+</project>
+
+<!-- This file was autogenerated by Leiningen.
+  Please do not edit it directly; instead edit project.clj and regenerate it.
+  It should not be considered canonical data. For more information see
+  https://github.com/technomancy/leiningen -->
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6561757
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+
+include /usr/share/javahelper/java-vars.mk
+
+MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
+
+PRODUCED_JAR=clj-typesafe-config.jar
+export CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/typesafe-config.jar
+
+%:
+	dh $@ --with javahelper --with jh_maven_repo_helper
+
+override_jh_build: $(MDWN_DOCS)
+	jar cf $(PRODUCED_JAR) -C src .
+	mkdir -p $(CURDIR)/doc/html && mv $(CURDIR)/*.html $(CURDIR)/doc/html
+
+override_jh_classpath:
+	jh_classpath $(PRODUCED_JAR)
+
+override_jh_clean:
+	jh_clean
+	rm -f $(CURDIR)/$(PRODUCED_JAR)
+	rm -rf $(CURDIR)/doc/html
+
+%.html:%.md
+	cat debian/header.html > $@
+	sed -i'' -e 's#@TITLE@#$(shell head -n 1 $< | sed 's/^#*\s*//')#g' $@
+	markdown $< >> $@
+	cat debian/footer.html >> $@
+
+override_dh_auto_test:
+	dh_auto_test
+	(cd test && find . -name "*.clj" | \
+		xargs --verbose clojure -cp $(CURDIR)/$(PRODUCED_JAR):$(CLASSPATH))
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..55ff71d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s!.*/archive/(.*)!clj-typesafe-config-$1! \
+ https://github.com/puppetlabs/clj-typesafe-config/releases	.*/archive/([\d.]+)\.tar\.gz

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



More information about the pkg-java-commits mailing list