Browse Source

upgrading package: supose 0.4.0.0RC2 -> 0.5.0a1.165

Ralf S. Engelschall 17 years ago
parent
commit
8f3207b16b
2 changed files with 15 additions and 16 deletions
  1. 1 7
      supose/supose.sh
  2. 14 9
      supose/supose.spec

+ 1 - 7
supose/supose.sh

@@ -3,14 +3,8 @@
 ##  supose.sh -- SupoSE CLI wrapper
 ##
 
-CP=""
-for jar in @l_prefix@/libexec/supose/*.jar; do
-    [ ".$CP" != . ] && CP="$CP:"
-    CP="$CP$jar"
-done
 exec @l_prefix@/bin/java \
     -Vsun-jdk \
-    -cp "$CP" \
-    com.soebes.supose.cli.SuposeCLI \
+    -jar @l_prefix@/libexec/supose/supose.jar \
     ${1+"$@"}
 

+ 14 - 9
supose/supose.spec

@@ -21,21 +21,25 @@
 ##  SUCH DAMAGE.
 ##
 
+#   package versions
+%define       V_dist  0.5.0-alpha-1-165
+%define       V_opkg  0.5.0a1.165
+
 #   package information
 Name:         supose
 Summary:      Subversion Repository Searching Tool
-URL:          http://supose.soebes.de/
+URL:          http://redmine.soebes.de/
 Vendor:       SoEBeS
 Packager:     OpenPKG Foundation e.V.
 Distribution: OpenPKG Community
 Class:        EVAL
 Group:        SCM
 License:      GPL
-Version:      0.4.0.0RC2
-Release:      20080327
+Version:      %{V_opkg}
+Release:      20090117
 
 #   list of sources
-Source0:      http://download.soebes.de/SupoSE-%{version}.tar.gz
+Source0:      http://redmine.soebes.de/attachments/download/20/supose-%{V_dist}.one-jar.jar
 Source1:      supose.sh
 
 #   build information
@@ -53,13 +57,13 @@ AutoReqProv:  no
 
 %track
     prog supose = {
-        version   = %{version}
-        url       = http://supose.soebes.de/wiki/Download
-        regex     = SupoSE-(__VER__(?:RC\d+)?)\.tar\.gz
+        version   = %{V_dist}
+        url       = http://redmine.soebes.de/projects/list_files/supose
+        regex     = supose-(__VER__)\.jar
     }
 
 %prep
-    %setup -q -c
+    %setup -q -T -c
 
 %build
 
@@ -71,7 +75,8 @@ AutoReqProv:  no
     %{l_shtool} install -c -m 755 %{l_value -s -a} \
         %{SOURCE supose.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/supose
     %{l_shtool} install -c -m 644 \
-        lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/supose/
+        %{SOURCE supose-%{V_dist}.one-jar.jar} \
+        $RPM_BUILD_ROOT%{l_prefix}/libexec/supose/supose.jar
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
 
 %files -f files