Browse Source

add support for SuSE

Ralf S. Engelschall 23 years ago
parent
commit
5e314e762d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      perl/perl.spec

+ 6 - 1
perl/perl.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [REL]
 Group:        Language
 License:      Artistic or GPL
 Version:      5.6.1
-Release:      20020412
+Release:      20020425
 
 #   list of sources
 Source0:      ftp://ftp.cpan.org/pub/CPAN/src/%{name}-%{version}.tar.gz
@@ -107,8 +107,13 @@ AutoReqProv:  no
                 v=`/usr/bin/dpkg -l binutils | grep binutils | awk '{ print $3; }'`
             elif [ -f /etc/redhat-release ]; then
                 v=`/bin/rpm -q --qf '%{VERSION}' binutils`
+            elif [ -f /etc/SuSE-release ]; then
+                v=`/bin/rpm -q --qf '%{VERSION}' binutils`
             else
                 v=`(rpm -q --qf '%{VERSION}' binutils) 2>/dev/null`
+                if [ ".$v" = . ]; then
+                    v=`(ld --version | grep "^GNU ld " | sed -e 's;^GNU ld ;;') 2>/dev/null`
+                fi
             fi
             case "$v" in
                 2.1[1-9].* ) ;;