Browse Source

cleanup output of 'mysql_config --libs'

Ralf S. Engelschall 19 years ago
parent
commit
8e774ff19f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      mysql/mysql.spec

+ 6 - 1
mysql/mysql.spec

@@ -39,7 +39,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_opkg}
-Release:      20070110
+Release:      20070114
 
 #   package options
 %option       with_server      yes
@@ -192,6 +192,11 @@ AutoReqProv:  no
         AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" \
         DESTDIR=$RPM_BUILD_ROOT
 
+    #   cleanup mysql_config script
+    %{l_shtool} subst \
+        -e 's;^\(ldflags=.\).*\(.\)$;\1%{l_ldflags}\2;' \
+        $RPM_BUILD_ROOT%{l_prefix}/bin/mysql_config
+
     #   move utility 'replace', msql2mysql is patched for new path
     mv $RPM_BUILD_ROOT%{l_prefix}/bin/replace \
        $RPM_BUILD_ROOT%{l_prefix}/libexec/mysql/