File gnu-jaf.spec of Package gnu-jaf
#
# spec file for package gnu-jaf (Version 1.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnu-jaf
BuildRequires: ant antlr classpath java-1_4_2-gcj-compat-devel unzip
%define official_name activation
License: GPL v2 or later
Group: Development/Libraries/Java
AutoReqProv: on
Version: 1.0
Release: 159
Summary: GNU implementation of the JavaBeans Activation Framework
Url: http://java.sun.com/products/javabeans/glasgow/jaf.html
Source: %{official_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: jaf = %{version}
Obsoletes: jaf <= 1.1
BuildArch: noarch
%description
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™ classes. These beans
can then view, edit, print, or perform whatever other action is
required on the underlying resource.
Authors:
--------
Andrew Selkirk
Nic Ferrier
%prep
%setup -n %{official_name}-%{version}
#<< prep
#>> build
%build
CLASSPATH=$(build-classpath glibj):$CLASSPATH ant dist
#<< build
#>> install
%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
%clean
rm -rf $RPM_BUILD_ROOT
#>> files
%files
%defattr(-,root,root)
%{_javadir}/*
#<<
# vim: foldcolumn=4 foldmarker=>>,<< foldmethod=marker foldlevel=42
%changelog
* Wed May 07 2008 coolo@suse.de
- do the rename from jaf correctly
* Wed May 02 2007 dbornkessel@suse.de
- added unzip to BuildRequires
* Thu Jan 11 2007 dbornkessel@suse.de
- first version (dependency for tomcat55)