소스 검색

modifying package: postgresql-7.4.1 20040207 -> 20040220

Ralf S. Engelschall 22 년 전
부모
커밋
e5eacac10a
1개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 10 4
      postgresql/postgresql.spec

+ 10 - 4
postgresql/postgresql.spec

@@ -26,7 +26,7 @@
 #   package versions
 %define       V_postgresql      7.4.1
 %define       V_libpqpp         4.0
-%define       V_libpqxx         2.1.3
+%define       V_libpqxx         2.2.0
 %define       V_pgperl          2.0.2
 %define       V_psqlodbc        07.03.0200
 
@@ -41,7 +41,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_postgresql}
-Release:      20040207
+Release:      20040220
 
 #   package options
 %option       with_cxx      no
@@ -195,6 +195,14 @@ AutoReqProv:  no
     ) || exit $?
     ln -s `pwd`/src/interfaces/libpq/*.h src/include/
     ( cd libpqxx-%{V_libpqxx}
+      ( echo "#!/bin/sh"
+        echo "case \"\$1\" in"
+        echo "   --includedir ) echo \"`pwd`/../src/include\" ;;"
+        echo "   --libdir     ) echo \"`pwd`/../src/interfaces/libpq\" ;;"
+        echo "esac"
+      ) >pg_config
+      chmod a+x pg_config
+      export PG_CONFIG=`pwd`/pg_config
       export CC="%{l_cc}"
       export CXX="%{l_cxx}"
       export CFLAGS="%{l_cflags -O}"
@@ -203,8 +211,6 @@ AutoReqProv:  no
       export LDFLAGS="%{l_ldflags}"
       export LIBS="-lssl -lcrypto -lcrypt"
       ./configure \
-          --with-postgres-lib=`pwd`/../src/interfaces/libpq \
-          --with-postgres-include=`pwd`/../src/include \
           --disable-shared
       %{l_make} %{l_mflags -O}
     ) || exit $?