craigwblake / redline

Pure Java Rpm Library
http://redline-rpm.org
MIT License
128 stars 97 forks source link

Provide a more elaborated example of usage for an application packaged as a fat jar #50

Open ghost opened 10 years ago

ghost commented 10 years ago

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.

ghost commented 10 years ago

I succeeded in doing most of that by myself: http://jogamp.org/wiki/index.php/Foreign_Packaging#Redline

In my humble opinion, the "usage" web page should be updated as it doesn't mention any third party library.