- use add_maven_depmap from recent javapackages-tools

- temporary mozilla-nss to BT: in order to pass a tests

OBS-URL: https://build.opensuse.org/package/show/Java:packages/bouncycastle?expand=0&rev=9
This commit is contained in:
Michal Vyskocil 2013-08-28 08:25:59 +00:00 committed by Git OBS Bridge
parent e7ccdd8c1b
commit dbdd762dd3
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 28 08:25:18 UTC 2013 - mvyskocil@suse.com
- use add_maven_depmap from recent javapackages-tools
- temporary mozilla-nss to BT: in order to pass a tests
-------------------------------------------------------------------
Fri May 18 12:39:28 UTC 2012 - mvyskocil@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package bouncycastle
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -43,6 +43,8 @@ Requires(postun): jpackage-utils >= 1.7
BuildArch: noarch
BuildRequires: java-devel
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
@ -109,7 +111,7 @@ cp -pr docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# maven pom
install -dm 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-bcprov.pom
%add_to_maven_depmap org.bouncycastle bcprov-jdk16 %{version} JPP bcprov
%add_maven_depmap JPP-bcprov.pom bcprov.jar
%check
pushd src
@ -143,8 +145,6 @@ popd
done
} || :
%update_maven_depmap
%postun
if [ $1 -eq 0 ] ; then
@ -170,7 +170,6 @@ if [ $1 -eq 0 ] ; then
} || :
fi
%update_maven_depmap
%files
%defattr(0644,root,root,0755)
@ -178,10 +177,9 @@ fi
%{_javadir}/bcprov.jar
%{_javadir}/bcprov-%{version}.jar
%{_javadir}/*
%{_sysconfdir}/java/*
%config(noreplace) %{_sysconfdir}/java/*
%{_mavenpomdir}/JPP-bcprov.pom
%config %{_mavendepmapfragdir}/%{name}
%dir /usr/share/maven2
%files javadoc
%defattr(0644,root,root,0755)