From: František Dvořák Date: Tue, 1 Nov 2016 14:07:03 +0000 (+0100) Subject: boucycastle: initial packaging X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=465cb5f0fdec9242d0dd2ce1f637f7784183e451;p=packaging-deb-jOCCI.git boucycastle: initial packaging --- diff --git a/bouncycastle/bcprov-jdk16-146.tar.gz b/bouncycastle/bcprov-jdk16-146.tar.gz new file mode 100644 index 0000000..7fab272 Binary files /dev/null and b/bouncycastle/bcprov-jdk16-146.tar.gz differ diff --git a/bouncycastle/bouncycastle1.46_1.46.orig.tar.gz b/bouncycastle/bouncycastle1.46_1.46.orig.tar.gz new file mode 100644 index 0000000..32cb96f Binary files /dev/null and b/bouncycastle/bouncycastle1.46_1.46.orig.tar.gz differ diff --git a/bouncycastle/debian/changelog b/bouncycastle/debian/changelog new file mode 100644 index 0000000..5bcadc9 --- /dev/null +++ b/bouncycastle/debian/changelog @@ -0,0 +1,5 @@ +bouncycastle1.46 (1.46-1) UNRELEASED; urgency=low + + * Initial release + + -- FrantiÅ¡ek Dvořák Tue, 01 Nov 2016 15:05:25 +0100 diff --git a/bouncycastle/debian/compat b/bouncycastle/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/bouncycastle/debian/compat @@ -0,0 +1 @@ +9 diff --git a/bouncycastle/debian/control b/bouncycastle/debian/control new file mode 100644 index 0000000..75db521 --- /dev/null +++ b/bouncycastle/debian/control @@ -0,0 +1,35 @@ +Source: bouncycastle1.46 +Section: java +Priority: optional +Maintainer: Debian Java Maintainers +Uploaders: FrantiÅ¡ek Dvořák +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. diff --git a/bouncycastle/debian/copyright b/bouncycastle/debian/copyright new file mode 100644 index 0000000..3d04bb9 --- /dev/null +++ b/bouncycastle/debian/copyright @@ -0,0 +1,32 @@ +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. diff --git a/bouncycastle/debian/libbouncycastle1.46-java-doc.doc-base.api b/bouncycastle/debian/libbouncycastle1.46-java-doc.doc-base.api new file mode 100644 index 0000000..5365f4c --- /dev/null +++ b/bouncycastle/debian/libbouncycastle1.46-java-doc.doc-base.api @@ -0,0 +1,10 @@ +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/* diff --git a/bouncycastle/debian/libbouncycastle1.46-java-doc.install b/bouncycastle/debian/libbouncycastle1.46-java-doc.install new file mode 100644 index 0000000..feaef2b --- /dev/null +++ b/bouncycastle/debian/libbouncycastle1.46-java-doc.install @@ -0,0 +1,2 @@ +docs/* usr/share/doc/libbouncycastle1.46-java/api + diff --git a/bouncycastle/debian/libbouncycastle1.46-java.poms b/bouncycastle/debian/libbouncycastle1.46-java.poms new file mode 100644 index 0000000..0417132 --- /dev/null +++ b/bouncycastle/debian/libbouncycastle1.46-java.poms @@ -0,0 +1,28 @@ +# List of POM files for the package +# Format of this file is: +# [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 tag from the POM +# --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=: a list of XML elements to keep in the POM +# during a clean operation with mh_cleanpom or mh_installpom +# --artifact=: 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 to use when installing the library in /usr/share/java +# --usj-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=: the destination for the real jar. +# It will be installed with mh_install. [mh_install] +# --classifier=: Optional, the classifier for the jar. Empty by default. +# --site-xml=: Optional, the location for site.xml if it needs to be installed. +# Empty by default. [mh_install] +# +pom.xml --has-package-version diff --git a/bouncycastle/debian/maven.cleanIgnoreRules b/bouncycastle/debian/maven.cleanIgnoreRules new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/bouncycastle/debian/maven.cleanIgnoreRules @@ -0,0 +1 @@ + diff --git a/bouncycastle/debian/maven.ignoreRules b/bouncycastle/debian/maven.ignoreRules new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/bouncycastle/debian/maven.ignoreRules @@ -0,0 +1 @@ + diff --git a/bouncycastle/debian/maven.properties b/bouncycastle/debian/maven.properties new file mode 100644 index 0000000..7c29bd7 --- /dev/null +++ b/bouncycastle/debian/maven.properties @@ -0,0 +1,4 @@ +# Include here properties to pass to Maven during the build. +# For example: +# maven.test.skip=true + diff --git a/bouncycastle/debian/maven.publishedRules b/bouncycastle/debian/maven.publishedRules new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/bouncycastle/debian/maven.publishedRules @@ -0,0 +1 @@ + diff --git a/bouncycastle/debian/maven.rules b/bouncycastle/debian/maven.rules new file mode 100644 index 0000000..400e067 --- /dev/null +++ b/bouncycastle/debian/maven.rules @@ -0,0 +1,3 @@ +# 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/ * * diff --git a/bouncycastle/debian/rules b/bouncycastle/debian/rules new file mode 100755 index 0000000..fc921d6 --- /dev/null +++ b/bouncycastle/debian/rules @@ -0,0 +1,29 @@ +#!/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 diff --git a/bouncycastle/debian/source/format b/bouncycastle/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/bouncycastle/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/bouncycastle/repack.sh b/bouncycastle/repack.sh new file mode 100755 index 0000000..1a01f19 --- /dev/null +++ b/bouncycastle/repack.sh @@ -0,0 +1,11 @@ +#! /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