File gnu-crypto.spec of Package gnu-crypto
#
# spec file for package gnu-crypto
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnu-crypto
Version: 2.0.1
Release: 0
Summary: GNU Crypto
License: GPL-2.0+
Group: Development/Languages/Java
Url: http://www.gnu.org/software/gnu-crypto/
Source: ftp://ftp.gnu.org/gnu/%{name}/releases/%{name}-%{version}.tar.bz2
Patch0: sasl-functions.patch
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: unzip
Provides: jce
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
GNU Crypto, part of the GNU project, released under the aegis of GNU,
aims at providing free, versatile, high-quality, and provably correct
implementations of cryptographic primitives and tools in the Java
programming language for use by programmers and end-users.
%prep
%setup -q
%patch0
%build
export CLASSPATH=$(build-classpath glibj)
ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 jar
%install
mkdir -p %{buildroot}/%{_javadir}
cp lib/*.jar %{buildroot}/%{_javadir}
%files
%defattr(-,root,root)
%{_javadir}/*
%changelog