File gnu-inetlib.spec of Package gnu-inetlib

#
# spec file for package gnu-inetlib (Version 1.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-inetlib
BuildRequires:  ant antlr classpath java-1_4_2-gcj-compat-devel unzip
%define official_name inetlib
License:        GPL-2.0+
Group:          Development/Libraries/Java
AutoReqProv:    on
Version:        1.1
Release:        228
Summary:        Library of clients for common internet protocols
Url:            http://www.gnu.org/software/classpath/inetlib.html
Source:         %{official_name}-%{version}.tar.bz2
Patch0:         gnu-inetlib-gcc44-build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       inetlib
#ExclusiveArch: %ix86

%description
GNU inetlib is a library of clients for common internet protocols. The
following protocols are currently supported: Hypertext Transfer
Protocol (HTTP) File Transfer Protocol (FTP) Simple Mail Transfer
Protocol (SMTP) Internet Message Access Protocol (IMAP) Post Office
Protocol (POP) Network News Transfer Protocol (NNTP) Lightweight
Directory Access Protocol (LDAP) (alpha) Gopher Finger The inetlib
library is similar in intent to the Python internet protocols library -
the API is as close as possible to the intent of the underlying
protocol design. This allows for very efficient coding of user agents.
Additionally, inetlib includes URLStreamHandler implementations for
some of the protocols. These can be used to add support for the
corresponding URL scheme to the java.net.URL class.



Authors:
--------
    Chris Burdess

%prep
%setup -q -n %{official_name}
%patch0 -p1 
#<< prep
#>> build

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

%install
mkdir -p $RPM_BUILD_ROOT/%{_javadir}
cp %{official_name}.jar $RPM_BUILD_ROOT/%{_javadir}
#<< install

%clean
rm -rf $RPM_BUILD_ROOT
#>> files

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

%changelog