Accepting request 788316 from Java:packages

Add OSGi manifests to the distributed jars

OBS-URL: https://build.opensuse.org/request/show/788316
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bouncycastle?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2020-03-27 20:55:17 +00:00 committed by Git OBS Bridge
commit 662ba6b632
3 changed files with 85 additions and 1 deletions

72
bouncycastle-osgi.patch Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Mar 25 13:17:01 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* bouncycastle-osgi.patch
+ Add OSGi manifests to the distributed jars so that they can
be used from eclipse
-------------------------------------------------------------------
Wed Nov 6 18:11:54 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package bouncycastle
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -36,6 +36,7 @@ Source3: https://repo1.maven.org/maven2/org/%{name}/bcpg-jdk15on/%{versio
Source4: https://repo1.maven.org/maven2/org/%{name}/bcmail-jdk15on/%{version}/bcmail-jdk15on-%{version}.pom
Source5: https://repo1.maven.org/maven2/org/%{name}/bctls-jdk15on/%{version}/bctls-jdk15on-%{version}.pom
Patch0: bouncycastle-javadoc.patch
Patch1: bouncycastle-osgi.patch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: fdupes
@ -110,12 +111,15 @@ API documentation for the Bouncy Castle Cryptography APIs.
%prep
%setup -q -n bc-java-%{gittag}
%patch0 -p1
%patch1 -p1
# Remove provided binaries
find . -type f -name "*.class" -exec rm -f {} \;
find . -type f -name "*.jar" -exec rm -f {} \;
%build
echo "package.version:\ %{version}" >> bc-build.properties
echo "bundle.version:\ %{version}.0" >> bc-build.properties
ant -f ant/jdk15+.xml \
-Dbc.javac.source=6 -Dbc.javac.target=6 \
-Djunit.jar.home=$(build-classpath junit) \