Hello,
sorry for double posting to devel and java-devel but the last seems not so crowded.
On 24 May 2012 12:04, Simone Caronni negativo17@gmail.com wrote:
following the mail in fedora-devel, I'm posting here some progress in packaging the Guacamole stack for Fedora. I hope to get some advice from Fedora Java gurus...
guacamole-common and guacamole-common-ext are now into rawhide and I've been struggling a couple of days for the next parts. I need some help with the guacamole-common-js [1][2]; the last step before packaging the web application itself [3].
The build itself is normally generated with the command "maven package"; so replacing it with "mvn-rpmbuild package" generates the following file.
How's the supposed guideline for packaging it? Where should I put the zip file and how should the spec file be structured? All the other java classes for Guacamole are into jars in /usr/share/java/guacamole/.
I can't find any useful information for it in the Java packaging pages [4]. I tried to look at at least 20 java packages in fedora and could not find one that was not packaging a jar file.
$ unzip -l ./target/guacamole-common-js-0.6.0-guacamole-common-js.zip Archive: ./target/guacamole-common-js-0.6.0-guacamole-common-js.zip Length Date Time Name --------- ---------- ----- ---- 0 05-05-2012 04:32 guacamole-common-js/ 17214 05-05-2012 04:32 guacamole-common-js/mouse.js 31710 05-05-2012 04:32 guacamole-common-js/guacamole.js 17640 05-05-2012 04:32 guacamole-common-js/oskeyboard.js 12621 05-05-2012 04:32 guacamole-common-js/keyboard.js 24977 05-05-2012 04:32 guacamole-common-js/tunnel.js 37152 05-05-2012 04:32 guacamole-common-js/layer.js --------- ------- 141314 7 files
[1] http://guac-dev.org/guacamole-common-js [2] http://slaanesh.fedorapeople.org/guacamole-common-js-0.6.0-1.fc17.src.rpm [3] http://guac-dev.org/guacamole [4] https://fedoraproject.org/wiki/Packaging:Java
Hi Simone,
----- Original Message -----
From: "Simone Caronni" negativo17@gmail.com To: java-devel@lists.fedoraproject.org Sent: Tuesday, June 5, 2012 4:46:45 AM Subject: [fedora-java] Guacamole Java Web application
Hello,
sorry for double posting to devel and java-devel but the last seems not so crowded.
On 24 May 2012 12:04, Simone Caronni negativo17@gmail.com wrote:
following the mail in fedora-devel, I'm posting here some progress in packaging the Guacamole stack for Fedora. I hope to get some advice from Fedora Java gurus...
guacamole-common and guacamole-common-ext are now into rawhide and I've been struggling a couple of days for the next parts. I need some help with the guacamole-common-js [1][2]; the last step before packaging the web application itself [3].
The build itself is normally generated with the command "maven package"; so replacing it with "mvn-rpmbuild package" generates the following file.
How's the supposed guideline for packaging it? Where should I put the zip file and how should the spec file be structured? All the other java classes for Guacamole are into jars in /usr/share/java/guacamole/.
I can't find any useful information for it in the Java packaging pages [4]. I tried to look at at least 20 java packages in fedora and could not find one that was not packaging a jar file.
Warning: I know nothing about packaging a web app, so please take all that I say with several grains of salt! ;)
It seems that in the past there was some effort at standards for packaging javascript libraries[1]. But even these do not seem to cover your case, or at least not without you needing to patch the upstream build extensively, and the guidelines effort seems to have gone stale.
Maybe some others with more Guru-like qualities would have a different opinion, but here is what I would do I think:
1. Patch the build to produce a .jar instead of .zip (with the same contents; a .jar is not much more than .zip with different extension).
2. Install this .jar and related .pom as you normally would.
3. Patch the webapp itself if needed to find the .jar instead of .zip
This is assuming that the webapp needs to use maven to find this dependency. Maybe there is some better way. Like put the zip in %{_datadir}/%{name} and configure the webapp build to find it there? Or, maybe the %add_maven_depmap macro can somehow be coaxed into mapping to the .zip in %{_datadir} and no renaming necessary? Just trying to throw out some ideas.
Good luck, hope this helps, or at least does not harm!!
jon
[1] https://fedoraproject.org/wiki/JavaScript_libraries_packaging_guideline_draf...
Hello,
thank you very much for your input. I used the packaging draft guidelines you pointed out, as I'm thinking of asking FPC for a review of the packaging drafts for javascript and web applications.
I filed the review here, it is a simple rpm containing 6 Java scripts:
https://bugzilla.redhat.com/show_bug.cgi?id=831975
This is the only prerequisite I miss for the main Guacamole Web Application! Will you take it for review?
Thanks, --Simone
On 6 June 2012 02:18, Jon VanAlten jvanalte@redhat.com wrote:
Hi Simone,
----- Original Message -----
From: "Simone Caronni" negativo17@gmail.com To: java-devel@lists.fedoraproject.org Sent: Tuesday, June 5, 2012 4:46:45 AM Subject: [fedora-java] Guacamole Java Web application
Hello,
sorry for double posting to devel and java-devel but the last seems not so crowded.
On 24 May 2012 12:04, Simone Caronni negativo17@gmail.com wrote:
following the mail in fedora-devel, I'm posting here some progress in packaging the Guacamole stack for Fedora. I hope to get some advice from Fedora Java gurus...
guacamole-common and guacamole-common-ext are now into rawhide and I've been struggling a couple of days for the next parts. I need some help with the guacamole-common-js [1][2]; the last step before packaging the web application itself [3].
The build itself is normally generated with the command "maven package"; so replacing it with "mvn-rpmbuild package" generates the following file.
How's the supposed guideline for packaging it? Where should I put the zip file and how should the spec file be structured? All the other java classes for Guacamole are into jars in /usr/share/java/guacamole/.
I can't find any useful information for it in the Java packaging pages [4]. I tried to look at at least 20 java packages in fedora and could not find one that was not packaging a jar file.
Warning: I know nothing about packaging a web app, so please take all that I say with several grains of salt! ;)
It seems that in the past there was some effort at standards for packaging javascript libraries[1]. But even these do not seem to cover your case, or at least not without you needing to patch the upstream build extensively, and the guidelines effort seems to have gone stale.
Maybe some others with more Guru-like qualities would have a different opinion, but here is what I would do I think:
- Patch the build to produce a .jar instead of .zip (with the same
contents; a .jar is not much more than .zip with different extension).
Install this .jar and related .pom as you normally would.
Patch the webapp itself if needed to find the .jar instead of .zip
This is assuming that the webapp needs to use maven to find this dependency. Maybe there is some better way. Like put the zip in %{_datadir}/%{name} and configure the webapp build to find it there? Or, maybe the %add_maven_depmap macro can somehow be coaxed into mapping to the .zip in %{_datadir} and no renaming necessary? Just trying to throw out some ideas.
Good luck, hope this helps, or at least does not harm!!
jon
[1] https://fedoraproject.org/wiki/JavaScript_libraries_packaging_guideline_draf...
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
----- Original Message -----
From: "Simone Caronni" negativo17@gmail.com
<SNIP>
https://bugzilla.redhat.com/show_bug.cgi?id=831975
This is the only prerequisite I miss for the main Guacamole Web Application! Will you take it for review?
Hi Simone,
Sorry for slow reply, I had a few days away from keyboard ;)
(and then a few really busy days to make up for it!)
I would be happy to review this final piece for you, but won't get to it until next week.
cheers, jon
Hello,
On 20 June 2012 16:54, Jon VanAlten jvanalte@redhat.com wrote:
Sorry for slow reply, I had a few days away from keyboard ;)
(and then a few really busy days to make up for it!)
I would be happy to review this final piece for you, but won't get to it until next week.
No problem, thank you very much for the reply. I will try to post the main Java Web application for review tomorrow and make 831975 a blocker for it.
As packaging Java web apps in Fedora is still rough [1] I don't know with what I will come out :D
[1] https://fedoraproject.org/wiki/PackagingDrafts/JavaWebApps
Regards, --Simone
java-devel@lists.fedoraproject.org