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

# 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
Source:         %{official_name}-%{version}.tar.bz2
Patch0:         gnu-inetlib-gcc44-build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       inetlib
#ExclusiveArch: %ix86

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

    Chris Burdess

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

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

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

#>> files

# vim: foldcolumn=4 foldmarker=>>,<< foldmethod=marker foldlevel=42