Browse Source

fix library usage under Linux

Ralf S. Engelschall 24 years ago
parent
commit
63169bf993
1 changed files with 14 additions and 2 deletions
  1. 14 2
      tsmc/tsmc.spec

+ 14 - 2
tsmc/tsmc.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EXP]
 Group:        Converter
 License:      Commercial
 Version:      4.2.1
-Release:      20020210
+Release:      20020212
 
 #   list of sources
 Source0:      ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v4r2/Linux86/v421/IP22369.tar
@@ -121,7 +121,7 @@ AutoReqProv:  no
 
     #   install required shared libraries
     case "%{l_target}" in
-        *-freebsd* | *-linux* )
+        *-freebsd* )
             %{l_shtool} install -c -m 755 \
                 lib/* $RPM_BUILD_ROOT%{l_prefix}/libexec/tsmc/lib/
             ;;
@@ -156,3 +156,15 @@ AutoReqProv:  no
 %clean
     rm -rf $RPM_BUILD_ROOT
 
+%post
+    if [ $1 -eq 1 ]; then
+        case "%{l_target}" in
+            *-linux*) 
+                echo "Please make sure you have the vendor libstdc++ 2.9 package installed:"
+                echo "- RedHat Linux 7.x:     compat-libstdc++-6.2-2.9.0.16"
+                echo "- Debian GNU/Linux 2.2: libstdc++2.9-glibc2.1"
+                echo "The resulting library file has to be named libstdc++-libc6.1-1.so.2"
+                ;;
+        esac
+    fi
+