1 # $Id: classpath.spec.in,v 1.2 2005/07/04 14:31:01 ziga Exp $
3 %define version_num @PACKAGE_VERSION@
6 Summary: GNU Classpath Java class libraries
8 Version: %{version_num}
9 Release: %{release_num}
10 Group: Development
/Tools
11 Copyright: GPL
+exception
12 URL: http
://www.classpath.org
/
13 BuildRoot: %{_tmppath}/%{name}-root
14 BuildRequires
: jikes
, zip
15 Packager: GNU Classpath
<classpath@gnu.org
>
16 Source: ftp
://ftp.gnu.org
/pub
/gnu
/classpath
/classpath
-%{version_num}.tar.gz
19 GNU Classpath
, Essential Libraries
for Java
, is a GNU project to create
20 free core class libraries
for use with virtual machines and compilers
21 for the Java programming language.
24 %setup -n classpath
-%{version_num}
27 pushd $
{RPM_BUILD_DIR
}/classpath
-%{version_num}
28 # Determine if we can build the GTK stuff
30 if pkg
-config
--exists 'gtk
+-2.0 >= 2.4 gthread
-2.0 >= 2.2 gdk
-pixbuf
-2.0'
; then
33 %configure --with
-jikes
--enable-jni
--$
{GTKPEER
}-gtk
-peer
38 pushd $
{RPM_BUILD_DIR
}/classpath
-%{version_num}
42 pushd $
{RPM_BUILD_ROOT
}/%{_infodir}
49 %post -p
/sbin
/ldconfig
51 %postun -p
/sbin
/ldconfig
54 rm -rf $
{RPM_BUILD_ROOT
}
58 %doc AUTHORS COPYING LICENSE README THANKYOU
60 %dir %{_datadir}/classpath
61 %{_libdir}/security
/classpath.security
62 %{_datadir}/classpath
/glibj.zip
63 %doc %{_datadir}/classpath
/api
64 %doc %{_datadir}/classpath
/examples