blob: 50e975d58d53709e107c7b75d06c03f17155acf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $Id: classpath.spec.in,v 1.2 2005-07-04 14:31:01 ziga Exp $
%define version_num @PACKAGE_VERSION@
%define release_num 1
Summary: GNU Classpath Java class libraries
Name: classpath
Version: %{version_num}
Release: %{release_num}
Group: Development/Tools
Copyright: GPL+exception
URL: http://www.classpath.org/
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: jikes, zip
Packager: GNU Classpath <classpath@gnu.org>
Source: ftp://ftp.gnu.org/pub/gnu/classpath/classpath-%{version_num}.tar.gz
%description
GNU Classpath, Essential Libraries for Java, is a GNU project to create
free core class libraries for use with virtual machines and compilers
for the Java programming language.
%prep
%setup -n classpath-%{version_num}
%build
pushd ${RPM_BUILD_DIR}/classpath-%{version_num}
# Determine if we can build the GTK stuff
GTKPEER='disable'
if pkg-config --exists 'gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0'; then
GTKPEER='enable'
fi
%configure --with-jikes --enable-jni --${GTKPEER}-gtk-peer
make
popd
%install
pushd ${RPM_BUILD_DIR}/classpath-%{version_num}
%{makeinstall}
popd
pushd ${RPM_BUILD_ROOT}/%{_infodir}
rm -f dir
for i in *; do
mv $i classpath-$i
done
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING LICENSE README THANKYOU
%{_libdir}/classpath
%dir %{_datadir}/classpath
%{_libdir}/security/classpath.security
%{_datadir}/classpath/glibj.zip
%doc %{_datadir}/classpath/api
%doc %{_datadir}/classpath/examples
%doc %{_infodir}/*
|