[bidi-clojure] 01/01: Initial Debian packaging
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Sat Aug 5 14:02:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository bidi-clojure.
commit 3228ff63028a5d92c8e9837a73425216a9067b5e
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date: Sat Aug 5 09:21:25 2017 -0400
Initial Debian packaging
---
debian/.gitignore | 1 +
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 31 ++++++++
debian/copyright | 30 +++++++
debian/libbidi-clojure.docs | 1 +
debian/libbidi-clojure.jlibs | 1 +
debian/libbidi-clojure.poms | 28 +++++++
debian/maven.rules | 1 +
debian/pom.xml | 183 +++++++++++++++++++++++++++++++++++++++++++
debian/rules | 46 +++++++++++
debian/source/format | 1 +
debian/watch | 3 +
13 files changed, 332 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..7f3ca42
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+bidi-clojure (2.1.2-1) unstable; urgency=medium
+
+ * Initial release (Closes: #855594)
+
+ -- Apollon Oikonomopoulos <apoikos at debian.org> Sat, 05 Aug 2017 09:18:08 -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..f93b678
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: bidi-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),
+ libprismatic-schema-clojure (>= 1.1.3),
+ libring-core-clojure (>= 1.5.0),
+ libring-mock-clojure (>= 0.3.0),
+ markdown,
+ maven-repo-helper (>= 1.5~)
+Standards-Version: 4.0.0
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/bidi-clojure.git
+Vcs-Browser: https://anonscm.debian.org/git/pkg-java/bidi-clojure.git
+Homepage: https://github.com/juxt/bidi
+
+Package: libbidi-clojure
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: bidirectional URI routing for Clojure
+ Bi-directional URI dispatch. Like compojure, but when you want to go both
+ ways. If you are serving REST resources, you should be
+ providing links to other resources, and without full support for forming URIs
+ from handlers your code will become coupled with your routing. In short,
+ hard-coded URIs will eventually break.
+ .
+ bidi provides a way to construct URIs from handlers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fbb3fd4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: bidi
+Source: https://github.com/juxt/bidi
+
+Files: *
+Copyright: © 2014 JUXT LTD.
+License: MIT/X11
+
+Files: debian/*
+Copyright: 2017 Apollon Oikonomopoulos <apoikos at debian.org>
+License: MIT/X11
+
+License: MIT/X11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/libbidi-clojure.docs b/debian/libbidi-clojure.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/libbidi-clojure.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libbidi-clojure.jlibs b/debian/libbidi-clojure.jlibs
new file mode 100644
index 0000000..aaff735
--- /dev/null
+++ b/debian/libbidi-clojure.jlibs
@@ -0,0 +1 @@
+bidi.jar
diff --git a/debian/libbidi-clojure.poms b/debian/libbidi-clojure.poms
new file mode 100644
index 0000000..b040c52
--- /dev/null
+++ b/debian/libbidi-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=bidi
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/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..040eab5
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,183 @@
+<?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>bidi</groupId>
+ <artifactId>bidi</artifactId>
+ <packaging>jar</packaging>
+ <version>2.1.2</version>
+ <name>bidi</name>
+ <description>Bidirectional URI routing</description>
+ <url>https://github.com/juxt/bidi</url>
+ <licenses>
+ <license>
+ <name>The MIT License</name>
+ <url>http://opensource.org/licenses/MIT</url>
+ </license>
+ </licenses>
+ <scm>
+ <tag>888da83f5f456c26969f7ac8ed96730f613b199f
+</tag>
+ <url/>
+ </scm>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <testSourceDirectory>test</testSourceDirectory>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>test-resources</directory>
+ </testResource>
+ <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>prismatic</groupId>
+ <artifactId>schema</artifactId>
+ <version>1.1.3</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>ring</groupId>
+ <artifactId>ring-core</artifactId>
+ <version>1.5.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.8.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojurescript</artifactId>
+ <version>1.9.293</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ <version>1.0.0-beta4</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>ring</groupId>
+ <artifactId>ring-mock</artifactId>
+ <version>0.3.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>compojure</groupId>
+ <artifactId>compojure</artifactId>
+ <version>1.6.0-beta2</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>criterium</groupId>
+ <artifactId>criterium</artifactId>
+ <version>0.4.3</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mozilla</groupId>
+ <artifactId>rhino</artifactId>
+ <version>1.7.7.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.clojure</groupId>
+ <artifactId>tools.reader</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>test</scope>
+ </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..d09054f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+
+include /usr/share/javahelper/java-vars.mk
+include /usr/share/dpkg/pkg-info.mk
+
+MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
+
+export CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/prismatic-schema.jar:/usr/share/java/ring-core.jar
+TEST_CLASSPATH=/usr/share/java/ring-mock.jar
+
+PRODUCED_JAR=bidi.jar
+
+%:
+ dh $@ --with javahelper --with maven_repo_helper
+
+override_jh_build: $(MDWN_DOCS)
+ jar cf $(PRODUCED_JAR) -C src .
+ 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 '*.clj' -or -name '*.cljc' | \
+ xargs --verbose clojure -cp $(CURDIR)/$(PRODUCED_JAR):$(CLASSPATH):$(TEST_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..14ecc99
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s!.*/archive/(.*)!bidi-$1! \
+ https://github.com/juxt/bidi/tags .*/([\d.]+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bidi-clojure.git
More information about the pkg-java-commits
mailing list