--- /dev/null
+bouncycastle1.46 (1.46-1) UNRELEASED; urgency=low
+
+ * Initial release
+
+ -- František Dvořák <valtri@civ.zcu.cz> Tue, 01 Nov 2016 15:05:25 +0100
--- /dev/null
+Source: bouncycastle1.46
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: František Dvořák <valtri@civ.zcu.cz>
+Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: default-jdk-doc, libmaven-javadoc-plugin-java
+Standards-Version: 3.9.5
+#Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/bouncycastle1.46
+#Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/bouncycastle1.46
+Vcs-Browser: http://scientific.zcu.cz/git/?p=packaging-deb-jOCCI.git;a=summary
+Homepage: http://www.bouncycastle.org/java.html
+
+Package: libbouncycastle1.46-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Recommends: ${maven:OptionalDepends}
+Suggests: libbouncycastle1.46-java-doc
+Description: Bouncy Castle Provider
+ The Bouncy Castle Crypto package is a Java implementation of cryptographic
+ algorithms. This jar contains JCE provider and lightweight API for the
+ Bouncy Castle Cryptography APIs for JDK 1.6.
+
+Package: libbouncycastle1.46-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${maven:DocDepends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: libbouncycastle1.46-java
+Description: Documentation for Bouncy Castle Provider
+ The Bouncy Castle Crypto package is a Java implementation of cryptographic
+ algorithms. This jar contains JCE provider and lightweight API for the
+ Bouncy Castle Cryptography APIs for JDK 1.6.
+ .
+ This package contains the API documentation of libbouncycastle1.46-java.
--- /dev/null
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Bouncy Castle Provider
+Source: http://www.bouncycastle.org/java.html
+
+Files: *
+Copyright: 2000-2010, The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+License: Expat
+
+Files: debian/*
+Copyright: 2016, CESNET - INDIGO-DataCloud
+License: Expat
+Comment: The Debian packaging is licensed under the same terms as the original package.
+
+License: Expat
+ 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.
--- /dev/null
+Document: libbouncycastle1.46-java
+Title: API Javadoc for Bouncy Castle Provider
+Author: Bouncy Castle Provider developers
+Abstract: This is the API Javadoc provided for the
+ libbouncycastle1.46-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libbouncycastle1.46-java/api/index.html
+Files: /usr/share/doc/libbouncycastle1.46-java/api/*
--- /dev/null
+docs/* usr/share/doc/libbouncycastle1.46-java/api
+
--- /dev/null
+# 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]
+#
+pom.xml --has-package-version
--- /dev/null
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
--- /dev/null
+# Strip out -jdk16 as Ubuntu/Debian does not build multiple versions
+# Add compat version suffix
+org.bouncycastle s/bcprov-jdk16/bcprov1.46/ jar s/.*/debian/ * *
--- /dev/null
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
+
+DEB_JARS := junit
+JAVA_HOME := /usr/lib/jvm/default-java
+
+clean::
+ mh_clean
+ find src -name \*.class -delete
+ rm -f bcprov*.jar
+ rm -rf target/
+
+build/libbouncycastle1.46-java::
+ javac -cp /usr/share/java/junit.jar -g -source 1.6 -target 1.6 -encoding UTF-8 -d src/ $(shell find src/ -type f -name "*.java")
+ files="$(shell cd src/; find . -type f \( -name '*.class' -o -name '*.properties' \) -not -path '*/test/*')"; \
+ files2="$(shell cd src/; find . -type f -path '*/org/bouncycastle/util/test/*.class')"; \
+ files3="$(shell cd src/; find . -type f -path '*/org/bouncycastle/jce/provider/test/*.class')"; \
+ files4="$(shell cd src/; find . -type f -path '*/org/bouncycastle/ocsp/test/*.class')"; \
+ (cd src/; ls -la $$files); \
+ cd src/ && jar cvf ../bcprov-jdk16.jar $$files $$files2 $$files3 $$files4
+
+binary-install/libbouncycastle1.46-java:: build/libbouncycastle1.46-java
+ mh_installpoms -plibbouncycastle1.46-java
+ mh_installjar -plibbouncycastle1.46-java -l pom.xml ./bcprov-jdk16.jar
+
+#get-orig-source:
+# uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
--- /dev/null
+3.0 (quilt)
--- /dev/null
+#! /bin/sh
+tar xzf bcprov-jdk16-146.tar.gz
+
+wget http://repo2.maven.org/maven2/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.pom -P bcprov-jdk16-146/
+mv bcprov-jdk16-146/bcprov-jdk16-1.46.pom bcprov-jdk16-146/pom.xml
+#cp -vp bcprov-jdk16-1.46.pom bcprov-jdk16-146/pom.xml
+
+mkdir bcprov-jdk16-146/src
+(cd bcprov-jdk16-146; unzip src.zip -d src/)
+
+tar -cf - bcprov-jdk16-146 | gzip --best > bouncycastle1.46_1.46.orig.tar.gz