packages: stanse/stanse.sh, stanse/stanse.spec - use jpackage-utils in shel...

pawelz pawelz at pld-linux.org
Wed Apr 20 22:56:25 CEST 2011


Author: pawelz                       Date: Wed Apr 20 20:56:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use jpackage-utils in shell wrapper
- rel 0.2

---- Files affected:
packages/stanse:
   stanse.sh (1.6 -> 1.7) , stanse.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/stanse/stanse.sh
diff -u packages/stanse/stanse.sh:1.6 packages/stanse/stanse.sh:1.7
--- packages/stanse/stanse.sh:1.6	Wed Oct 14 14:38:09 2009
+++ packages/stanse/stanse.sh	Wed Apr 20 22:56:19 2011
@@ -1,8 +1,11 @@
 #!/bin/sh -e
+
+[ -r /usr/share/java-utils/java-functions ]
+. /usr/share/java-utils/java-functions
+
 # Set paths
 CLASSPATH=$(build-classpath-directory /usr/share/stanse/lib)
 CLASSPATH=$CLASSPATH:$(find-jar stanse)
-export CLASSPATH
 
 export PATH=$PATH:/usr/share/stanse/data/bin
 
@@ -13,4 +16,6 @@
 [ -e "$STANSE_HOME/data" ] || cp -a /usr/share/stanse/data $STANSE_HOME/data
 [ -e "$STANSE_HOME/properties.xml" ] || cp -a /usr/share/stanse/properties.xml $STANSE_HOME/properties.xml
 
-exec java cz.muni.stanse.Stanse "$@"
+MAIN_CLASS=cz.muni.stanse.Stanse
+
+exec run ${1:+"$@"}

================================================================
Index: packages/stanse/stanse.spec
diff -u packages/stanse/stanse.spec:1.6 packages/stanse/stanse.spec:1.7
--- packages/stanse/stanse.spec:1.6	Sat Apr 17 09:44:36 2010
+++ packages/stanse/stanse.spec	Wed Apr 20 22:56:19 2011
@@ -9,7 +9,7 @@
 Summary(pl.UTF-8):	Narzędzie do znajdowania błędów na podstawie statycznej analizy kodu.
 Name:		stanse
 Version:	1.0.0
-Release:	0.1
+Release:	0.2
 License:	GPL v2
 Group:		Development/Languages/Java
 Source0:	http://stanse.fi.muni.cz/download/%{name}-%{version}.tar.bz2
@@ -26,6 +26,7 @@
 BuildRequires:	rpmbuild(macros) >= 1.300
 BuildConflicts:	java-gcj-compat
 Requires:	gcc
+Requires:	jpackage-utils
 Requires:	make
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -159,6 +160,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2011/04/20 20:56:19  pawelz
+- use jpackage-utils in shell wrapper
+- rel 0.2
+
 Revision 1.6  2010/04/17 07:44:36  jajcus
 - do not pull java-sun via BR - icedtea6 should be enough in all (most) cases
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/stanse/stanse.sh?r1=1.6&r2=1.7&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/stanse/stanse.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list