- Cleanup with spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/Java:packages/bouncycastle?expand=0&rev=20
This commit is contained in:
Tomáš Chvátal 2015-02-10 12:35:24 +00:00 committed by Git OBS Bridge
parent 613b540847
commit c91eea2d82
2 changed files with 16 additions and 17 deletions

View File

@ -2,6 +2,7 @@
Tue Feb 10 12:29:43 UTC 2015 - tchvatal@suse.com Tue Feb 10 12:29:43 UTC 2015 - tchvatal@suse.com
- Version bump to 1.50 to match Fedora - Version bump to 1.50 to match Fedora
- Cleanup with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 7 14:57:54 UTC 2014 - tchvatal@suse.com Mon Jul 7 14:57:54 UTC 2014 - tchvatal@suse.com

View File

@ -16,33 +16,31 @@
# #
#
%define ver 1.50 %define ver 1.50
%define shortver 150 %define shortver 150
%define archivever jdk15on-%{shortver} %define archivever jdk15on-%{shortver}
%define classname org.bouncycastle.jce.provider.BouncyCastleProvider %define classname org.bouncycastle.jce.provider.BouncyCastleProvider
Summary: Bouncy Castle Crypto Package for Java
License: MIT
Group: Development/Libraries/Java
Name: bouncycastle Name: bouncycastle
Version: %{ver} Version: %{ver}
Release: 0 Release: 0
Summary: Bouncy Castle Crypto Package for Java
License: MIT
Group: Development/Libraries/Java
Url: http://www.bouncycastle.org/ Url: http://www.bouncycastle.org/
Source0: http://www.bouncycastle.org/download/bcprov-%{archivever}.tar.gz Source0: http://www.bouncycastle.org/download/bcprov-%{archivever}.tar.gz
Source1: http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/%{ver}/bcprov-jdk15on-%{ver}.pom Source1: http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/%{ver}/bcprov-jdk15on-%{ver}.pom
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: javapackages-tools
Requires(post): javapackages-tools
Requires(postun): javapackages-tools
BuildArch: noarch
BuildRequires: java-devel BuildRequires: java-devel
BuildRequires: unzip BuildRequires: javapackages-tools
BuildRequires: junit
#FIXME: this is needed for initialize of NSS crypto backend, will be required (not required(post) by openjdk) #FIXME: this is needed for initialize of NSS crypto backend, will be required (not required(post) by openjdk)
BuildRequires: mozilla-nss BuildRequires: mozilla-nss
BuildRequires: unzip
Requires: java Requires: java
BuildRequires: junit Requires(post): javapackages-tools
Requires(postun): javapackages-tools
Provides: bcprov = %{version}-%{release} Provides: bcprov = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description %description
The Bouncy Castle Crypto package is a Java implementation of cryptographic The Bouncy Castle Crypto package is a Java implementation of cryptographic
@ -53,8 +51,8 @@ the additional infrastructure to conform the algorithms to the JCE framework.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Development/Libraries/Java Group: Development/Libraries/Java
BuildArch: noarch
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description javadoc %description javadoc
API documentation for the %{name} package. API documentation for the %{name} package.
@ -120,7 +118,7 @@ popd
{ {
# 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="/usr/lib/$suffix /usr/lib64/$suffix" secfiles="%{_libexecdir}/$suffix %{_libdir}/$suffix"
for secfile in $secfiles for secfile in $secfiles
do do
@ -130,7 +128,7 @@ popd
sed -i '/^security\.provider\./d' "$secfile" sed -i '/^security\.provider\./d' "$secfile"
count=0 count=0
for provider in $(ls /etc/java/security/security.d) for provider in $(ls %{_sysconfdir}/java/security/security.d)
do do
count=$((count + 1)) count=$((count + 1))
echo "security.provider.${count}=${provider#*-}" >> "$secfile" echo "security.provider.${count}=${provider#*-}" >> "$secfile"
@ -144,7 +142,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="/usr/lib/$suffix /usr/lib64/$suffix" secfiles="%{_libexecdir}/$suffix %{_libdir}/$suffix"
for secfile in $secfiles for secfile in $secfiles
do do
@ -154,7 +152,7 @@ if [ $1 -eq 0 ] ; then
sed -i '/^security\.provider\./d' "$secfile" sed -i '/^security\.provider\./d' "$secfile"
count=0 count=0
for provider in $(ls /etc/java/security/security.d) for provider in $(ls %{_sysconfdir}/java/security/security.d)
do do
count=$((count + 1)) count=$((count + 1))
echo "security.provider.${count}=${provider#*-}" >> "$secfile" echo "security.provider.${count}=${provider#*-}" >> "$secfile"