Import GNU Classpath (20121202).
[official-gcc.git] / libjava / classpath / scripts / classpath.spec.in
blob5363565bf1b515b9ddf2bba99546e88f2b5fde4c
1 # $Id: classpath.spec.in,v 1.3 2006-12-10 20:25:50 gnu_andrew Exp $
3 %define version_num @PACKAGE_VERSION@
4 %define release_num 1
6 Summary: GNU Classpath Java class libraries
7 Name: classpath
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
18 %description
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.
23 %prep
24 %setup -n classpath-%{version_num}
26 %build
27 pushd ${RPM_BUILD_DIR}/classpath-%{version_num}
28 # Determine if we can build the GTK stuff
29 GTKPEER='disable'
30 if pkg-config --exists 'gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0'; then
31 GTKPEER='enable'
33 %configure --with-jikes --enable-jni --${GTKPEER}-gtk-peer
34 make
35 popd
37 %install
38 pushd ${RPM_BUILD_DIR}/classpath-%{version_num}
39 %{makeinstall}
40 popd
42 pushd ${RPM_BUILD_ROOT}/%{_infodir}
43 rm -f dir
44 for i in *; do
45 mv $i classpath-$i
46 done
47 popd
49 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
53 %clean
54 rm -rf ${RPM_BUILD_ROOT}
56 %files
57 %defattr(-,root,root)
58 %doc AUTHORS COPYING LICENSE README THANKYOU
59 %{_libdir}/classpath
60 %dir %{_datadir}/classpath
61 %{_libdir}/security/classpath.security
62 %{_datadir}/classpath/glibj.zip
63 %doc %{_datadir}/classpath/api
64 %doc %{_datadir}/classpath/examples
65 %doc %{_infodir}/*