Browse Source

try to be more precise in platform checks and especially try to support Solaris/x86

Ralf S. Engelschall 22 years ago
parent
commit
54ad93744b
1 changed files with 6 additions and 4 deletions
  1. 6 4
      nn/nn.spec

+ 6 - 4
nn/nn.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
 Group:        News
 License:      BSD-style
 Version:      6.6.5
-Release:      20030918
+Release:      20031023
 
 #   list of sources
 Source0:      ftp://ftp.nndev.org/pub/nn-6.6/nn-%{version}.tar.Z
@@ -56,9 +56,11 @@ AutoReqProv:  no
 %build
     S="template"; M="template"
     case "%{l_platform -t}" in
-        *-freebsd* ) S="freebsd"; M="i80386" ;;
-        *-linux*   ) S="linux";   M="i80386" ;;
-        *-sunos*   ) S="sunos5";  M="sparc"  ;;
+        i?86-freebsd* ) S="freebsd"; M="i80386" ;;
+        i?86-linux*   ) S="linux";   M="i80386" ;;
+        sun4*-sunos5* ) S="sunos5";  M="sparc"  ;;
+        i?86*-sunos5* ) S="sunos5";  M="i80386" ;;
+        * ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;;
     esac
     %{l_shtool} install -c -m 644 \
         -e "s;s-sunos5.h;s-${S}.h;" \