commit 60282675549d71c2d8db39e73722cc7fd73daf51
Author: gil <puntogil(a)libero.it>
Date: Mon Mar 3 17:09:49 2014 +0100
Initial import (#1022551).
.gitignore | 1 +
bcpkix-jdk15on-1.50.pom | 40 ++++++++
bouncycastle-pkix-OSGi.bnd | 105 ++++++++++++++++++++
bouncycastle-pkix-build.xml | 227 +++++++++++++++++++++++++++++++++++++++++++
bouncycastle-pkix.spec | 148 ++++++++++++++++++++++++++++
sources | 1 +
6 files changed, 522 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4664e91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bcpkix-jdk15on-150.tar.gz
diff --git a/bcpkix-jdk15on-1.50.pom b/bcpkix-jdk15on-1.50.pom
new file mode 100644
index 0000000..eb10056
--- /dev/null
+++ b/bcpkix-jdk15on-1.50.pom
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcpkix-jdk15on</artifactId>
+ <packaging>jar</packaging>
+ <name>Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF
APIs</name>
+ <version>1.50</version>
+ <description>The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF,
OCSP, and certificate generation. This jar contains APIs for JDK 1.5 to JDK 1.7. The APIs
can be used in conjunction with a JCE/JCA provider such as the one provided with the
Bouncy Castle Cryptography APIs.</description>
+ <
url>http://www.bouncycastle.org/java.html</url>
+ <licenses>
+ <license>
+ <name>Bouncy Castle Licence</name>
+ <
url>http://www.bouncycastle.org/licence.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <
url>https://github.com/bcgit/bc-java</url>
+ </scm>
+ <issueManagement>
+ <system>GitHub</system>
+ <
url>https://github.com/bcgit/bc-java/issues?state=open</url>
+ </issueManagement>
+ <developers>
+ <developer>
+ <id>feedback-crypto</id>
+ <name>The Legion of the Bouncy Castle</name>
+ <email>feedback-crypto(a)bouncycastle.org</email>
+ </developer>
+ </developers>
+ <dependencies>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcprov-jdk15on</artifactId>
+ <version>1.50</version>
+ <type>jar</type>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/bouncycastle-pkix-OSGi.bnd b/bouncycastle-pkix-OSGi.bnd
new file mode 100644
index 0000000..e6b392d
--- /dev/null
+++ b/bouncycastle-pkix-OSGi.bnd
@@ -0,0 +1,105 @@
+# BND/OSGI Properties by gil
+Import-Package: \
+ javax.crypto, javax.crypto.spec, javax.security.auth.x500, \
+ org.bouncycastle.asn1;version="@VERSION@", \
+ org.bouncycastle.asn1.bc;version="@VERSION@", \
+ org.bouncycastle.asn1.cmp;version="@VERSION@", \
+ org.bouncycastle.asn1.cms;version="@VERSION@", \
+ org.bouncycastle.asn1.cms.ecc;version="@VERSION@", \
+ org.bouncycastle.asn1.crmf;version="@VERSION@", \
+ org.bouncycastle.asn1.cryptopro;version="@VERSION@", \
+ org.bouncycastle.asn1.dvcs;version="@VERSION@", \
+ org.bouncycastle.asn1.eac;version="@VERSION@", \
+ org.bouncycastle.asn1.ess;version="@VERSION@", \
+ org.bouncycastle.asn1.kisa;version="@VERSION@", \
+ org.bouncycastle.asn1.iana;version="@VERSION@", \
+ org.bouncycastle.asn1.misc;version="@VERSION@", \
+ org.bouncycastle.asn1.mozilla;version="@VERSION@", \
+ org.bouncycastle.asn1.nist;version="@VERSION@", \
+ org.bouncycastle.asn1.ntt;version="@VERSION@", \
+ org.bouncycastle.asn1.ocsp;version="@VERSION@", \
+ org.bouncycastle.asn1.oiw;version="@VERSION@", \
+ org.bouncycastle.asn1.pkcs;version="@VERSION@", \
+ org.bouncycastle.asn1.sec;version="@VERSION@", \
+ org.bouncycastle.asn1.teletrust;version="@VERSION@", \
+ org.bouncycastle.asn1.tsp;version="@VERSION@", \
+ org.bouncycastle.asn1.x500;version="@VERSION@", \
+ org.bouncycastle.asn1.x509;version="@VERSION@", \
+ org.bouncycastle.asn1.x9;version="@VERSION@", \
+ org.bouncycastle.crypto;version="@VERSION@", \
+ org.bouncycastle.crypto.digests;version="@VERSION@", \
+ org.bouncycastle.crypto.encodings;version="@VERSION@", \
+ org.bouncycastle.crypto.engines;version="@VERSION@", \
+ org.bouncycastle.crypto.generators;version="@VERSION@", \
+ org.bouncycastle.crypto.io;version="@VERSION@", \
+ org.bouncycastle.crypto.macs;version="@VERSION@", \
+ org.bouncycastle.crypto.modes;version="@VERSION@", \
+ org.bouncycastle.crypto.paddings;version="@VERSION@", \
+ org.bouncycastle.crypto.params;version="@VERSION@", \
+ org.bouncycastle.crypto.signers;version="@VERSION@", \
+ org.bouncycastle.crypto.util;version="@VERSION@", \
+ org.bouncycastle.jcajce;version="@VERSION@", \
+ org.bouncycastle.jcajce.io;version="@VERSION@", \
+ org.bouncycastle.jcajce.provider.symmetric.util;version="@VERSION@", \
+ org.bouncycastle.jcajce.spec;version="@VERSION@", \
+ org.bouncycastle.jce;version="@VERSION@", \
+ org.bouncycastle.jce.spec;version="@VERSION@", \
+ org.bouncycastle.math.ec;version="@VERSION@", \
+ org.bouncycastle.util;version="@VERSION@", \
+ org.bouncycastle.util.encoders;version="@VERSION@", \
+ org.bouncycastle.util.io;version="@VERSION@", \
+ org.bouncycastle.util.io.pem;version="@VERSION@", \
+ org.bouncycastle.x509;version="@VERSION@
+Export-Package: \
+ org.bouncycastle.cert;version="@VERSION@", \
+ org.bouncycastle.cert.bc;version="@VERSION@", \
+ org.bouncycastle.cert.cmp;version="@VERSION@", \
+ org.bouncycastle.cert.crmf;version="@VERSION@", \
+ org.bouncycastle.cert.crmf.jcajce;version="@VERSION@", \
+ org.bouncycastle.cert.jcajce;version="@VERSION@", \
+ org.bouncycastle.cert.ocsp;version="@VERSION@", \
+ org.bouncycastle.cert.ocsp.jcajce;version="@VERSION@", \
+ org.bouncycastle.cert.path;version="@VERSION@", \
+ org.bouncycastle.cert.path.validations;version="@VERSION@", \
+ org.bouncycastle.cert.selector;version="@VERSION@", \
+ org.bouncycastle.cert.selector.jcajce;version="@VERSION@", \
+ org.bouncycastle.cms;version="@VERSION@", \
+ org.bouncycastle.cms.bc;version="@VERSION@", \
+ org.bouncycastle.cms.jcajce;version="@VERSION@", \
+ org.bouncycastle.dvcs;version="@VERSION@", \
+ org.bouncycastle.eac;version="@VERSION@", \
+ org.bouncycastle.eac.jcajce;version="@VERSION@", \
+ org.bouncycastle.eac.operator;version="@VERSION@", \
+ org.bouncycastle.eac.operator.jcajce;version="@VERSION@", \
+ org.bouncycastle.mozilla;version="@VERSION@", \
+ org.bouncycastle.openssl;version="@VERSION@", \
+ org.bouncycastle.openssl.jcajce;version="@VERSION@", \
+ org.bouncycastle.operator;version="@VERSION@", \
+ org.bouncycastle.operator.bc;version="@VERSION@", \
+ org.bouncycastle.operator.jcajce;version="@VERSION@", \
+ org.bouncycastle.pkcs;version="@VERSION@", \
+ org.bouncycastle.pkcs.bc;version="@VERSION@", \
+ org.bouncycastle.pkcs.jcajce;version="@VERSION@", \
+ org.bouncycastle.tsp;version="@VERSION@", \
+ org.bouncycastle.tsp.cms;version="@VERSION@", \
+ org.bouncycastle.voms;version="@VERSION@"
+Bundle-ManifestVersion: 2
+Bundle-Name: bcpkix
+Bundle-RequiredExecutionEnvironment: J2SE-1.5, JavaSE-1.6, JavaSE-1.7
+Bundle-SymbolicName: bcpkix
+Bundle-Version: @VERSION@
+Built-By: ${user.name}
+Created-By: ${java.version} (${java.vendor})
+Extension-Name: org.bouncycastle.bcpkix
+Implementation-Vendor:
BouncyCastle.org
+Implementation-Vendor-Id: org.bouncycastle
+Implementation-Version: @VERSION@.0
+Originally-Created-By: ${java.version} (${java.vendor})
+Specification-Vendor:
BouncyCastle.org
+Specification-Version: 1.1
+Application-Name: Bouncy Castle PKIX API
+Application-Library-Allowable-Codebase: *
+Caller-Allowable-Codebase: *
+Codebase: *
+Permissions: all-permissions
+Trusted-Library: true
\ No newline at end of file
diff --git a/bouncycastle-pkix-build.xml b/bouncycastle-pkix-build.xml
new file mode 100644
index 0000000..49fa3af
--- /dev/null
+++ b/bouncycastle-pkix-build.xml
@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- bcpkix by gil -->
+<!-- ====================================================================== -->
+
+<project name="build-bcpkix" default="package"
basedir=".">
+
+ <!-- ====================================================================== -->
+ <!-- Build environment properties -->
+ <!-- ====================================================================== -->
+
+
+ <property name="build.version" value="@VERSION@"/>
+ <property name="jar.name" value="bcpkix"/>
+ <property name="build.dir" value="build"/>
+ <property name="build.classes"
value="${build.dir}/classes"/>
+ <property name="build.src" value="src/java"/>
+ <property name="build.test.classes"
value="${build.dir}/test-classes"/>
+ <property name="build.test.src" value="src/test"/>
+ <property name="build.jvm" value="1.5"/>
+ <property name="test.reports"
value="${build.dir}/test-reports"/>
+ <property name="reporting.apis"
value="${build.dir}/apidocs"/>
+ <property name="j2se.api"
value="/usr/share/javadoc/java"/>
+
+ <!-- ====================================================================== -->
+ <!-- Defining classpaths -->
+ <!-- ====================================================================== -->
+
+ <path id="build.classpath">
+ <fileset dir="/usr/share/java">
+ <include name="bcprov.jar"/>
+ </fileset>
+ </path>
+ <path id="build.test.classpath">
+ <path refid="build.classpath"/>
+ <fileset dir="/usr/share/java">
+ <include name="junit.jar"/>
+ <include name="ant/ant-junit.jar"/>
+ </fileset>
+ </path>
+ <path id="javadoc.classpath">
+ <path refid="build.classpath"/>
+ <fileset dir="${build.dir}" includes="${jar.name}.jar"/>
+ </path>
+
+ <!-- ====================================================================== -->
+ <!-- Cleaning up target -->
+ <!-- ====================================================================== -->
+
+ <target name="clean" description="Clean the output
directory">
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile" description="Compile the code">
+ <mkdir dir="${build.classes}"/>
+ <javac destdir="${build.classes}"
+ nowarn="false"
+ debug="true"
+ optimize="false"
+ deprecation="true"
+ target="${build.jvm}"
+ verbose="false"
+ fork="false"
+ source="${build.jvm}">
+ <src>
+ <pathelement location="${build.src}"/>
+ </src>
+ <classpath refid="build.classpath"/>
+ </javac>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Test-compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile-tests"
+ depends="compile"
+ description="Compile the test code"
+ unless="test.skip">
+ <mkdir dir="${build.test.classes}"/>
+ <javac destdir="${build.test.classes}"
+ nowarn="false"
+ debug="true"
+ optimize="false"
+ deprecation="true"
+ target="${build.jvm}"
+ verbose="false"
+ fork="false"
+ source="${build.jvm}">
+ <src>
+ <pathelement location="${build.test.src}"/>
+ </src>
+ <classpath>
+ <path refid="build.test.classpath"/>
+ <pathelement location="${build.classes}"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Run all tests -->
+ <!-- ====================================================================== -->
+
+ <target name="test"
+ depends="compile-tests, junit-missing"
+ unless="junit.skipped"
+ description="Run the test cases">
+ <delete dir="${test.reports}"/>
+ <mkdir dir="${test.reports}"/>
+ <junit printSummary="yes" haltonerror="true"
haltonfailure="true" fork="true" dir=".">
+ <sysproperty key="basedir" value="."/>
+ <formatter type="xml"/>
+ <formatter type="plain" usefile="false"/>
+ <classpath>
+ <path refid="build.test.classpath"/>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.test.classes}"/>
+ </classpath>
+ <formatter type="brief" usefile="no"/>
+ <batchtest todir="${test.reports}" haltonfailure="yes">
+ <fileset dir="${build.test.src}">
+ <include name="**/AllTests.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="test-junit-present">
+ <available file="/usr/share/java/junit.jar"
property="junit.present"/>
+ </target>
+
+ <target name="test-junit-status"
+ depends="test-junit-present">
+ <condition property="junit.missing">
+ <and>
+ <isfalse value="${junit.present}"/>
+ <isfalse value="${test.skip}"/>
+ </and>
+ </condition>
+ <condition property="junit.skipped">
+ <or>
+ <isfalse value="${junit.present}"/>
+ <istrue value="${test.skip}"/>
+ </or>
+ </condition>
+ </target>
+
+ <target name="junit-missing"
+ depends="test-junit-status"
+ if="junit.missing">
+ <echo>=================================== WARNING
===================================</echo>
+ <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not
executed.</echo>
+
<echo>===============================================================================</echo>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Javadoc target -->
+ <!-- ====================================================================== -->
+
+ <target name="javadoc" description="Generates the Javadoc of the
application">
+ <javadoc sourcepath="${build.src}"
+ packagenames="*"
+ destdir="${reporting.apis}"
+ access="protected"
+ old="false"
+ verbose="false"
+ version="true"
+ use="true"
+ author="true"
+ splitindex="false"
+ nodeprecated="false"
+ nodeprecatedlist="false"
+ notree="false"
+ noindex="false"
+ nohelp="false"
+ nonavbar="false"
+ serialwarn="false"
+ source="${build.jvm}"
+ linksource="false"
+ breakiterator="false">
+ <classpath refid="javadoc.classpath"/>
+ <doctitle><![CDATA[<h1>Bouncy Castle Cryptography Library
${build.version} API Specification</h1>]]></doctitle>
+ <group title="Certificate Generation And Handling Support (OCSP,
CRMF, CMP) Packages"
packages="org.bouncycastle.cert,org.bouncycastle.cert.*,org.bouncycastle.cert.cmp.*,org.bouncycastle.cert.crmf.*,org.bouncycastle.cert.crmf.jcajce.*,org.bouncycastle.cert.jcajce.*,org.bouncycastle.cert.ocsp.*,org.bouncycastle.cert.ocsp.jcajce.*,org.bouncycastle.cert.selector.*,org.bouncycastle.cert.selector.jcajce.*"/>
+ <group title="CMS Support Packages"
packages="org.bouncycastle.cms,org.bouncycastle.cms.*,org.bouncycastle.cms.bc.*,org.bouncycastle.cms.jcajce.*"/>
+ <group title="Extended Access Control Packages"
packages="org.bouncycastle.eac,org.bouncycastle.eac.*,org.bouncycastle.eac.jcajce.*,org.bouncycastle.eac.operator.*,org.bouncycastle.eac.operator.jcajce.*"/>
+ <group title="TSP Support Packages"
packages="org.bouncycastle.tsp,org.bouncycastle.tsp.*,org.bouncycastle.tsp.cms.*"/>
+ <group title="PKCS Support Packages"
packages="org.bouncycastle.pkcs,org.bouncycastle.pkcs.*,org.bouncycastle.pkcs.bc.*,org.bouncycastle.pkcs.jcajce.*"/>
+ <group title="OpenSSL and PEM Support Packages"
packages="org.bouncycastle.openssl,org.bouncycastle.openssl.*"/>
+ <group title="Data Validation and Certification Server (DVCS)
Support Packages"
packages="org.bouncycastle.dvcs,org.bouncycastle.dvcs.*"/>
+ <group title="VOMS Support Packages"
packages="org.bouncycastle.voms,org.bouncycastle.voms.*"/>
+ <group title="Mozilla Support Packages"
packages="org.bouncycastle.mozilla,org.bouncycastle.mozilla.*"/>
+ <group title="Generic operator and helpers Packages"
packages="org.bouncycastle.operator,org.bouncycastle.operator.*"/>
+ <link href="${j2se.api}"/>
+ </javadoc>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Package target -->
+ <!-- ====================================================================== -->
+
+ <taskdef resource="aQute/bnd/ant/taskdef.properties" >
+ <classpath>
+ <fileset dir="/usr/share/java"
includes="aqute-bnd.jar" />
+ </classpath>
+ </taskdef>
+
+ <target name="package" depends="compile,test"
description="Package the application">
+ <bnd
+ classpath="${build.classes}"
+ failok="false"
+ exceptions="false"
+ files="bcpkix.bnd"
+ output="${build.dir}/${jar.name}.jar"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- A dummy target for the package named after the type it creates -->
+ <!-- ====================================================================== -->
+
+ <target name="jar" depends="package" description="Builds
the jar for the application"/>
+
+</project>
diff --git a/bouncycastle-pkix.spec b/bouncycastle-pkix.spec
new file mode 100644
index 0000000..d3d6c74
--- /dev/null
+++ b/bouncycastle-pkix.spec
@@ -0,0 +1,148 @@
+%global ver 150
+%global archivever jdk15on-%(echo %{version}|sed 's|\\\.||')
+Name: bouncycastle-pkix
+Version: 1.50
+Release: 1%{?dist}
+Summary: Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs
+License: MIT
+URL:
http://www.bouncycastle.org/
+Source0:
http://www.bouncycastle.org/download/bcpkix-%{archivever}.tar.gz
+Source1:
http://central.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/%{version...
+Source2: bouncycastle-pkix-build.xml
+Source3: bouncycastle-pkix-OSGi.bnd
+
+BuildRequires: ant
+BuildRequires: ant-junit
+BuildRequires: aqute-bnd
+BuildRequires: java-devel
+BuildRequires: javapackages-tools
+BuildRequires: junit
+BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on) = %{version}
+Requires: mvn(org.bouncycastle:bcprov-jdk15on) = %{version}
+Requires: java-headless
+Requires: javapackages-tools
+BuildArch: noarch
+Obsoletes: bouncycastle-tsp < 1.47
+Provides: bouncycastle-tsp = %{version}-%{release}
+
+%description
+The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and
+certificate generation. This jar contains APIs for JDK 1.5 to JDK 1.7. The
+APIs can be used in conjunction with a JCE/JCA provider such as the
+one provided with the Bouncy Castle Cryptography APIs.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n bcpkix-%{archivever}
+# Remove provided binaries and apidocs
+find . -type f -name "*.class" -print -delete
+find . -type f -name "*.jar" -print -delete
+rm -rf docs/* javadoc/*
+
+# fixing incomplete source directory structure
+mkdir -p src/java src/test
+unzip -qq src.zip -d src/java
+
+mkdir -p src/test/org/bouncycastle/cert/cmp/test
+mv src/java/org/bouncycastle/cert/cmp/test/* src/test/org/bouncycastle/cert/cmp/test
+mkdir -p src/test/org/bouncycastle/cert/crmf/test
+mv src/java/org/bouncycastle/cert/crmf/test/* src/test/org/bouncycastle/cert/crmf/test
+mkdir -p src/test/org/bouncycastle/cert/ocsp/test
+mv src/java/org/bouncycastle/cert/ocsp/test/* src/test/org/bouncycastle/cert/ocsp/test
+mkdir -p src/test/org/bouncycastle/cert/test
+mv src/java/org/bouncycastle/cert/test/* src/test/org/bouncycastle/cert/test
+mkdir -p src/test/org/bouncycastle/cms/test
+mv src/java/org/bouncycastle/cms/test/* src/test/org/bouncycastle/cms/test
+mkdir -p src/test/org/bouncycastle/eac/test
+mv src/java/org/bouncycastle/eac/test/* src/test/org/bouncycastle/eac/test
+mkdir -p src/test/org/bouncycastle/mozilla/test
+mv src/java/org/bouncycastle/mozilla/test/* src/test/org/bouncycastle/mozilla/test
+mkdir -p src/test/org/bouncycastle/openssl/test
+mv src/java/org/bouncycastle/openssl/test/* src/test/org/bouncycastle/openssl/test
+mkdir -p src/test/org/bouncycastle/tsp/test
+mv src/java/org/bouncycastle/tsp/test/* src/test/org/bouncycastle/tsp/test
+mkdir -p src/test/org/bouncycastle/pkcs/test
+mv src/java/org/bouncycastle/pkcs/test/* src/test/org/bouncycastle/pkcs/test
+mkdir -p src/test/org/bouncycastle/dvcs
+mv src/java/org/bouncycastle/dvcs/test src/test/org/bouncycastle/dvcs
+mkdir -p src/test/org/bouncycastle/cert/path
+mv src/java/org/bouncycastle/cert/path/test src/test/org/bouncycastle/cert/path
+
+cp -p %{SOURCE2} build.xml
+cp -p %{SOURCE3} bcpkix.bnd
+sed -i "s|@VERSION@|%{version}|" build.xml bcpkix.bnd
+
+# this test fails:
+rm -rf src/test/org/bouncycastle/cert/ocsp/test/*.java
+# bc.test.data.home property not set
+rm -rf src/test/org/bouncycastle/cert/cmp/test/AllTests.java
+rm -rf src/test/org/bouncycastle/cms/test/Rfc4134Test.java
+sed -i
"s|suite.addTest(Rfc4134Test.suite());|//suite.addTest(Rfc4134Test.suite());|"
\
+ src/test/org/bouncycastle/cms/test/AllTests.java
+
+# package org.bouncycastle.jce.provider.test does not exist
+rm -rf src/test/org/bouncycastle/cms/test/SignedDataTest.java
+sed -i
"s|suite.addTest(SignedDataTest.suite());|//suite.addTest(SignedDataTest.suite());|"
\
+ src/test/org/bouncycastle/cms/test/AllTests.java
+rm -rf src/test/org/bouncycastle/cms/test/NewSignedDataTest.java
+sed -i
"s|suite.addTest(NewSignedDataTest.suite());|//suite.addTest(NewSignedDataTest.suite());|"
\
+ src/test/org/bouncycastle/cms/test/AllTests.java
+rm -rf src/test/org/bouncycastle/eac/test \
+ src/test/org/bouncycastle/openssl/test
+rm -rf src/test/org/bouncycastle/tsp/test/CMSTimeStampedDataTest.java
+sed -i
"s|suite.addTestSuite(CMSTimeStampedDataTest.class);|//suite.addTestSuite(CMSTimeStampedDataTest.class);|"
\
+ src/test/org/bouncycastle/tsp/test/AllTests.java
+rm -rf src/test/org/bouncycastle/tsp/test/CMSTimeStampedDataParserTest.java
+sed -i
"s|suite.addTestSuite(CMSTimeStampedDataParserTest.class);|//suite.addTestSuite(CMSTimeStampedDataParserTest.class);|"
\
+ src/test/org/bouncycastle/tsp/test/AllTests.java
+rm -rf src/test/org/bouncycastle/tsp/test/CMSTimeStampedDataGeneratorTest.java
+sed -i
"s|suite.addTestSuite(CMSTimeStampedDataGeneratorTest.class);|//suite.addTestSuite(CMSTimeStampedDataGeneratorTest.class);|"
\
+ src/test/org/bouncycastle/tsp/test/AllTests.java
+rm -r src/test/org/bouncycastle/cert/test/BcCertTest.java
+sed -i
"s|suite.addTestSuite(BcCertTest.class);|//suite.addTestSuite(BcCertTest.class);|"
\
+ src/test/org/bouncycastle/cert/test/AllTests.java
+rm -r src/test/org/bouncycastle/cms/test/BcSignedDataTest.java
+sed -i
"s|suite.addTest(BcSignedDataTest.suite());|//suite.addTest(BcSignedDataTest.suite());|"
\
+ src/test/org/bouncycastle/cms/test/AllTests.java
+
+
+%build
+
+%ant jar javadoc
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -pm 644 build/bcpkix.jar %{buildroot}%{_javadir}/bcpkix.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr build/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-bcpkix.pom
+%add_maven_depmap JPP-bcpkix.pom bcpkix.jar -a "org.bouncycastle:bctsp-jdk16"
+
+%files
+%{_javadir}/bcpkix.jar
+%{_mavenpomdir}/JPP-bcpkix.pom
+%{_mavendepmapfragdir}/%{name}
+%doc *.html
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.html
+
+%changelog
+* Mon Feb 24 2014 gil cattaneo <puntogil(a)libero.it> 1.50-1
+- update to 1.50
+
+* Fri Feb 22 2013 gil cattaneo <puntogil(a)libero.it> 1.48-1
+- update to 1.48
+
+* Thu Jun 21 2012 gil cattaneo <puntogil(a)libero.it> 1.47-1
+- initial rpm
diff --git a/sources b/sources
index e69de29..19c5854 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5b4bef277a8c477998829b367eb06364 bcpkix-jdk15on-150.tar.gz