Przeglądaj źródła

upgrade to lsof 4.62

Ralf S. Engelschall 24 lat temu
rodzic
commit
5ad2d06455
1 zmienionych plików z 9 dodań i 9 usunięć
  1. 9 9
      lsof/lsof.spec

+ 9 - 9
lsof/lsof.spec

@@ -32,12 +32,12 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [REL]
 Group:        Filesystem
 License:      BSD
-Version:      4.58
-Release:      20020206
+Version:      4.62
+Release:      20020320
 
 #   list of sources
-Source0:      ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_%{version}_W.tar.gz
-Source1:      ftp://ftp.openpkg.org/DST/lsof/lsof.sparc64-solaris2.8.bin
+Source0:      ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_%{version}.tar.gz
+Source1:      lsof_%{version}.sparc64-solaris2.8.bin
 
 #   build information
 Prefix:       %{l_prefix}
@@ -52,11 +52,11 @@ AutoReqProv:  no
    processes.
 
 %prep
-    %setup -q -c lsof-%{version}
-    %{l_tar} xf lsof_%{version}.tar
+    %setup -q -n lsof_%{version}
+    %{l_tar} xf lsof_%{version}_src.tar
 
 %build
-    cd lsof_%{version}
+    cd lsof_%{version}_src
     case "%{l_target}" in
         *-freebsd* ) platform="freebsd" ;;
         *-linux* )   platform="linux"   ;;
@@ -67,7 +67,7 @@ AutoReqProv:  no
         *-solaris2.8* )
            case "`/bin/isainfo -kv`" in
                64-bit* ) 
-                   cp %{SOURCE lsof.sparc64-solaris2.8.bin} lsof
+                   cp %{SOURCE lsof_%{version}.sparc64-solaris2.8.bin} lsof
                    skip_build=1
                    ;;
            esac
@@ -82,7 +82,7 @@ AutoReqProv:  no
     rm -rf $RPM_BUILD_ROOT
     %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
     %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man8
-    ( cd lsof_%{version}
+    ( cd lsof_%{version}_src
       %{l_shtool} install -c -s lsof $RPM_BUILD_ROOT%{l_prefix}/bin/
       %{l_shtool} install -c lsof.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
     )