From 0529a25e585b8acac62afa605dbcecc3ccd10251ad0396ca82f1680da2c7579e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 7 Jul 2014 14:58:58 +0000 Subject: [PATCH] - Depend on junit not junit4 OBS-URL: https://build.opensuse.org/package/show/Java:packages/bouncycastle?expand=0&rev=17 --- bouncycastle.changes | 5 +++++ bouncycastle.spec | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bouncycastle.changes b/bouncycastle.changes index aaf9af0..b1d1681 100644 --- a/bouncycastle.changes +++ b/bouncycastle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 7 14:57:54 UTC 2014 - tchvatal@suse.com + +- Depend on junit not junit4 + ------------------------------------------------------------------- Thu May 15 15:29:26 UTC 2014 - darin@darins.net diff --git a/bouncycastle.spec b/bouncycastle.spec index d686728..ffc0086 100644 --- a/bouncycastle.spec +++ b/bouncycastle.spec @@ -45,7 +45,7 @@ BuildRequires: unzip #FIXME: this is needed for initialize of NSS crypto backend, will be required (not required(post) by openjdk) BuildRequires: mozilla-nss Requires: java -BuildRequires: junit4 +BuildRequires: junit Provides: bcprov = %{version}-%{release} @@ -77,8 +77,8 @@ unzip -qq src.zip -d src/ %build pushd src - export CLASSPATH=$(build-classpath junit4) - %javac -g -source 1.6 -target 1.6 -encoding UTF-8 $(find . -type f -name "*.java") + export CLASSPATH=$(build-classpath junit) + %javac -g -source 1.5 -target 1.5 -encoding UTF-8 $(find . -type f -name "*.java") jarfile="../bcprov-%{version}.jar" # Exclude all */test/* files except org.bouncycastle.util.test, cf. upstream files="$(find . -type f \( -name '*.class' -o -name '*.properties' \) -not -path '*/test/*')" @@ -92,10 +92,6 @@ pushd src popd %install -%if 0%{?suse_version} == 1110 -export NO_BRP_CHECK_BYTECODE_VERSION=true -%endif - install -dm 755 %{buildroot}%{_sysconfdir}/java/security/security.d touch %{buildroot}%{_sysconfdir}/java/security/security.d/2000-%{classname} @@ -118,7 +114,7 @@ install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-bcprov.pom %check pushd src - export CLASSPATH=$PWD:$(build-classpath junit4) + export CLASSPATH=$PWD:$(build-classpath junit) for test in $(find . -name AllTests.class) ; do test=${test#./} ; test=${test%.class} ; test=${test//\//.} # TODO: failures; get them fixed and remove || :