浏览代码

use %option, use new no-source feature

Ralf S. Engelschall 23 年之前
父节点
当前提交
59b3766f22
共有 1 个文件被更改,包括 14 次插入12 次删除
  1. 14 12
      j2se/j2se.spec

+ 14 - 12
j2se/j2se.spec

@@ -32,35 +32,36 @@
 %define       V_bsd_dist   1.3.1p7_1
 %define       V_bsd_fsys   1.3.1
 
-#   package options
-%ifndef       with_native
-%define       with_native  yes
-%endif
-
 #   package information
 Name:         j2se
 Summary:      Java 2 Platform, Standard Edition (J2SE) 1.3
 URL:          http://java.sun.com/j2se/
 Vendor:       Sun Microsystems, Inc.
 Packager:     The OpenPKG Project
-Distribution: OpenPKG [PRIV]
+Distribution: OpenPKG [EVAL]
 Group:        Language
 License:      Commercial
 Version:      %{V_openpkg}
-Release:      20021110
+Release:      20030108
+
+#   package options
+%option       with_native  yes
 
 #   list of sources
-Source0:      j2sdk-%{V_sol_dist}-solaris-sparc.sh
-Source1:      j2sdk-%{V_lnx_dist}-linux-i586.bin
-Source2:      j2sdk-%{V_bsd_dist}-freebsd-ix86.tar.bz2
+Source0:      http://java.sun.com/j2se/::/j2sdk-%{V_sol_dist}-solaris-sparc.sh
+Source1:      http://java.sun.com/j2se/::/j2sdk-%{V_lnx_dist}-linux-i586.bin
+Source2:      http://java.sun.com/j2se/::/j2sdk-%{V_bsd_dist}-freebsd-ix86.tar.bz2
 Source3:      rc.%{name}
 Source4:      %{name}.patch
+%NoSource     0
+%NoSource     1
+%NoSource     2
 
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020714
-PreReq:       OpenPKG, openpkg >= 20020714
+BuildPreReq:  OpenPKG, openpkg >= 20030108
+PreReq:       OpenPKG, openpkg >= 20030108
 AutoReq:      no
 AutoReqProv:  no
 Provides:     JDK, JRE
@@ -75,6 +76,7 @@ Provides:     JDK, JRE
     Java programming language.
 
 %prep
+    %integrity
     %setup -q -c %{name} -T
 
 %build