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