[packman] [PM] jogl 1.1.1 (openSUSE 11.0/i586)

Toni toni at links2linux.de
Tue Dec 9 20:04:22 CET 2008


Am Dienstag, 9. Dezember 2008 schrieb Andrea Florio:
> hi toni, i'm working on scilab, and i had several problems with jogl.
>
> jar file infact is really different from the expected one..
>
> i should find "javax.media.opengl.glu" "javax.media.opengl" ecc ecc,
> instead i find different or missing path, so i investigated, and from
> the same website i found in "url" line of the spec, i downloaded source
> code i found.. here:
>
> https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=9260&expand
>Folder=9260&folderID=0
>
>
> you can download source code here:
>
> http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/jogl-1.1.1
>-src.zip
>
> with the few change made on your spec to test it in local i got a
> working jogl.jar (at least
> working with scilab)
>
> the source code package provides also "gluegen" code
>
> egrep right now, found no packages that need jogl (nr as requires, nor
> as buildrequire)
blind man :)

==> The packages aoi, HoloRacer, jmonkeyengine, Passenger needs jogl

For jmonkeyengine I have disabeld it for the moment (!), as it is not stable 
enough.

aoi could be patched for the new jogl (is in preparation)

The two games HoloRacer and Passenger needs exact this version.

But like the shared library policy for libs, it is possible to provide several 
jar-files with version-number. I did this already for substance-* packages. 
They provide two versions. The build-classpath macro from jpackage-utils can 
manage this feature.

> so i think you should fix it.
there is nothing to fix, the jogl package is fine :)
I can improve it if I find some time. So stay tuned.

If you won't wait, you can include your jogl files in your package and you're 
fine. Create a subfolder lib in your javaproject
/usr/share/java/scilab
/usr/share/java/scilab/lib

put all unpackaged jars in that lib folder and create a wrapper script like 
this
# startscript
%__cat > %{name}.sh << EOF
#!/bin/sh

# extent path for addons
export PATH=%{_libdir}/%{name}:\$PATH

# source the jpackage helpers
VERBOSE=1
. %{_javadir}-utils/java-functions

# set JAVA_* environment variables
set_javacmd
check_java_env
set_jvm_dirs
#set_options "-Xincgc -Xmx256M -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
set_options "-Xincgc -Xmx256M"

CLASSPATH=\`build-classpath scilab\`
MAIN_CLASS="yyy.xxx.zzzz"

run
EOF
%__install -dm 755 %{buildroot}%{_bindir}
%__install -m 755 %{name}.sh \
	%{buildroot}%{_bindir}

the build-claspath is workin recursive and lists all jars in the given 
subfolder.

> Thanks
> Andrea

-- 
have fun
Toni




More information about the Packman mailing list