File gnu-crypto.spec of Package gnu-crypto

#
# spec file for package gnu-crypto (Version 2.0.1)
#
# Copyright (c) 2009 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
# 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/
#

# norootforbuild


Name:           gnu-crypto
BuildRequires:  ant classpath java-1_4_2-gcj-compat-devel texinfo texlive unzip
#antlr
License:        GPL v2 or later
Group:          Development/Languages/Java
AutoReqProv:    on
Version:        2.0.1
Release:        232
Summary:        GNU Crypto
Url:            http://www.gnu.org/software/gnu-crypto/
Source:         %{name}-%{version}.tar.bz2
Patch0:         sasl-functions.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       jce

%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.



Authors:
--------
    Barreto, Paulo S. L. M.
    Burdis, Keith
    Kmett, Edward
    Louchart-Fletcher, Olivier
    Marshall, Casey
    Naffah, Raif S.
    Wielaard, Mark
    Wu, Thomas J.

%package      javadoc
License:        GPL v2 or later
Summary:        Api documentation for gnu-crypto
Group:          Documentation/Other

%description javadoc
Api documentation for gnu-crypto



Authors:
--------
    Barreto, Paulo S. L. M.
    Burdis, Keith
    Kmett, Edward
    Louchart-Fletcher, Olivier
    Marshall, Casey
    Naffah, Raif S.
    Wielaard, Mark
    Wu, Thomas J.

%prep
%setup
%patch0 
#<< prep
#>> build

%build
CLASSPATH=$(build-classpath glibj) ant jar docs
#<< build
#>> install

%install
mkdir -p $RPM_BUILD_ROOT/%{_javadir}
cp lib/*.jar $RPM_BUILD_ROOT/%{_javadir}
mkdir -p $RPM_BUILD_ROOT/%{_javadocdir}
cp -r docs/docs/* $RPM_BUILD_ROOT/%{_javadocdir}
#<< install

%clean
rm -rf $RPM_BUILD_ROOT
#>> files

%files
%defattr(-,root,root)   
%{_javadir}/*

%files javadoc
%defattr(-,root,root)   
%{_javadocdir}/*
#<< 
# vim: foldcolumn=4 foldmarker=>>,<< foldmethod=marker foldlevel=42

%changelog
* Mon Jun 18 2007 dbornkessel@suse.de
- added patch for changed sasl-function signatures
* Wed May 02 2007 dbornkessel@suse.de
- added unzip to BuildRequires
* Sun Apr 22 2007 aj@suse.de
- Use texlive.
* Thu Jan 11 2007 dbornkessel@suse.de
- first version (dependency for tomcat55)
openSUSE Build Service is sponsored by