|
|
|
@ -32,7 +32,6 @@
|
|
|
|
|
%{!?beta:%global beta 0}
|
|
|
|
|
|
|
|
|
|
%{!?test:%global test 1}
|
|
|
|
|
%{!?llvmjit:%global llvmjit 1}
|
|
|
|
|
%{!?upgrade:%global upgrade 1}
|
|
|
|
|
%{!?plpython:%global plpython 1}
|
|
|
|
|
%{!?plpython3:%global plpython3 1}
|
|
|
|
@ -59,9 +58,9 @@
|
|
|
|
|
|
|
|
|
|
Summary: PostgreSQL client programs
|
|
|
|
|
Name: postgresql
|
|
|
|
|
%global majorversion 12
|
|
|
|
|
Version: %{majorversion}.2
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
%global majorversion 11
|
|
|
|
|
Version: 11.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
|
|
|
|
|
# recognizes it as an independent license, so we do as well.
|
|
|
|
@ -72,15 +71,14 @@ Url: http://www.postgresql.org/
|
|
|
|
|
# in-place upgrade of an old database. In most cases it will not be critical
|
|
|
|
|
# that this be kept up with the latest minor release of the previous series;
|
|
|
|
|
# but update when bugs affecting pg_dump output are fixed.
|
|
|
|
|
%global prevversion 11.7
|
|
|
|
|
%global prevmajorversion 11
|
|
|
|
|
%global prevversion 10.9
|
|
|
|
|
%global prevmajorversion 10
|
|
|
|
|
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion}
|
|
|
|
|
%global precise_version %{?epoch:%epoch:}%version-%release
|
|
|
|
|
|
|
|
|
|
%global setup_version 8.4
|
|
|
|
|
|
|
|
|
|
%global service_name postgresql.service
|
|
|
|
|
|
|
|
|
|
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
|
|
|
|
|
# The PDF file is generated by generate-pdf.sh, which see for comments
|
|
|
|
|
Source1: postgresql-%{version}-US.pdf
|
|
|
|
@ -113,7 +111,6 @@ Patch9: postgresql-server-pg_config.patch
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
|
|
|
|
|
BuildRequires: perl(ExtUtils::Embed), perl-devel
|
|
|
|
|
BuildRequires: perl(Opcode)
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
%endif
|
|
|
|
@ -239,12 +236,6 @@ Summary: PostgreSQL development header files and libraries
|
|
|
|
|
%if %icu
|
|
|
|
|
Requires: libicu-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %kerberos
|
|
|
|
|
Requires: krb5-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %llvmjit
|
|
|
|
|
Requires: clang-devel llvm-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description server-devel
|
|
|
|
|
The postgresql-server-devel package contains the header files and configuration
|
|
|
|
@ -357,30 +348,6 @@ PostgreSQL database management system, including regression tests and
|
|
|
|
|
benchmarks.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %llvmjit
|
|
|
|
|
%package llvmjit
|
|
|
|
|
Summary: Just-in-time compilation support for PostgreSQL
|
|
|
|
|
Requires: %{name}-server%{?_isa} = %{version}-%{release}
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} == 7
|
|
|
|
|
Requires: llvm5.0 >= 5.0
|
|
|
|
|
%else
|
|
|
|
|
Requires: llvm => 5.0
|
|
|
|
|
%endif
|
|
|
|
|
Provides: postgresql-llvmjit >= %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
|
AutoReq: 0
|
|
|
|
|
Requires: advance-toolchain-%{atstring}-runtime
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: llvm-devel >= 5.0 clang-devel >= 5.0
|
|
|
|
|
|
|
|
|
|
%description llvmjit
|
|
|
|
|
The postgresql-llvmjit package contains support for
|
|
|
|
|
just-in-time compiling parts of PostgreSQL queries. Using LLVM it
|
|
|
|
|
compiles e.g. expressions and tuple deforming into native code, with the
|
|
|
|
|
goal of accelerating analytics queries.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
(
|
|
|
|
@ -390,7 +357,7 @@ goal of accelerating analytics queries.
|
|
|
|
|
sha256sum -c %{SOURCE17}
|
|
|
|
|
%endif
|
|
|
|
|
)
|
|
|
|
|
%setup -q -a 12 -n postgresql-%{version}
|
|
|
|
|
%setup -q -a 12
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
@ -500,9 +467,6 @@ common_configure_options='
|
|
|
|
|
%if %icu
|
|
|
|
|
--with-icu
|
|
|
|
|
%endif
|
|
|
|
|
%if %llvmjit
|
|
|
|
|
--with-llvm
|
|
|
|
|
%endif
|
|
|
|
|
'
|
|
|
|
|
|
|
|
|
|
%if %plpython3
|
|
|
|
@ -864,7 +828,7 @@ find_lang_bins ()
|
|
|
|
|
find_lang_bins devel.lst pg_server_config
|
|
|
|
|
find_lang_bins server.lst \
|
|
|
|
|
initdb pg_basebackup pg_controldata pg_ctl pg_resetwal pg_rewind plpgsql \
|
|
|
|
|
postgres pg_checksums
|
|
|
|
|
postgres pg_verify_checksums
|
|
|
|
|
find_lang_bins contrib.lst \
|
|
|
|
|
pg_archivecleanup pg_test_fsync pg_test_timing pg_waldump
|
|
|
|
|
find_lang_bins main.lst \
|
|
|
|
@ -909,7 +873,7 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
# FILES sections.
|
|
|
|
|
%files -f main.lst
|
|
|
|
|
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
|
|
|
|
|
%doc COPYRIGHT README HISTORY
|
|
|
|
|
%doc COPYRIGHT README HISTORY doc/bug.template
|
|
|
|
|
%doc README.rpm-dist
|
|
|
|
|
%{_bindir}/clusterdb
|
|
|
|
|
%{_bindir}/createdb
|
|
|
|
@ -938,11 +902,6 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_mandir}/man1/reindexdb.*
|
|
|
|
|
%{_mandir}/man1/vacuumdb.*
|
|
|
|
|
%{_mandir}/man7/*
|
|
|
|
|
%if %llvmjit
|
|
|
|
|
# Install bitcode directory along with the main package,
|
|
|
|
|
# so that extensions can use this dir.
|
|
|
|
|
%dir %{_libdir}/pgsql/bitcode
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
@ -1008,6 +967,7 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_datadir}/pgsql/extension/seg*
|
|
|
|
|
%{_datadir}/pgsql/extension/tablefunc*
|
|
|
|
|
%{_datadir}/pgsql/extension/tcn*
|
|
|
|
|
%{_datadir}/pgsql/extension/timetravel*
|
|
|
|
|
%{_datadir}/pgsql/extension/tsm_system_rows*
|
|
|
|
|
%{_datadir}/pgsql/extension/tsm_system_time*
|
|
|
|
|
%{_datadir}/pgsql/extension/unaccent*
|
|
|
|
@ -1074,6 +1034,7 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_libdir}/pgsql/tablefunc.so
|
|
|
|
|
%{_libdir}/pgsql/tcn.so
|
|
|
|
|
%{_libdir}/pgsql/test_decoding.so
|
|
|
|
|
%{_libdir}/pgsql/timetravel.so
|
|
|
|
|
%{_libdir}/pgsql/tsm_system_rows.so
|
|
|
|
|
%{_libdir}/pgsql/tsm_system_time.so
|
|
|
|
|
%{_libdir}/pgsql/unaccent.so
|
|
|
|
@ -1113,13 +1074,14 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_bindir}/pg_recvlogical
|
|
|
|
|
%{_bindir}/pg_resetwal
|
|
|
|
|
%{_bindir}/pg_rewind
|
|
|
|
|
%{_bindir}/pg_checksums
|
|
|
|
|
%{_bindir}/pg_verify_checksums
|
|
|
|
|
%{_bindir}/postgres
|
|
|
|
|
%{_bindir}/postgresql-setup
|
|
|
|
|
%{_bindir}/postmaster
|
|
|
|
|
%dir %{_datadir}/pgsql
|
|
|
|
|
%{_datadir}/pgsql/*.sample
|
|
|
|
|
%dir %{_datadir}/pgsql/contrib
|
|
|
|
|
%{_datadir}/pgsql/conversion_create.sql
|
|
|
|
|
%dir %{_datadir}/pgsql/extension
|
|
|
|
|
%{_datadir}/pgsql/extension/plpgsql*
|
|
|
|
|
%{_datadir}/pgsql/information_schema.sql
|
|
|
|
@ -1133,7 +1095,6 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_datadir}/pgsql/tsearch_data/
|
|
|
|
|
%dir %{_datadir}/postgresql-setup
|
|
|
|
|
%{_datadir}/postgresql-setup/library.sh
|
|
|
|
|
%dir %{_libdir}/pgsql
|
|
|
|
|
%{_libdir}/pgsql/*_and_*.so
|
|
|
|
|
%{_libdir}/pgsql/dict_snowball.so
|
|
|
|
|
%{_libdir}/pgsql/euc2004_sjis2004.so
|
|
|
|
@ -1154,7 +1115,7 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_mandir}/man1/pg_receivewal.*
|
|
|
|
|
%{_mandir}/man1/pg_resetwal.*
|
|
|
|
|
%{_mandir}/man1/pg_rewind.*
|
|
|
|
|
%{_mandir}/man1/pg_checksums.*
|
|
|
|
|
%{_mandir}/man1/pg_verify_checksums.*
|
|
|
|
|
%{_mandir}/man1/postgres.*
|
|
|
|
|
%{_mandir}/man1/postgresql-new-systemd-unit.*
|
|
|
|
|
%{_mandir}/man1/postgresql-setup.*
|
|
|
|
@ -1192,8 +1153,6 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%files static
|
|
|
|
|
%{_libdir}/libpgcommon.a
|
|
|
|
|
%{_libdir}/libpgport.a
|
|
|
|
|
%{_libdir}/libpgcommon_shlib.a
|
|
|
|
|
%{_libdir}/libpgport_shlib.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %upgrade
|
|
|
|
@ -1214,13 +1173,6 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{macrosdir}/macros.%name-upgrade
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %llvmjit
|
|
|
|
|
%files llvmjit
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/pgsql/bitcode/*
|
|
|
|
|
%{_libdir}/pgsql/llvmjit.so
|
|
|
|
|
%{_libdir}/pgsql/llvmjit_types.bc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %plperl
|
|
|
|
|
%files plperl -f plperl.lst
|
|
|
|
@ -1258,51 +1210,10 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Mar 12 2020 Patrik Novotný <panovotn@redhat.com> - 12.2-2
|
|
|
|
|
- Fix requirements for JIT in postgresql-server-devel
|
|
|
|
|
- Fix build issues regarding new perl update
|
|
|
|
|
|
|
|
|
|
* Fri Feb 14 2020 Patrik Novotný <panovotn@redhat.com> - 12.2-1
|
|
|
|
|
- Rebase to upstream release 12.2
|
|
|
|
|
|
|
|
|
|
* Tue Feb 11 2020 Patrik Novotný <panovotn@redhat.com> - 12.1-1
|
|
|
|
|
- Rebase to upstream release 12.1
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 11.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Nov 25 2019 Patrik Novotný <panovotn@redhat.com> - 11.6-1
|
|
|
|
|
- Rebase to upstream version 11.6
|
|
|
|
|
|
|
|
|
|
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 11.5-6
|
|
|
|
|
- Rebuild for ICU 65
|
|
|
|
|
|
|
|
|
|
* Thu Sep 05 2019 Patrik Novotný <panovotn@redhat.com> - 11.5-5
|
|
|
|
|
- postgresql-server-devel requires krb5-devel
|
|
|
|
|
|
|
|
|
|
* Tue Sep 03 2019 Patrik Novotný <panovotn@redhat.com> - 11.5-4
|
|
|
|
|
- Add explicit obsoletes to plpython2 package
|
|
|
|
|
|
|
|
|
|
* Mon Sep 02 2019 Patrik Novotný <panovotn@redhat.com> - 11.5-3
|
|
|
|
|
- Rename plpython to plpython2 and provide plpython virtually.
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 11.5-2
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Wed Aug 07 2019 Petr Kubat <pkubat@redhat.com> - 11.5-1
|
|
|
|
|
- New upstream version 11.5
|
|
|
|
|
https://www.postgresql.org/docs/11/release-11-5.html
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 11.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 09 2019 Petr Kubat <pkubat@redhat.com> - 11.4-1
|
|
|
|
|
- New upstream version 11.4
|
|
|
|
|
https://www.postgresql.org/docs/11/release-11-4.html
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 11.3-2
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 09 2019 Patrik Novotný <panovotn@redhat.com> - 11.3-1
|
|
|
|
|
- Rebase to upstream release 11.3
|
|
|
|
|
https://www.postgresql.org/docs/11/release-11-3.html
|
|
|
|
|