Browse Source

forward port with_conversion option

Ralf S. Engelschall 17 years ago
parent
commit
2e74d7dd83
1 changed files with 11 additions and 1 deletions
  1. 11 1
      postgresql/postgresql.spec

+ 11 - 1
postgresql/postgresql.spec

@@ -48,7 +48,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_postgresql}
-Release:      20080612
+Release:      20080704
 
 #   package options
 %option       with_server       yes
@@ -64,6 +64,7 @@ Release:      20080612
 %option       with_mysqlcompat  no
 %option       with_int_datetime no
 %option       with_xml          no
+%option       with_conversion   no
 
 #   list of sources
 Source0:      ftp://ftp.postgresql.org/pub/source/v%{V_postgresql_dir}/postgresql-%{V_postgresql_dist}.tar.bz2
@@ -230,9 +231,18 @@ AutoReqProv:  no
     %{l_shtool} subst \
         -e 's;^\(sqlmansect *=\).*$;\1 7;' \
         src/makefiles/Makefile.solaris
+%if "%{with_conversion}" == "yes"
+    %{l_shtool} subst \
+        -e '/^SQLSCRIPT =/{x;s/.*/enable_shared = yes/;G;}' \
+        src/backend/utils/mb/conversion_procs/Makefile
+    %{l_shtool} subst \
+        -e '/^all:/{x;s/.*/enable_shared = yes/;G;}' \
+        src/backend/utils/mb/conversion_procs/proc.mk
+%else
     %{l_shtool} subst \
         -e 's;$(INSTALL_SHLIB);#$(INSTALL_SHLIB);g' \
         src/backend/utils/mb/conversion_procs/proc.mk
+%endif
     %{l_shtool} subst \
         -e 's;# Shared library stuff;enable_shared = yes;g' \
         src/pl/plpgsql/src/Makefile