Hi Michal, sorry, i didn't intend you answer you directly on your personal email. Even the example spec I wrote initially is not that good anymore and should be reviewd, besides the fact that columbamail is dead - it's a shame. What are the general guidelines regarding jpackage? I noticed the macro's on the wiki. So far, I have been avoiding/removing jpackage stuff in the specs as I saw no reason for it with obs. any opinions on that matter? cheers, Denny Am Dienstag 02 November 2010, 10:30:20 schrieben Sie:
On Tuesday 02 of November 2010 10:22:36 Denny Beyer wrote:
Hi Michal, thank you for your answer, as usual, it was very helpful. And also, thank you for the great job you are doing to bring java software to opensuse. There are not many, unfortunately.
Am Montag 01 November 2010, 13:54:27 schrieb Michal Vyskocil:
On Monday 01 of November 2010 09:52:22 Denny Beyer wrote:
Dear all java packagers,
I'm having an issue with creating a start script from within my spec file.
The following line should be written to a shell script
java -jar %{_datadir}/%{name}/%{name}.jar `${@}`
to start the program, which works fine, except for the command line options. In the shell script the line looks like this:
java -jar %{_datadir}/%{name}/%{name}.jar ` `
which doesn't help. I tried several exclamation marks, but none gave me the " $@ " in the created script.
any help is much appreciated.
Hi Danny,
Here Documents [1] can suppress the variable and command expansion, so the
cat <<'EOF' > %{buildroot}/%{_bindir}/%{name} #!/bin/bash java -jar %{_datadir}/%{name}/%{name}.jar `${@}` EOF
Your line wasn't working with the ` ` before and after the ${@} as that has been interpretated as a command, which wasn't found. leaving those out, but keeping the ' ' around EOF for the cat command seemed to work. I will more dig into the links you gave. Thanks again
I started writing a wiki page about java packaging, but that is gone since the move to the new wiki, together will all the other java related pages. Someone from the wiki team might not like java and thought thats a good opportunity to get rid of that content.
Well, there is a missing information - all old articles are still available on http://old-en.opensuse.org/Category:Java. Feel free to improve the new instance.
The main page for packaging related things http://en.opensuse.org/Portal:Packaging
General guidelines http://en.opensuse.org/openSUSE:Packaging_guidelines
http://en.opensuse.org/openSUSE:Packaging_guidelines#Java http://en.opensuse.org/openSUSE:Packaging_guidelines#JPackage
It would be nice to merge at least those two articles http://old-en.opensuse.org/Java/Packaging/RPM_Macros http://old-en.opensuse.org/Java/Packaging/jpackage-utils
Regards Michal Vyskocil
regards, Denny
There are few examples, how to write the script - jedit.spec [2], which comfors to the jpackage.org standards, or the example in Java packaging guidelines [3].
[1] http://tldp.org/LDP/abs/html/here-docs.html [2] https://build.opensuse.org/package/view_file?file=jedit.spec&package=je di t& project=openSUSE%3AFactory&srcmd5=a8cda978f0fa857b3c826cd6a4b85e87 [3] http://en.opensuse.org/openSUSE:Packaging_Java
Regards Michal Vyskocil
Denny
-- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-java+help@opensuse.org