Fridrich Strba 2022-03-17 10:17:41 +00:00 committed by Git OBS Bridge
parent 63367728e5
commit 87e03ab720

View File

@ -41,13 +41,15 @@ Patch1: bouncycastle-osgi.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: ant-junit BuildRequires: ant-junit
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: jaf
BuildRequires: javamail BuildRequires: javamail
BuildRequires: javapackages-local BuildRequires: javapackages-local
Requires(post): javapackages-tools Requires(post): javapackages-tools
Requires(postun):javapackages-tools Requires(postun):javapackages-tools
Provides: bcprov = %{version}-%{release} Provides: bcprov = %{version}-%{release}
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version} > 1500
BuildRequires: jaf
%endif
%description %description
The Bouncy Castle Crypto package is a Java implementation of cryptographic The Bouncy Castle Crypto package is a Java implementation of cryptographic
@ -126,7 +128,11 @@ ant -f ant/jdk15+.xml \
-Dbc.javac.source=6 -Dbc.javac.target=6 \ -Dbc.javac.source=6 -Dbc.javac.target=6 \
-Djunit.jar.home=$(build-classpath junit) \ -Djunit.jar.home=$(build-classpath junit) \
-Dmail.jar.home=$(build-classpath javax.mail) \ -Dmail.jar.home=$(build-classpath javax.mail) \
%if 0%{?suse_version} > 1500
-Dactivation.jar.home=$(build-classpath jaf/javax.activation-api) \ -Dactivation.jar.home=$(build-classpath jaf/javax.activation-api) \
%else
-Dactivation.jar.home= \
%endif
-Drelease.debug=true \ -Drelease.debug=true \
clean build-provider build clean build-provider build
@ -153,7 +159,7 @@ cp -r build/artifacts/jdk1.5/javadoc/* %{buildroot}%{_javadocdir}/%{name}/
{ {
# Rebuild the list of security providers in classpath.security # Rebuild the list of security providers in classpath.security
suffix=security/classpath.security suffix=security/classpath.security
secfiles="%{_prefix}/lib/$suffix %{_prefix}/lib64/$suffix" secfiles="%{_prefix}/lib/$suffix %{_libdir}/$suffix"
for secfile in $secfiles for secfile in $secfiles
do do
@ -177,7 +183,7 @@ if [ $1 -eq 0 ] ; then
{ {
# Rebuild the list of security providers in classpath.security # Rebuild the list of security providers in classpath.security
suffix=security/classpath.security suffix=security/classpath.security
secfiles="%{_prefix}/lib/$suffix %{_prefix}/lib64/$suffix" secfiles="%{_prefix}/lib/$suffix %{_libdir}/$suffix"
for secfile in $secfiles for secfile in $secfiles
do do