[openviewerfx] 01/01: Imported Debian patch 6.6b16~201510+ds-1

Jerome Benoit calculus-guest at moszumanska.debian.org
Sun Oct 18 21:43:46 UTC 2015


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

calculus-guest pushed a commit to branch master
in repository openviewerfx.

commit c688bc00d923601e2d2546e14dfdc4bfe72c1a30
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Sun Oct 18 23:32:51 2015 +0200

    Imported Debian patch 6.6b16~201510+ds-1
---
 debian/changelog                      |  5 ++
 debian/compat                         |  1 +
 debian/control                        | 21 +++++++++
 debian/copyright                      | 81 ++++++++++++++++++++++++++++++++
 debian/javabuild                      |  1 +
 debian/openviewerfx.jlibs             |  1 +
 debian/openviewerfx.lintian-overrides |  5 ++
 debian/openviewerfx.poms              |  1 +
 debian/poms/openviewerfx.pom          |  8 ++++
 debian/repack                         | 87 +++++++++++++++++++++++++++++++++++
 debian/rules                          | 27 +++++++++++
 debian/source/format                  |  1 +
 debian/source/lintian-overrides       |  1 +
 debian/source/options                 |  2 +
 debian/watch                          |  5 ++
 15 files changed, 247 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4771ae2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+openviewerfx (6.6b16~201510+ds-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #802176)
+
+ -- Jerome Benoit <calculus at rezozer.net>  Sun, 18 Oct 2015 21:31:46 +0000
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..f516406
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: openviewerfx
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends: debhelper (>= 9), javahelper, maven-repo-helper
+Build-Depends-Indep: openjdk-8-jdk, libopenjfx-java, libbcmail-java, libbcprov-java, librhino-java
+Standards-Version: 3.9.6
+Homepage: https://www.idrsolutions.com/openviewerfx/
+Vcs-Git: git://anonscm.debian.org/pkg-java/openviewerfx.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/openviewerfx.git
+
+Package: openviewerfx
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}
+Description: Open Source JavaFX PDF Viewer
+ Whether you are just looking for a PDF Viewer/Reader for your RaspberryPi
+ or a freely usable component to embed in your Java applications, OpenViewerFX
+ an innovative JavaFX PDF Viewer/Reader combines the power of JavaFX with
+ IDRsolutions industry leading PDF library to deliver a complete
+ cross-platform PDF Viewer/Reader under the friendly LGPL Open Source license.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8f10938
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,81 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: OpenViewerFX
+Upstream-Contact: Mark Stephens <http://sourceforge.net/u/markee174/profile/>
+Source: http://sourceforge.net/projects/openviewerfx/
+Comment:
+ The upstream source Java ARchive is repacked to provide a source tarball
+ more suitable for packaging --- no material was discarded.
+
+Files: src/*
+Copyright:
+ 1997-2015 IDRsolutions <https://www.idrsolutions.com/>
+License: LGPL-2
+
+Files: src/org/jpedal/jbig2/*
+Copyright:
+ 2008 IDRsolutions
+ 1997-2008 IDRsolutions and Contributors
+License: BSD-3-clause
+
+Files: debian/*
+Copyright:
+ 2015 Jerome Benoit <calculus at rezozer.net>
+License: GPL-3+
+
+License: LGPL-2
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation version 2 of the License.
+ .
+ This program 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 Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: GPL-3+
+ 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 3 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 package. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/javabuild b/debian/javabuild
new file mode 100644
index 0000000..778a668
--- /dev/null
+++ b/debian/javabuild
@@ -0,0 +1 @@
+openviewerfx.jar src
diff --git a/debian/openviewerfx.jlibs b/debian/openviewerfx.jlibs
new file mode 100644
index 0000000..e9bcd51
--- /dev/null
+++ b/debian/openviewerfx.jlibs
@@ -0,0 +1 @@
+openviewerfx.jar
diff --git a/debian/openviewerfx.lintian-overrides b/debian/openviewerfx.lintian-overrides
new file mode 100644
index 0000000..ebdf7f6
--- /dev/null
+++ b/debian/openviewerfx.lintian-overrides
@@ -0,0 +1,5 @@
+# the upstream source ball contains no ChangeLog file
+openviewerfx: no-upstream-changelog
+
+# this is a Java 8 library
+openviewerfx: incompatible-java-bytecode-format
diff --git a/debian/openviewerfx.poms b/debian/openviewerfx.poms
new file mode 100644
index 0000000..bd38cee
--- /dev/null
+++ b/debian/openviewerfx.poms
@@ -0,0 +1 @@
+debian/poms/openviewerfx.pom --no-parent --usj-name=openviewerfx
diff --git a/debian/poms/openviewerfx.pom b/debian/poms/openviewerfx.pom
new file mode 100644
index 0000000..6aa84e6
--- /dev/null
+++ b/debian/poms/openviewerfx.pom
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jpedal</groupId>
+  <artifactId>OpenViewerFX</artifactId>
+  <version>6.6.16</version>
+</project>
diff --git a/debian/repack b/debian/repack
new file mode 100755
index 0000000..cda2c84
--- /dev/null
+++ b/debian/repack
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+PACKAGE_NAME=openviewerfx
+
+set -e
+set -u
+
+usage() {
+	echo "Usage: repack --upstream-version <ver> <downloaded file>"
+	exit 1
+	}
+
+if [ "$#" != "3" ]; then
+	usage
+fi
+if [ "$1" != "--upstream-version" ]; then
+	usage
+fi
+if [ ! -f "$3" ]; then
+	if [ -n "$3" ]; then
+		echo "$3 doesn't exist"
+	fi
+	usage
+fi
+UPSTREAM_VERSION="$2"
+UPSTREAM_JAR=$(realpath "$3")
+
+REPACK_TMPDIR=`mktemp -d ./repackXXXXXX`
+REPACK_TMPDIR=$(realpath "$REPACK_TMPDIR")
+trap "/bin/rm -rf \"$REPACK_TMPDIR\"" QUIT INT EXIT
+
+message() {
+	echo
+	echo "-- -- $1"
+	echo
+	}
+
+message "Repackaging ${UPSTREAM_JAR##*/}"
+
+UPSTREAM_ROOTFOLDER="${REPACK_TMPDIR}/unpacked"
+mkdir -p "${UPSTREAM_ROOTFOLDER}/src"
+( cd "${UPSTREAM_ROOTFOLDER}/src" ; jar xf "${UPSTREAM_JAR}" ; )
+
+DEBIAN_SUFFIX="+ds"
+DEBIAN_UVERSION=${UPSTREAM_VERSION}${DEBIAN_SUFFIX}
+if [ -f ${UPSTREAM_ROOTFOLDER}/src/version.num ]; then
+	UPSTREAM_VERSIONNUMBER=$(cat ${UPSTREAM_ROOTFOLDER}/src/version.num)
+	DEBIAN_UVERSION=${UPSTREAM_VERSIONNUMBER}~${DEBIAN_UVERSION}
+fi
+DEBIAN_ROOTFOLDERNAME="${PACKAGE_NAME}-${DEBIAN_UVERSION}.orig"
+DEBIAN_TARBALLXZ="$(dirname $UPSTREAM_JAR)/${PACKAGE_NAME}_${DEBIAN_UVERSION}.orig.tar.xz"
+
+DEBIAN_ROOTFOLDER="${REPACK_TMPDIR}/${DEBIAN_ROOTFOLDERNAME}"
+## repack
+####set -f
+REPACK_WORKING_FOLDER=$(pwd)
+cd "${UPSTREAM_ROOTFOLDER}"
+
+####. "${REPACK_WORKING_FOLDER}/debian/repack.local"
+#:
+
+cd ${REPACK_WORKING_FOLDER}
+set +f
+## end
+mv "${UPSTREAM_ROOTFOLDER}" "${DEBIAN_ROOTFOLDER}"
+
+REPACK_TARBALL="${REPACK_TMPDIR}/repacked.tar"
+REPACK_TARBALLXZ="${REPACK_TARBALL}.xz"
+( cd "${REPACK_TMPDIR}" && \
+	find -L "${DEBIAN_ROOTFOLDERNAME}" -xdev -type f -print | sort | \
+	tar -T-  --owner=root --group=root --mode=a+rX --create --file "${REPACK_TARBALL}" \
+	)
+xz -9e < "${REPACK_TARBALL}" > "${REPACK_TARBALLXZ}"
+mv "${REPACK_TARBALLXZ}" "${DEBIAN_TARBALLXZ}"
+
+message "Testing ${DEBIAN_TARBALLXZ}"
+
+xz --verbose --test "${DEBIAN_TARBALLXZ}"
+
+message "Printing information about ${DEBIAN_TARBALLXZ}"
+
+xz --verbose --list "${DEBIAN_TARBALLXZ}"
+
+message "Quitting"
+
+##
+## eos
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..58b9319
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+export JAVA_HOME ?= /usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH)
+export CLASSPATH = /usr/share/java/openjfx/jre/lib/ext/jfxrt.jar:/usr/share/java/js.jar:/usr/share/java/bcprov.jar:/usr/share/java/bcmail.jar
+
+export JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF8
+
+default:
+	@uscan --no-conf --dehs --report || true
+
+%:
+	dh $@ --with javahelper  --with jh_maven_repo_helper
+
+override_jh_build-indep:
+	jh_build --javacopts="-source 1.8 -target 1.8" --javadoc-opts="-source 1.8"
+
+override_jh_installlibs-indep:
+	jh_installlibs -i -v --version-strip=~[0-9]*+ds
+
+## at the time of packaging the source ball is not yet available at SF,
+## but only at <https://www.idrsolutions.com/> and witout version substring;
+## the main stream maintainer has been contacted in view to fix this issue
+## -- Jerome Benoit <calculus at rezozer.net>  Sun, 18 Oct 2015.
+##get-orig-source:
+##	uscan --no-conf --download-current-version --no-symlink --verbose
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..8b06cb1
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1 @@
+debian-watch-may-check-gpg-signature
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2667dcf
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+## see debian/rules , target get-orig-source , for further information.
+##version=3
+##opts=uversionmangle=s/_//,dversionmangle=s/^[0-9]*.[0-9a-z]*~\([0-9]*\)+ds/\1/ \
+##http://sf.net/openviewerfx/(.+)_OpenViewerFX_src\.jar \
+##debian sh debian/repack

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



More information about the pkg-java-commits mailing list