classpath.spec.in 1.5 KB

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