Moreover, it would help the transition from Java Webstart to native packaging with RPM.
This more elaborated example should mention the following "elements":
a .desktop file for the desktop shortcut
a pre-install script to install the shortcuts (by calling xdg-desktop-icon and xdg-desktop-menu)
a script (in /usr/bin ?) to run the application, it would call "java -jar app_name.jar"
a post-install script to uninstall the shortcuts (by calling xdg-desktop-icon and xdg-desktop-menu)
a fat jar (in /usr/share/java/app_name?)
something to indicate that it requires Java (using "depends" name="java")
Maybe there is nothing to do to create the shortcuts, I don't know the native rpm build tools enough to be sure of that.
I don't know the good practices. I don't even know why you create a symbolic link in the second example, it probably allows to install several versions of the same library and to point to the latest installed one. When is it recommended to do so? What are the pros and cons?
I can contribute but I'll need some help. Don't see this as a waste of time. When it works, I'll mention it in the JOGL user's guide and I'll use it for my game.
There are currently two examples of usage relying on Ant here: http://redline-rpm.org/usage.html
They are simple to understand but a more complete example for an application packaged as a single "fat" jar would be welcome especially for the developers who have only a very few notions on Linux native packaging as you can see on StackOverflow: http://stackoverflow.com/questions/22562799/create-rpm-package-for-java-any-automatic-software
Moreover, it would help the transition from Java Webstart to native packaging with RPM.
This more elaborated example should mention the following "elements":
Maybe there is nothing to do to create the shortcuts, I don't know the native rpm build tools enough to be sure of that.
I don't know the good practices. I don't even know why you create a symbolic link in the second example, it probably allows to install several versions of the same library and to point to the latest installed one. When is it recommended to do so? What are the pros and cons?
I can contribute but I'll need some help. Don't see this as a waste of time. When it works, I'll mention it in the JOGL user's guide and I'll use it for my game.