Name: jogl Version: 1.1.1 Release: 1%{?dist} Summary: Java bindings for the OpenGL API Group: Development/Libraries License: BSD URL: http://jogl.dev.java.net Source0: http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/jogl-1.1.1a-src.zip Source1: %{name}.properties Source2: gluegen-1.0.20102502svn.tar.gz Patch0: antlr-properties.patch Patch1: no-solaris.patch Patch2: X11R6.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ant-antlr BuildRequires: java-devel >= 1:1.6 BuildRequires: jpackage-utils BuildRequires: mesa-libGLU-devel BuildRequires: libX11-devel BuildRequires: gtkglext-devel BuildRequires: libXt-devel BuildRequires: libXxf86vm-devel BuildRequires: xorg-x11-proto-devel Requires: jpackage-utils Requires: java >= 1:1.6 Requires: gluegen %{?_with_Cg:BuildRequires: Cg} %description The JOGL project hosts the development version of the Java™ Binding for the OpenGL® API (JSR-231), and is designed to provide hardware-supported 3D graphics to applications written in Java. JOGL provides full access to the APIs in the OpenGL 2.0 specification as well as nearly all vendor extensions, and integrates with the AWT and Swing widget sets. It is part of a suite of open-source technologies initiated by the Game Technology Group at Sun Microsystems. %package javadoc Summary: Javadoc for jogl Group: Development/Java %description javadoc Javadoc for jogl. %package manual Summary: User documetation for jogl Group: Development/Java %description manual Usermanual for jogl %prep %setup -q -n %{name} rm -rdf gluegen tar -zxvf %{SOURCE2} %patch0 -p1 -b .antlr-properties.patch %patch1 -p1 -b .no-solaris.patch %patch2 -p1 -b .X11R6 %build cd make export OPT_JAR_LIST="antlr ant/antlr" export CLASSPATH=$(build-classpath antlr ant/ant-antlr) %ant \ -Duser.home=%{_topdir}/SOURCES \ -Dantlr.jar=$(build-classpath antlr) \ all \ javadoc.dev.x11 cd .. rm -rf %{buildroot} # jars mkdir -p %{buildroot}%{_javadir} install -pm 0644 build/%{name}.jar \ %{buildroot}%{_javadir}/%{name}-%{version}.jar pushd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done popd # native lib install -dm 755 %{buildroot}%{_libdir} install -m 644 build/obj/lib*.so \ %{buildroot}%{_libdir} # javadoc install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version} cp -pr javadoc_jogl_dev/* \ %{buildroot}%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink %clean rm -rf %{buildroot} %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %files %defattr(644,root,root,755) %{_javadir}/*.jar %attr(755,root,root) %{_libdir}/libjogl.so %attr(755,root,root) %{_libdir}/libjogl_awt.so %files javadoc %defattr(-,root,root) %doc %{_javadocdir}/%{name}-%{version} %ghost %doc %{_javadocdir}/%{name} %files manual %defattr(-,root,root) %doc doc/* %changelog * Sat Feb 20 2010 Henrique Junior and Sylvestre Lendru - 1.1.1-1 - Initial package.