File jikes.spec of Package jikes

#
# spec file for package jikes (Version 1.22)
#
# Copyright (c) 2005 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:         jikes
BuildRequires: gcc-c++
License:      IBM Public License, Other License(s), see package
Group:        Development/Languages/Java
Autoreqprov:  on
Requires:     jre1.1.x
Version:      1.22
Release:      5
URL:          http://ibm.com/developerworks/oss/jikes/
Source0:      %{name}-%{version}.tar.bz2
Patch0:       %{name}-%{version}-uninitialized-variables.patch
Patch1:       %{name}-%{version}-strict_aliasing.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Summary:      IBM Java compiler

%description
Jikes(TM) is a compiler that translates Java(TM) source files as
defined in The Java Language Specification into the bytecode
instruction set and binary format defined in The Java Virtual Machine
Specification.

You may wonder why the world needs another Java compiler, considering
that Sun provides javac free with its SDK. Jikes has four advantages
that make it a valuable contribution to the Java community:

* Open source. Jikes is OSI Certified Open Source Software. OSI
   Certified is a certification mark of the Open Source Initiative.

* Strictly Java compatible. Jikes strives to adhere to both The Java
   Language Specification and The Java Virtual Machine Specification
   as tightly as possible, and does not support subsets, supersets,
   or other variations of the language. The FAQ describes some of
   the side effects of this strict language conformance.

* High performance. Jikes is a high performance compiler, making it
   ideal for use with larger projects.

* Dependency analysis. Jikes performs a dependency analysis on your
   code that provides two very useful features: Incremental builds
   and makefile generation.

Please note that you have to set CLASSPATH correctly to use jikes.



Authors:
--------
    Philippe Charles <charles@watson.ibm.com>
    Ken Coar <Ken.Coar@Golux.Com>
    Michael Ernst <mernst@cs.washington.edu>
    Dave Shields <shields@watson.ibm.com>
    Vadim Zaliva <lord@crocodile.org>

%prep
%setup -q
%patch0
%patch1
cp -v  doc/license.htm license.html

%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf -I src/m4 --force --install
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --mandir=%{_mandir} \
            --prefix=%{_prefix} \
            --infodir=%{_infodir} \
            --sysconfdir=%{_sysconfdir}
make %{?jobs:-j%jobs}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
#
rm $RPM_BUILD_ROOT/%{_datadir}/doc/%name-%version/license.htm

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc  AUTHORS  COPYING  ChangeLog  NEWS  README  TODO doc/license.htm
%{_mandir}/man1/jikes.1.gz
%{_prefix}/include/*
%{_bindir}/jikes

%changelog -n jikes
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 19 2005 - dbornkessel@suse.de
- minor adjustments to avoid "strict aliasing" and "uninitialized variables" warnings
* Fri Feb 18 2005 - skh@suse.de
- updated to version 1.22:
  * supports compilation using the rt.jar shipped with the
  released version of Java 5.0
* Wed Sep 01 2004 - pmladek@suse.cz
- updated to version 1.21
  * correctly detects an attempt to use a non-static member class from a
  static one, without proper qualification
  * new command-line options generalize the old -nowarn/+Z
  * the default on vs. off state of several warnings added in 1.19 have been
  changed, by popular demand
  * etc., see /usr/share/doc/packages/jikes/NEWS for more details
- enabled parallel build
- used autoreconf instead of the single utils like aclocal, automake
- removed the unneeded file INSTALL from documentation
* Wed Mar 03 2004 - pmladek@suse.cz
- updated to version 1.19
- m4 marcos are included in the original source tar-ball again
- removed obsolete patch which fixed aclocal.m4
- fixed usage of aclocal
- used %%_prefix and %%_sysconfdir macros
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Tue May 27 2003 - pmladek@suse.cz
- removed license.htm from buildroot (it is packaged another way)
* Wed Feb 05 2003 - novak@suse.cz
- updated to version 1.18
- updated m4 macros from CVS
* Wed Aug 07 2002 - pmladek@suse.cz
- updated to version 1.16
- updated m4 macros from CVS
- removed obsolete axp patch (it is fixed in this version)
- removed obsolete ia64 patch (it is no longer needed)
* Wed Dec 12 2001 - pmladek@suse.cz
- updated to version 1.15, bugfix release
- updated m4 macros from CVS
- removed obsolete namespace patch, gcc works now
- added /usr/include/jikesapi.h to filelist
* Fri Nov 09 2001 - pmladek@suse.cz
- fixed to compile with automake 1.5
* Thu Sep 20 2001 - pmladek@suse.cz
- fixed requires - jikes works with all javas
* Mon Aug 13 2001 - pmladek@suse.cz
- fixed to compile on i386:
  * compiled with namespace on
- fixed to compile on ia64:
  * added sources of autoconf macros from jikes CVS
  * ugly fix through bug in autoconf
- fixed to compile on axp:
  * renamed variable NAN which is defined as macro in math.h
- cleaned up specfile
* Fri May 18 2001 - pblaha@suse.cz
- upadte on 1.14
* Wed Nov 29 2000 - aj@suse.de
- Fix for compilation with glibc 2.2.
* Wed Sep 20 2000 - smid@suse.cz
- upgrade to 1.12
* Thu Jun 08 2000 - cihlar@suse.cz
- added %%clean
* Thu Apr 20 2000 - smid@suse.cz
- add documentation which was unfortunetly removed
* Thu Apr 20 2000 - smid@suse.cz
- buildroot added
* Mon Jan 17 2000 - aj@suse.de
- /usr/man -> /usr/share/man
* Wed Oct 20 1999 - aj@suse.de
- Fixed configure and make calls.
* Tue Oct 19 1999 - aj@suse.de
- Added a require for java_runtime, updated pac file.
* Tue Oct 19 1999 - aj@suse.de
- created package (version 1.06)