File gnu-jaf.spec of Package gnu-jaf

# spec file for package gnu-jaf (Version 1.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-jaf
BuildRequires:  ant antlr classpath java-1_5_0-gcj-compat-devel unzip
%define       official_name activation
License:        GPL-2.0+
Group:          Development/Libraries/Java
AutoReqProv:    on
Version:        1.1.1
Release:        1
Summary:        GNU implementation of the JavaBeans Activation Framework
Source:         %{official_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       jaf = %{version}
Obsoletes:      jaf <= 1.1
BuildArch:      noarch
Conflicts:      geronimo-jaf-1_0_2-api

GNU JAF is a framework for declaring what beans operate on what MIME
type data. Content handler beans can be defined to handle particular
MIME content. The JAF unites internet standards for declaring content
with JavaBeans. The JAF defines two mechanisms within the framework.
The first, the file type map, specifies the MIME content type for a
given file. The default implementation of this uses the UNIX mime.types
format to map filename extensions to MIME types. The second mechanism,
the command map, specifies the actions that can be applied to a given
MIME content type. The default implementation of this uses the standard
mailcap format to map actions to JavaBean&#8482; classes. These beans
can then view, edit, print, or perform whatever other action is
required on the underlying resource.

    Andrew Selkirk
    Nic Ferrier

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

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

mkdir -p $RPM_BUILD_ROOT/%{_javadir}
cp activation.jar $RPM_BUILD_ROOT/%{_javadir}
ln -sf %{_javadir}/activation.jar $RPM_BUILD_ROOT/%{_javadir}/jaf.jar
#<< install

#>> files

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

* Tue Apr 28 2009
- update to 1.1.1:
  *, Updated to JAF 1.1
  *, Fixed typos
* Mon Dec 01 2008
- added a conflicts to geronimo-1_0_2-jaf-api
* Wed May 07 2008
- do the rename from jaf correctly
* Wed May 02 2007
- added unzip to BuildRequires
* Thu Jan 11 2007
- first version (dependency for tomcat55)
openSUSE Build Service is sponsored by