[cmdreader] 02/05: Add debian directory
komal sukhani
komal-guest at moszumanska.debian.org
Mon Aug 3 15:18:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
komal-guest pushed a commit to branch master
in repository cmdreader.
commit ff39b7e4b389862304fd37c35f01500f0185bf6a
Author: Komal Sukhani <komaldsukhani at gmail.com>
Date: Mon Aug 3 19:30:57 2015 +0530
Add debian directory
---
debian/changelog | 5 +++
debian/cmdreader.debhelper.log | 20 +++++++++
debian/cmdreader.substvars | 1 +
debian/cmdreader/DEBIAN/control | 12 ++++++
debian/cmdreader/DEBIAN/md5sums | 5 +++
.../usr/share/doc/cmdreader/README.markdown.gz | Bin 0 -> 2019 bytes
.../usr/share/doc/cmdreader/changelog.Debian.gz | Bin 0 -> 161 bytes
debian/cmdreader/usr/share/doc/cmdreader/copyright | 27 ++++++++++++
.../share/java/com.zwitserloot.cmdreader-1.5.jar | Bin 0 -> 16364 bytes
.../usr/share/java/com.zwitserloot.cmdreader.jar | Bin 0 -> 16364 bytes
debian/compat | 1 +
debian/control | 17 ++++++++
debian/copyright | 27 ++++++++++++
debian/docs | 1 +
debian/files | 1 +
debian/install | 3 ++
debian/patches/add_hamcrest.patch | 0
debian/patches/add_hamcrest_to_classpath.patch | 12 ++++++
debian/patches/add_mkdir_command.patch | 12 ++++++
debian/patches/replace_ipp_with_ivy.patch | 47 +++++++++++++++++++++
debian/patches/series | 5 +++
debian/patches/set_antruntime.patch | 30 +++++++++++++
debian/patches/use_local_artifacts.patch | 29 +++++++++++++
debian/rules | 14 ++++++
debian/source/format | 1 +
debian/watch | 2 +
26 files changed, 272 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7f2d516
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+cmdreader (1.5-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #nnnn)
+
+ -- Komal Sukhani <komaldsukhani at gmail.com> Mon, 03 Aug 2015 08:24:56 +0530
diff --git a/debian/cmdreader.debhelper.log b/debian/cmdreader.debhelper.log
new file mode 100644
index 0000000..c0b2620
--- /dev/null
+++ b/debian/cmdreader.debhelper.log
@@ -0,0 +1,20 @@
+dh_auto_configure
+dh_auto_build
+dh_auto_test
+dh_prep
+dh_auto_install
+dh_install
+dh_installdocs
+dh_installchangelogs
+dh_perl
+dh_link
+dh_compress
+dh_fixperms
+dh_strip
+dh_makeshlibs
+dh_shlibdeps
+dh_installdeb
+dh_gencontrol
+dh_md5sums
+dh_builddeb
+dh_builddeb
diff --git a/debian/cmdreader.substvars b/debian/cmdreader.substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/debian/cmdreader.substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/debian/cmdreader/DEBIAN/control b/debian/cmdreader/DEBIAN/control
new file mode 100644
index 0000000..8998296
--- /dev/null
+++ b/debian/cmdreader/DEBIAN/control
@@ -0,0 +1,12 @@
+Package: cmdreader
+Version: 1.5-1
+Architecture: amd64
+Maintainer: Komal Sukhani <komaldsukhani at gmail.com>
+Installed-Size: 64
+Section: java
+Priority: optional
+Homepage: https://github.com/rzwitserloot/com.zwitserloot.cmdreader
+Description: Library that parses command line arguments
+ Parses command line arguments. The CmdReader can turn strings like
+ -fmv /foo/bar /bar/baz --color=white *.xyzzy *.cheese
+ into something that easier to work with programatically.
diff --git a/debian/cmdreader/DEBIAN/md5sums b/debian/cmdreader/DEBIAN/md5sums
new file mode 100644
index 0000000..addcbf2
--- /dev/null
+++ b/debian/cmdreader/DEBIAN/md5sums
@@ -0,0 +1,5 @@
+01eb20c1d37a274e8ac516b31d66acbd usr/share/doc/cmdreader/README.markdown.gz
+d5bc495a0169482ef771329eeb67e938 usr/share/doc/cmdreader/changelog.Debian.gz
+d82b2e25f84d96b8f27534bc819113eb usr/share/doc/cmdreader/copyright
+d01866205727d21285e7b8e3e20caca0 usr/share/java/com.zwitserloot.cmdreader-1.5.jar
+d01866205727d21285e7b8e3e20caca0 usr/share/java/com.zwitserloot.cmdreader.jar
diff --git a/debian/cmdreader/usr/share/doc/cmdreader/README.markdown.gz b/debian/cmdreader/usr/share/doc/cmdreader/README.markdown.gz
new file mode 100644
index 0000000..c6abb81
Binary files /dev/null and b/debian/cmdreader/usr/share/doc/cmdreader/README.markdown.gz differ
diff --git a/debian/cmdreader/usr/share/doc/cmdreader/changelog.Debian.gz b/debian/cmdreader/usr/share/doc/cmdreader/changelog.Debian.gz
new file mode 100644
index 0000000..5a724ac
Binary files /dev/null and b/debian/cmdreader/usr/share/doc/cmdreader/changelog.Debian.gz differ
diff --git a/debian/cmdreader/usr/share/doc/cmdreader/copyright b/debian/cmdreader/usr/share/doc/cmdreader/copyright
new file mode 100644
index 0000000..340b54e
--- /dev/null
+++ b/debian/cmdreader/usr/share/doc/cmdreader/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: com.zwitserloot.cmdreader
+Source: https://github.com/rzwitserloot/com.zwitserloot.cmdreader
+
+Files: *
+Copyright: 2010-2011 Reinier Zwitserloot
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Komal Sukhani <komaldsukhani at gmail.com>
+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/cmdreader/usr/share/java/com.zwitserloot.cmdreader-1.5.jar b/debian/cmdreader/usr/share/java/com.zwitserloot.cmdreader-1.5.jar
new file mode 100644
index 0000000..34ba87b
Binary files /dev/null and b/debian/cmdreader/usr/share/java/com.zwitserloot.cmdreader-1.5.jar differ
diff --git a/debian/cmdreader/usr/share/java/com.zwitserloot.cmdreader.jar b/debian/cmdreader/usr/share/java/com.zwitserloot.cmdreader.jar
new file mode 100644
index 0000000..34ba87b
Binary files /dev/null and b/debian/cmdreader/usr/share/java/com.zwitserloot.cmdreader.jar differ
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..bf77c58
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: cmdreader
+Section: java
+Priority: optional
+Maintainer: Komal Sukhani <komaldsukhani at gmail.com>
+Build-Depends: debhelper (>= 9), junit4 (>=4.8.12), default-jdk, ant, libhamcrest-java
+Standards-Version: 3.9.6
+Homepage: https://github.com/rzwitserloot/com.zwitserloot.cmdreader
+#Vcs-Git: git://anonscm.debian.org/collab-maint/com.zwitserloot.cmdreader.git
+#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/com.zwitserloot.cmdreader.git;a=summary
+
+Package: cmdreader
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Library that parses command line arguments
+ Parses command line arguments. The CmdReader can turn strings like
+ -fmv /foo/bar /bar/baz --color=white *.xyzzy *.cheese
+ into something that easier to work with programatically.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..340b54e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: com.zwitserloot.cmdreader
+Source: https://github.com/rzwitserloot/com.zwitserloot.cmdreader
+
+Files: *
+Copyright: 2010-2011 Reinier Zwitserloot
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Komal Sukhani <komaldsukhani at gmail.com>
+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/docs b/debian/docs
new file mode 100644
index 0000000..8d526b9
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.markdown
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..b0b18a9
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+cmdreader_1.5-1_amd64.deb java optional
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..1b2dc6b
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+dist/com.zwitserloot.cmdreader-1.5.jar /usr/share/java
+dist/com.zwitserloot.cmdreader.jar /usr/share/java
+
diff --git a/debian/patches/add_hamcrest.patch b/debian/patches/add_hamcrest.patch
new file mode 100644
index 0000000..e69de29
diff --git a/debian/patches/add_hamcrest_to_classpath.patch b/debian/patches/add_hamcrest_to_classpath.patch
new file mode 100644
index 0000000..7e1b349
--- /dev/null
+++ b/debian/patches/add_hamcrest_to_classpath.patch
@@ -0,0 +1,12 @@
+Index: cmdreader/build.xml
+===================================================================
+--- cmdreader.orig/build.xml
++++ cmdreader/build.xml
+@@ -108,6 +108,7 @@ and finally call CmdReader.of(ThatClass.
+ <javac destdir="build/prog" target="1.5" source="1.5" includeantruntime="false">
+ <src path="src" />
+ <classpath refid="build.path" />
++ <classpath location="/usr/share/java/hamcrest-all.jar"/>
+ </javac>
+ </target>
+
diff --git a/debian/patches/add_mkdir_command.patch b/debian/patches/add_mkdir_command.patch
new file mode 100644
index 0000000..040f980
--- /dev/null
+++ b/debian/patches/add_mkdir_command.patch
@@ -0,0 +1,12 @@
+Index: com.zwitserloot.cmdreader-1/build.xml
+===================================================================
+--- com.zwitserloot.cmdreader-1.orig/build.xml
++++ com.zwitserloot.cmdreader-1/build.xml
+@@ -112,6 +112,7 @@ and finally call CmdReader.of(ThatClass.
+ </target>
+
+ <target name="compileTests" depends="compile, ensureTestDeps" description="Compiles test code">
++ <mkdir dir="build/tests" />
+ <javac destdir="build/tests" source="1.5" target="1.5">
+ <src path="test" />
+ <classpath refid="test.path" />
diff --git a/debian/patches/replace_ipp_with_ivy.patch b/debian/patches/replace_ipp_with_ivy.patch
new file mode 100644
index 0000000..0073393
--- /dev/null
+++ b/debian/patches/replace_ipp_with_ivy.patch
@@ -0,0 +1,47 @@
+Index: com.zwitserloot.cmdreader-1/build.xml
+===================================================================
+--- com.zwitserloot.cmdreader-1.orig/build.xml
++++ com.zwitserloot.cmdreader-1/build.xml
+@@ -19,7 +19,7 @@
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ -->
+-<project name="com.zwitserloot.cmdreader" default="dist" xmlns:ivy="antlib:com.zwitserloot.ivyplusplus">
++<project name="com.zwitserloot.cmdreader" default="dist" xmlns:ivy="antlib:org.apache.ivy.ant">
+ <description>
+ com.zwitserloot.cmdreader is a library to read command line arguments for java.
+ To use it, first build a class containing fields, with each field representing a command line option.
+@@ -62,7 +62,7 @@ and finally call CmdReader.of(ThatClass.
+
+ <target name="ensure-ipp" depends="load-ipp, checkver-ipp" />
+
+- <target name="config-ivy" depends="ensure-ipp" unless="ivy.config">
++ <target name="config-ivy" unless="ivy.config">
+ <ivy:configure file="buildScripts/ivysettings.xml" />
+ <property name="ivy.config" value="true" />
+ </target>
+@@ -105,20 +105,20 @@ and finally call CmdReader.of(ThatClass.
+
+ <target name="compile" depends="ensureBuildDeps" description="Compiles program code">
+ <mkdir dir="build/prog" />
+- <ivy:compile destdir="build/prog" target="1.5" source="1.5">
++ <javac destdir="build/prog" target="1.5" source="1.5">
+ <src path="src" />
+ <classpath refid="build.path" />
+- </ivy:compile>
++ </javac>
+ </target>
+
+ <target name="compileTests" depends="compile, ensureTestDeps" description="Compiles test code">
+- <ivy:compile destdir="build/tests" source="1.5" target="1.5">
++ <javac destdir="build/tests" source="1.5" target="1.5">
+ <src path="test" />
+ <classpath refid="test.path" />
+ <classpath>
+ <pathelement path="build/prog" />
+ </classpath>
+- </ivy:compile>
++ </javac>
+ </target>
+
+ <target name="dist" depends="compile, -test.quiet, -test, javadoc" description="Creates the distributable">
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4757fd5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+replace_ipp_with_ivy.patch
+use_local_artifacts.patch
+add_mkdir_command.patch
+set_antruntime.patch
+add_hamcrest.patch
diff --git a/debian/patches/set_antruntime.patch b/debian/patches/set_antruntime.patch
new file mode 100644
index 0000000..4b430ce
--- /dev/null
+++ b/debian/patches/set_antruntime.patch
@@ -0,0 +1,30 @@
+Index: cmdreader/build.xml
+===================================================================
+--- cmdreader.orig/build.xml
++++ cmdreader/build.xml
+@@ -105,7 +105,7 @@ and finally call CmdReader.of(ThatClass.
+
+ <target name="compile" depends="ensureBuildDeps" description="Compiles program code">
+ <mkdir dir="build/prog" />
+- <javac destdir="build/prog" target="1.5" source="1.5">
++ <javac destdir="build/prog" target="1.5" source="1.5" includeantruntime="false">
+ <src path="src" />
+ <classpath refid="build.path" />
+ </javac>
+@@ -113,7 +113,7 @@ and finally call CmdReader.of(ThatClass.
+
+ <target name="compileTests" depends="compile, ensureTestDeps" description="Compiles test code">
+ <mkdir dir="build/tests" />
+- <javac destdir="build/tests" source="1.5" target="1.5">
++ <javac destdir="build/tests" source="1.5" target="1.5" includeantruntime="false">
+ <src path="test" />
+ <classpath refid="test.path" />
+ <classpath>
+@@ -150,6 +150,7 @@ and finally call CmdReader.of(ThatClass.
+ <classpath>
+ <pathelement path="build/prog" />
+ <pathelement path="build/tests" />
++ <pathelement location="/usr/share/java/hamcrest-core.jar" />
+ </classpath>
+ <batchtest>
+ <fileset dir="test">
diff --git a/debian/patches/use_local_artifacts.patch b/debian/patches/use_local_artifacts.patch
new file mode 100644
index 0000000..375783b
--- /dev/null
+++ b/debian/patches/use_local_artifacts.patch
@@ -0,0 +1,29 @@
+Index: com.zwitserloot.cmdreader-1/buildScripts/ivysettings.xml
+===================================================================
+--- com.zwitserloot.cmdreader-1.orig/buildScripts/ivysettings.xml
++++ com.zwitserloot.cmdreader-1/buildScripts/ivysettings.xml
+@@ -4,8 +4,10 @@
+ <filesystem name="projectLocalRepo">
+ <ivy pattern="${ivy.settings.dir}/ivy-repo/[organization]-[module]-[revision].xml" />
+ </filesystem>
+- <ibiblio name="maven-repo2" m2compatible="true" root="http://repo2.maven.org/maven2" />
+- <ibiblio name="maven-repo2" m2compatible="true" root="http://uk.maven.org/maven2" />
++ <filesystem name="localRepo">
++ <ivy pattern="${ivy.conf.dir}/ivy-[revision].xml" />
++ <artifact pattern="/usr/share/java/[artifact].[ext]" />
++ </filesystem>
+ </chain>
+ </resolvers>
+ <settings defaultResolver="projectRepos" />
+Index: com.zwitserloot.cmdreader-1/buildScripts/ivy.xml
+===================================================================
+--- com.zwitserloot.cmdreader-1.orig/buildScripts/ivy.xml
++++ com.zwitserloot.cmdreader-1/buildScripts/ivy.xml
+@@ -7,6 +7,6 @@
+ <conf name="contrib" />
+ </configurations>
+ <dependencies>
+- <dependency org="junit" name="junit" rev="4.8.2" conf="test->default" />
++ <dependency org="junit" name="junit4" rev="4.8.2" conf="test->default" />
+ </dependencies>
+ </ivy-module>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2938780
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/default.mk
+
+
+%:
+ dh $@
+
+override_dh_auto_clean:
+ dh_auto_clean
+ ant clean
+ -rm -rf ivyCache lib/build lib/test
+
+
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..2e816c0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/rzwitserloot/com.zwitserloot.cmdreader/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/cmdreader.git
More information about the pkg-java-commits
mailing list