[opensuse-packaging] Packaging Java App (tvbrowser beta)
Hello Mates, i'm trying to Package the 3.0 beta2 for openSUSE. My Spec i have attached. But while build Proscess he says to me:http://pastebin.com/LWvaRbnE All included (and loaded) Packages in my OBS Process can seen in the Spec. Has anyone a idea, how to fix this? -- Sincerely yours Sascha Manns open-slx GmbH openSUSE Community & Support Agent openSUSE Marketing Team Blog: http://saigkill.wordpress.com Web: http://www.open-slx.de (openSUSE Box Support German) Web: http://www.open-slx.com (openSUSE Box Support English)
Am Montag, 26. April 2010 schrieb Sascha 'saigkill' Manns:
Hello Mates,
i'm trying to Package the 3.0 beta2 for openSUSE. My Spec i have attached.
But while build Proscess he says to me:http://pastebin.com/LWvaRbnE
All included (and loaded) Packages in my OBS Process can seen in the Spec.
Has anyone a idea, how to fix this?
if you grab my spec-fle and disable the patch, you should not delete the "inlined" jar files ... so recreate the patch and/or remove this sequence in the spec-file: pushd lib for i in commons-codec commons-lang commons-net jakarta-oro \ forms l2fprod looks skinlf; do %__rm $i* done %__rm bsh*.jar ln -s %{_javadir}/bsh2/*.jar . popd as my patch points to the system installed jars in /usr/share/java and as a side-note: it is not very polite to remove my copyright statement: # Copyright (c) 2006-2009 oc2pus # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments to toni@links2linux.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello oc2pus, Am Montag, 26. April 2010 12:56:33 wrote oc2pus@arcor.de:
Has anyone a idea, how to fix this?
if you grab my spec-fle and disable the patch, you should not delete the "inlined" jar files ...
so recreate the patch and/or remove this sequence in the spec-file: pushd lib for i in commons-codec commons-lang commons-net jakarta-oro \ forms l2fprod looks skinlf; do %__rm $i* done %__rm bsh*.jar ln -s %{_javadir}/bsh2/*.jar . popd That was it. Now it builds perfectly :-)
and as a side-note: it is not very polite to remove my copyright statement: Sure. Excuse me. I have readded your Statement.... -- Sincerely yours
Sascha Manns open-slx GmbH openSUSE Community & Support Agent openSUSE Marketing Team Blog: http://saigkill.wordpress.com Web: http://www.open-slx.de (openSUSE Box Support German) Web: http://www.open-slx.com (openSUSE Box Support English)
Am Montag, 26. April 2010 schrieb Sascha 'saigkill' Manns:
Hello oc2pus,
Am Montag, 26. April 2010 12:56:33 wrote oc2pus@arcor.de:
Has anyone a idea, how to fix this?
if you grab my spec-fle and disable the patch, you should not delete the "inlined" jar files ...
so recreate the patch and/or remove this sequence in the spec-file: pushd lib for i in commons-codec commons-lang commons-net jakarta-oro \ forms l2fprod looks skinlf; do %__rm $i* done %__rm bsh*.jar ln -s %{_javadir}/bsh2/*.jar . popd
That was it. Now it builds perfectly :-) If you use the "inlined" jars of tvbrowser instead of the system installed ones, you'll need als to change the start-script: # startscript %__cat > %{name}.sh << EOF #!/bin/bash echo "TV-Browser starting ..."
# source the jpackage helpers VERBOSE=1 . %{_javadir}-utils/java-functions # set JAVA environment set_javacmd check_java_env set_jvm_dirs # set CLASSPATH CLASSPATH1=\`build-classpath bsh2 jakarta-commons-codec jakarta-commons-lang jakarta-commons-net oro\` CLASSPATH2=\`build-classpath forms l2fprod-common liquidlnf looks2 skinlf\` CLASSPATH3=\`build-classpath %{name}\` CLASSPATH=\$CLASSPATH1:\$CLASSPATH2:\$CLASSPATH3 # main-class MAIN_CLASS="tvbrowser.TVBrowser" # options set_options "-Dpropertiesfile=%{_javadir}/%{name}/linux.properties" set_flags "-Xms16m -Xmx128m" # start application cd %{_javadir}/%{name} run \$@ echo "TV-Browser TERMINATED." EOF The three CLASSPATHx statements can be shortened to: CLASSPATH=\`build-classpath %{name}\` as the tvbrowser build.xml packs all classes and helper jarfiles to one big tvbrowser.jar. And of course a lot of Requires/BuildRequires are not needed.
and as a side-note: it is not very polite to remove my copyright statement:
Sure. Excuse me. I have readded your Statement....
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* oc2pus@arcor.de (oc2pus@arcor.de) [20100426 14:21]:
instead of the system installed ones
But that is against distribution guidelines stating you should use system installed resources as much as possible. main argument for that is, that it eases security updates. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Montag, 26. April 2010 schrieb Philipp Thomas:
* oc2pus@arcor.de (oc2pus@arcor.de) [20100426 14:21]:
instead of the system installed ones
But that is against distribution guidelines stating you should use system installed resources as much as possible. main argument for that is, that it eases security updates. I know :)
FYI, in my actual packman package all possible system-installed jars are used.
Philipp
have fun Toni -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
oc2pus@arcor.de
-
Philipp Thomas
-
Sascha 'saigkill' Manns