Browse Source

libpq-12.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12240 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 4 years ago
parent
commit
9422a1d073
1 changed files with 13 additions and 8 deletions
  1. 13 8
      lib/libp/libpq/libpq-vl.spec

+ 13 - 8
lib/libp/libpq/libpq-vl.spec

@@ -7,7 +7,7 @@
 %define nls 1
 %define pam 1
 
-%define pgver 10
+%define pgver 12
 %define pq_soname 5
 %define ecpg_soname 6
 
@@ -15,11 +15,11 @@ Summary: The shared libraries required for any PostgreSQL clients.
 Summary(ja): PostgreSQL クライアントに必要な共有ライブラリ
 Name: libpq
 Group: System Environment/Libraries
-Version: %{pgver}.5
+Version: %{pgver}.0
 Release: 1%{?_dist_release}
 License: BSD
-Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
-Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256
+Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
+Source5: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256
 Source6: README.rpm-dist
 Patch2: postgresql-8.3.3-nls.patch
 Patch3: postgresql-7.4-ecpg-patch
@@ -41,7 +41,7 @@ Buildrequires: gettext >= 0.10.35
 Buildrequires: pam-devel
 %endif
 
-Url: http://www.postgresql.org/ 
+Url: https://www.postgresql.org/ 
 Buildroot: %{_tmppath}/%{name}-%{version}-root
 
 Vendor: Project Vine
@@ -144,6 +144,8 @@ CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
 	--includedir=%{_includedir}/pgsql \
 	--datadir=%{_datadir}/pgsql
 
+# workaround for bug with parallel build
+make %{?_smp_mflags} -C ./src/interfaces all ||:
 make %{?_smp_mflags} -C ./src/interfaces all
 make %{?_smp_mflags} -C ./src/bin/pg_config all
 make %{?_smp_mflags} -C ./src/backend utils/errcodes.h
@@ -155,8 +157,6 @@ rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR=$RPM_BUILD_ROOT -C ./src/interfaces install
 make DESTDIR=$RPM_BUILD_ROOT -C ./src/bin/pg_config install
-cp -f ./src/backend/utils/fmgroids.h ./src/include/utils/
-cp -f ./src/backend/utils/fmgrprotos.h ./src/include/utils/
 make DESTDIR=$RPM_BUILD_ROOT -C ./src/include install
 
 # copy over Makefile.global to the include dir....
@@ -213,7 +213,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libpq%{pq_soname} -f libpq.lst
 %defattr(-,root,root)
-%doc COPYRIGHT HISTORY INSTALL README*
+%license COPYRIGHT
+%doc HISTORY INSTALL README*
 %{_libdir}/libecpg.so.*
 %{_libdir}/libecpg_compat.so.*
 %{_libdir}/libpgtypes.so.*
@@ -228,12 +229,16 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libpgtypes.so
 %{_libdir}/libpq.so
 %{_libdir}/pkgconfig/*
+%dir %{_includedir}/pgsql
 %{_datadir}/locale/*/LC_MESSAGES/*.mo
 %{_mandir}/man1/ecpg.*
 #%{_mandir}/man1/pg_config.*
 
 
 %changelog
+* Sat Oct 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.0-1
+- new upstream release.
+
 * Tue Nov 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.5-1
 - new upstream release.