# TODO:
-# - python 3 and python 2 subpackages?
# - subpackage *_plperl and *_plpython contribs?
# - think about pg_upgrade integration (sysconfig variable to allow upgrade from 8.3+ without dump/restore?)
# create postgresqlM.N packages with parts of old pgsql required by pg_upgrade
%bcond_without tests # disable testing
%bcond_without tcl # disable Tcl support
%bcond_without kerberos5 # disable kerberos5 support
-%bcond_without llvm # disable llvm based JIT support
+%bcond_with llvm # disable llvm based JIT support
%bcond_without perl # disable Perl support
%bcond_without python # disable Python support
%bcond_with bonjour # Bonjour/DNS_SD support
# (disabled by default because it is a security risk)
#
-%define mver 14
+%define mver 15
Summary: PostgreSQL Data Base Management System
Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem
Summary(uk.UTF-8): PostgreSQL - система керування базами даних
Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件
Name: postgresql
-Version: %{mver}.8
+Version: %{mver}.6
Release: 1
License: BSD
Group: Applications/Databases
Source0: https://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: d089f6f4f15f5b278252e867f3a45fd7
+# Source0-md5: 666511aeb53bd4ac029e236e35b42ca8
Source1: %{name}.init
Source2: pgsql-Database-HOWTO-html.tar.gz
# Source2-md5: 5b656ddf1db41965761f85204a14398e
Patch1: %{name}-absolute_dbpaths.patch
Patch2: %{name}-ecpg-includedir.patch
Patch3: ac.patch
-
Patch5: %{name}-heimdal.patch
Patch6: %{name}-link.patch
URL: https://www.postgresql.org/
BuildRequires: perl-devel
%endif
%if %{with python}
-BuildRequires: python >= 1:2.4
-BuildRequires: python-devel >= 1:2.4
-BuildRequires: python-modules >= 1:2.4
+BuildRequires: python3 >= 1:3.2
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
%endif
BuildRequires: readline-devel >= 4.2
+BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.671
%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
%define _ulibdir /usr/lib
+%define filterout_c -fvar-tracking-assignments
+%define filterout_cxx -fvar-tracking-assignments
+
# omitted contribs:
# spi, test_decoding, worker_spi - examples/tests
# tsearch2 - old module for compatibility only
Summary: Documentation for PostgreSQL
Summary(pl.UTF-8): Dodatkowa dokumantacja dla PostgreSQL
Group: Applications/Databases
+BuildArch: noarch
%description doc
This package includes documentation and HOWTO for programmer, admin
Summary(pl.UTF-8): PL/Python - język proceduralny bazy danych PostgreSQL
Group: Applications/Databases
Requires: %{name} = %{version}-%{release}
-%pyrequires_eq python
%description module-plpython
From PostgreSQL documentation:
%{?with_absolute_dbpaths:%patch1 -p1}
%patch2 -p1
%patch3 -p1
-
%patch5 -p1
%patch6 -p1
install -d howto
tar zxf %{SOURCE2} -C howto
-%if %{with python}
-%py_comp $RPM_BUILD_ROOT%{py_libdir}
-%py_ocomp $RPM_BUILD_ROOT%{py_libdir}
-%endif
-
# find locales
for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
%{_includedir}/postgres_ext.h
%dir %{_includedir}/postgresql/internal
%{_includedir}/postgresql/internal/c.h
+%{_includedir}/postgresql/internal/fe-auth-sasl.h
%{_includedir}/postgresql/internal/libpq-int.h
%{_includedir}/postgresql/internal/port.h
%{_includedir}/postgresql/internal/postgres_fe.h
%if %{with python}
%files module-plpython -f plpython-%{mver}.lang
%defattr(644,root,root,755)
-%attr(755,root,root) %{_pgmoduledir}/plpython2.so
+%attr(755,root,root) %{_pgmoduledir}/plpython3.so
%{_pgsqldir}/plpython*--*.sql
%{_pgsqldir}/plpython*.control
%endif
%endif
%endif
%if %{with python}
-%attr(755,root,root) %{_pgmoduledir}/hstore_plpython2.so
-%attr(755,root,root) %{_pgmoduledir}/jsonb_plpython2.so
-%attr(755,root,root) %{_pgmoduledir}/ltree_plpython2.so
+%attr(755,root,root) %{_pgmoduledir}/hstore_plpython3.so
+%attr(755,root,root) %{_pgmoduledir}/jsonb_plpython3.so
+%attr(755,root,root) %{_pgmoduledir}/ltree_plpython3.so
%if %{with llvm}
-%{_pgmoduledir}/bitcode/hstore_plpython2
-%{_pgmoduledir}/bitcode/hstore_plpython2.index.bc
-%{_pgmoduledir}/bitcode/jsonb_plpython2
-%{_pgmoduledir}/bitcode/jsonb_plpython2.index.bc
-%{_pgmoduledir}/bitcode/ltree_plpython2
-%{_pgmoduledir}/bitcode/ltree_plpython2.index.bc
+%{_pgmoduledir}/bitcode/hstore_plpython3
+%{_pgmoduledir}/bitcode/hstore_plpython3.index.bc
+%{_pgmoduledir}/bitcode/jsonb_plpython3
+%{_pgmoduledir}/bitcode/jsonb_plpython3.index.bc
+%{_pgmoduledir}/bitcode/ltree_plpython3
+%{_pgmoduledir}/bitcode/ltree_plpython3.index.bc
%endif
-%{_pgsqldir}/hstore_plpythonu--*.sql
-%{_pgsqldir}/hstore_plpythonu.control
-%{_pgsqldir}/hstore_plpython2u--*.sql
-%{_pgsqldir}/hstore_plpython2u.control
%{_pgsqldir}/hstore_plpython3u--*.sql
%{_pgsqldir}/hstore_plpython3u.control
-%{_pgsqldir}/jsonb_plpythonu--*.sql
-%{_pgsqldir}/jsonb_plpythonu.control
-%{_pgsqldir}/jsonb_plpython2u--*.sql
-%{_pgsqldir}/jsonb_plpython2u.control
%{_pgsqldir}/jsonb_plpython3u--*.sql
%{_pgsqldir}/jsonb_plpython3u.control
-%{_pgsqldir}/ltree_plpythonu--*.sql
-%{_pgsqldir}/ltree_plpythonu.control
-%{_pgsqldir}/ltree_plpython2u--*.sql
-%{_pgsqldir}/ltree_plpython2u.control
%{_pgsqldir}/ltree_plpython3u--*.sql
%{_pgsqldir}/ltree_plpython3u.control
%endif