|
|
@ -58,8 +58,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
Summary: PostgreSQL client programs |
|
|
|
Summary: PostgreSQL client programs |
|
|
|
Name: postgresql |
|
|
|
Name: postgresql |
|
|
|
%global majorversion 11 |
|
|
|
%global majorversion 12 |
|
|
|
Version: 11.5 |
|
|
|
Version: %{majorversion}.1 |
|
|
|
Release: 1%{?dist} |
|
|
|
Release: 1%{?dist} |
|
|
|
|
|
|
|
|
|
|
|
# The PostgreSQL license is very similar to other MIT licenses, but the OSI |
|
|
|
# The PostgreSQL license is very similar to other MIT licenses, but the OSI |
|
|
@ -71,14 +71,15 @@ Url: http://www.postgresql.org/ |
|
|
|
# in-place upgrade of an old database. In most cases it will not be critical |
|
|
|
# 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; |
|
|
|
# that this be kept up with the latest minor release of the previous series; |
|
|
|
# but update when bugs affecting pg_dump output are fixed. |
|
|
|
# but update when bugs affecting pg_dump output are fixed. |
|
|
|
%global prevversion 10.7 |
|
|
|
%global prevversion 11.6 |
|
|
|
%global prevmajorversion 10 |
|
|
|
%global prevmajorversion 11 |
|
|
|
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion} |
|
|
|
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion} |
|
|
|
%global precise_version %{?epoch:%epoch:}%version-%release |
|
|
|
%global precise_version %{?epoch:%epoch:}%version-%release |
|
|
|
|
|
|
|
|
|
|
|
%global setup_version 8.4 |
|
|
|
%global setup_version 8.4 |
|
|
|
|
|
|
|
|
|
|
|
%global service_name postgresql.service |
|
|
|
%global service_name postgresql.service |
|
|
|
|
|
|
|
|
|
|
|
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 |
|
|
|
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 |
|
|
|
# The PDF file is generated by generate-pdf.sh, which see for comments |
|
|
|
Source1: postgresql-%{version}-US.pdf |
|
|
|
Source1: postgresql-%{version}-US.pdf |
|
|
@ -236,6 +237,9 @@ Summary: PostgreSQL development header files and libraries |
|
|
|
%if %icu |
|
|
|
%if %icu |
|
|
|
Requires: libicu-devel |
|
|
|
Requires: libicu-devel |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
|
|
|
|
%if %kerberos |
|
|
|
|
|
|
|
Requires: krb5-devel |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
%description server-devel |
|
|
|
%description server-devel |
|
|
|
The postgresql-server-devel package contains the header files and configuration |
|
|
|
The postgresql-server-devel package contains the header files and configuration |
|
|
@ -244,6 +248,7 @@ needed to compile PostgreSQL server extension. |
|
|
|
%package test-rpm-macros |
|
|
|
%package test-rpm-macros |
|
|
|
Summary: Convenience RPM macros for build-time testing against PostgreSQL server |
|
|
|
Summary: Convenience RPM macros for build-time testing against PostgreSQL server |
|
|
|
Requires: %{name}-server = %precise_version |
|
|
|
Requires: %{name}-server = %precise_version |
|
|
|
|
|
|
|
BuildArch: noarch |
|
|
|
|
|
|
|
|
|
|
|
%description test-rpm-macros |
|
|
|
%description test-rpm-macros |
|
|
|
This package is meant to be added as BuildRequires: dependency of other packages |
|
|
|
This package is meant to be added as BuildRequires: dependency of other packages |
|
|
@ -356,7 +361,7 @@ benchmarks. |
|
|
|
sha256sum -c %{SOURCE17} |
|
|
|
sha256sum -c %{SOURCE17} |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
) |
|
|
|
) |
|
|
|
%setup -q -a 12 |
|
|
|
%setup -q -a 12 -n postgresql-%{version} |
|
|
|
%patch1 -p1 |
|
|
|
%patch1 -p1 |
|
|
|
%patch2 -p1 |
|
|
|
%patch2 -p1 |
|
|
|
%patch5 -p1 |
|
|
|
%patch5 -p1 |
|
|
@ -397,7 +402,7 @@ cd postgresql-setup-%{setup_version} |
|
|
|
sed -i 's|/etc/redhat-release;|/etc/powerel-release;|' configure |
|
|
|
sed -i 's|/etc/redhat-release;|/etc/powerel-release;|' configure |
|
|
|
|
|
|
|
|
|
|
|
%configure \ |
|
|
|
%configure \ |
|
|
|
pgdocdir=%{_docdir}/%{name}/ \ |
|
|
|
pgdocdir=%{_pkgdocdir} \ |
|
|
|
PGVERSION=%{version} \ |
|
|
|
PGVERSION=%{version} \ |
|
|
|
PGMAJORVERSION=%{majorversion} \ |
|
|
|
PGMAJORVERSION=%{majorversion} \ |
|
|
|
NAME_DEFAULT_PREV_SERVICE=postgresql |
|
|
|
NAME_DEFAULT_PREV_SERVICE=postgresql |
|
|
@ -658,9 +663,9 @@ cd postgresql-setup-%{setup_version} |
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT |
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT |
|
|
|
cd .. |
|
|
|
cd .. |
|
|
|
|
|
|
|
|
|
|
|
# For some reason, having '%%doc %%{_docdir}/%{name}//README.rpm-dist' in %%files |
|
|
|
# For some reason, having '%%doc %%{_pkgdocdir}/README.rpm-dist' in %%files |
|
|
|
# causes FTBFS (at least on RHEL6), see rhbz#1250006. |
|
|
|
# causes FTBFS (at least on RHEL6), see rhbz#1250006. |
|
|
|
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}//README.rpm-dist ./ |
|
|
|
mv $RPM_BUILD_ROOT/%{_pkgdocdir}/README.rpm-dist ./ |
|
|
|
|
|
|
|
|
|
|
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql.conf <<EOF |
|
|
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql.conf <<EOF |
|
|
|
id postgresql |
|
|
|
id postgresql |
|
|
@ -829,7 +834,7 @@ find_lang_bins () |
|
|
|
find_lang_bins devel.lst pg_server_config |
|
|
|
find_lang_bins devel.lst pg_server_config |
|
|
|
find_lang_bins server.lst \ |
|
|
|
find_lang_bins server.lst \ |
|
|
|
initdb pg_basebackup pg_controldata pg_ctl pg_resetwal pg_rewind plpgsql \ |
|
|
|
initdb pg_basebackup pg_controldata pg_ctl pg_resetwal pg_rewind plpgsql \ |
|
|
|
postgres pg_verify_checksums |
|
|
|
postgres pg_checksums |
|
|
|
find_lang_bins contrib.lst \ |
|
|
|
find_lang_bins contrib.lst \ |
|
|
|
pg_archivecleanup pg_test_fsync pg_test_timing pg_waldump |
|
|
|
pg_archivecleanup pg_test_fsync pg_test_timing pg_waldump |
|
|
|
find_lang_bins main.lst \ |
|
|
|
find_lang_bins main.lst \ |
|
|
@ -874,7 +879,7 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
# FILES sections. |
|
|
|
# FILES sections. |
|
|
|
%files -f main.lst |
|
|
|
%files -f main.lst |
|
|
|
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO |
|
|
|
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO |
|
|
|
%doc COPYRIGHT README HISTORY doc/bug.template |
|
|
|
%doc COPYRIGHT README HISTORY |
|
|
|
%doc README.rpm-dist |
|
|
|
%doc README.rpm-dist |
|
|
|
%{_bindir}/clusterdb |
|
|
|
%{_bindir}/clusterdb |
|
|
|
%{_bindir}/createdb |
|
|
|
%{_bindir}/createdb |
|
|
@ -968,7 +973,6 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
%{_datadir}/pgsql/extension/seg* |
|
|
|
%{_datadir}/pgsql/extension/seg* |
|
|
|
%{_datadir}/pgsql/extension/tablefunc* |
|
|
|
%{_datadir}/pgsql/extension/tablefunc* |
|
|
|
%{_datadir}/pgsql/extension/tcn* |
|
|
|
%{_datadir}/pgsql/extension/tcn* |
|
|
|
%{_datadir}/pgsql/extension/timetravel* |
|
|
|
|
|
|
|
%{_datadir}/pgsql/extension/tsm_system_rows* |
|
|
|
%{_datadir}/pgsql/extension/tsm_system_rows* |
|
|
|
%{_datadir}/pgsql/extension/tsm_system_time* |
|
|
|
%{_datadir}/pgsql/extension/tsm_system_time* |
|
|
|
%{_datadir}/pgsql/extension/unaccent* |
|
|
|
%{_datadir}/pgsql/extension/unaccent* |
|
|
@ -1035,7 +1039,6 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
%{_libdir}/pgsql/tablefunc.so |
|
|
|
%{_libdir}/pgsql/tablefunc.so |
|
|
|
%{_libdir}/pgsql/tcn.so |
|
|
|
%{_libdir}/pgsql/tcn.so |
|
|
|
%{_libdir}/pgsql/test_decoding.so |
|
|
|
%{_libdir}/pgsql/test_decoding.so |
|
|
|
%{_libdir}/pgsql/timetravel.so |
|
|
|
|
|
|
|
%{_libdir}/pgsql/tsm_system_rows.so |
|
|
|
%{_libdir}/pgsql/tsm_system_rows.so |
|
|
|
%{_libdir}/pgsql/tsm_system_time.so |
|
|
|
%{_libdir}/pgsql/tsm_system_time.so |
|
|
|
%{_libdir}/pgsql/unaccent.so |
|
|
|
%{_libdir}/pgsql/unaccent.so |
|
|
@ -1075,14 +1078,13 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
%{_bindir}/pg_recvlogical |
|
|
|
%{_bindir}/pg_recvlogical |
|
|
|
%{_bindir}/pg_resetwal |
|
|
|
%{_bindir}/pg_resetwal |
|
|
|
%{_bindir}/pg_rewind |
|
|
|
%{_bindir}/pg_rewind |
|
|
|
%{_bindir}/pg_verify_checksums |
|
|
|
%{_bindir}/pg_checksums |
|
|
|
%{_bindir}/postgres |
|
|
|
%{_bindir}/postgres |
|
|
|
%{_bindir}/postgresql-setup |
|
|
|
%{_bindir}/postgresql-setup |
|
|
|
%{_bindir}/postmaster |
|
|
|
%{_bindir}/postmaster |
|
|
|
%dir %{_datadir}/pgsql |
|
|
|
%dir %{_datadir}/pgsql |
|
|
|
%{_datadir}/pgsql/*.sample |
|
|
|
%{_datadir}/pgsql/*.sample |
|
|
|
%dir %{_datadir}/pgsql/contrib |
|
|
|
%dir %{_datadir}/pgsql/contrib |
|
|
|
%{_datadir}/pgsql/conversion_create.sql |
|
|
|
|
|
|
|
%dir %{_datadir}/pgsql/extension |
|
|
|
%dir %{_datadir}/pgsql/extension |
|
|
|
%{_datadir}/pgsql/extension/plpgsql* |
|
|
|
%{_datadir}/pgsql/extension/plpgsql* |
|
|
|
%{_datadir}/pgsql/information_schema.sql |
|
|
|
%{_datadir}/pgsql/information_schema.sql |
|
|
@ -1096,6 +1098,7 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
%{_datadir}/pgsql/tsearch_data/ |
|
|
|
%{_datadir}/pgsql/tsearch_data/ |
|
|
|
%dir %{_datadir}/postgresql-setup |
|
|
|
%dir %{_datadir}/postgresql-setup |
|
|
|
%{_datadir}/postgresql-setup/library.sh |
|
|
|
%{_datadir}/postgresql-setup/library.sh |
|
|
|
|
|
|
|
%dir %{_libdir}/pgsql |
|
|
|
%{_libdir}/pgsql/*_and_*.so |
|
|
|
%{_libdir}/pgsql/*_and_*.so |
|
|
|
%{_libdir}/pgsql/dict_snowball.so |
|
|
|
%{_libdir}/pgsql/dict_snowball.so |
|
|
|
%{_libdir}/pgsql/euc2004_sjis2004.so |
|
|
|
%{_libdir}/pgsql/euc2004_sjis2004.so |
|
|
@ -1116,7 +1119,7 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
%{_mandir}/man1/pg_receivewal.* |
|
|
|
%{_mandir}/man1/pg_receivewal.* |
|
|
|
%{_mandir}/man1/pg_resetwal.* |
|
|
|
%{_mandir}/man1/pg_resetwal.* |
|
|
|
%{_mandir}/man1/pg_rewind.* |
|
|
|
%{_mandir}/man1/pg_rewind.* |
|
|
|
%{_mandir}/man1/pg_verify_checksums.* |
|
|
|
%{_mandir}/man1/pg_checksums.* |
|
|
|
%{_mandir}/man1/postgres.* |
|
|
|
%{_mandir}/man1/postgres.* |
|
|
|
%{_mandir}/man1/postgresql-new-systemd-unit.* |
|
|
|
%{_mandir}/man1/postgresql-new-systemd-unit.* |
|
|
|
%{_mandir}/man1/postgresql-setup.* |
|
|
|
%{_mandir}/man1/postgresql-setup.* |
|
|
@ -1154,6 +1157,8 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
%files static |
|
|
|
%files static |
|
|
|
%{_libdir}/libpgcommon.a |
|
|
|
%{_libdir}/libpgcommon.a |
|
|
|
%{_libdir}/libpgport.a |
|
|
|
%{_libdir}/libpgport.a |
|
|
|
|
|
|
|
%{_libdir}/libpgcommon_shlib.a |
|
|
|
|
|
|
|
%{_libdir}/libpgport_shlib.a |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %upgrade |
|
|
|
%if %upgrade |
|
|
@ -1211,6 +1216,29 @@ make -C postgresql-setup-%{setup_version} check |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|
|
|
|
|
* Mon Nov 25 2019 Patrik Novotný <panovotn@redhat.com> - 12.1-1 |
|
|
|
|
|
|
|
- Rebase to upstream release 12.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Patrik Novotný <panovotn@redhat.com> - 12.0-1 |
|
|
|
|
|
|
|
- Rebase to upstream release 12.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 12 2019 Patrik Novotný <panovotn@redhat.com> - 12.0-0.3 |
|
|
|
|
|
|
|
- Rebase to upstream beta release 12beta4 |
|
|
|
|
|
|
|
- postgresql-server-devel requires krb5-devel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2019 Petr Kubat <pkubat@redhat.com> - 12.0-0.2 |
|
|
|
|
|
|
|
- Rebase to upstream beta release 12beta3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 03 2019 Patrik Novotný <panovotn@redhat.com> - 12.0-0.1 |
|
|
|
|
|
|
|
- Rebase to upstream beta release 12beta2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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 |
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 05 2019 Pavel Raiskup <praiskup@redhat.com> - 11.2-3 |
|
|
|
* Tue Mar 05 2019 Pavel Raiskup <praiskup@redhat.com> - 11.2-3 |
|
|
|
- update postgresql-setup to 8.4 (related to rhbz#1668301) |
|
|
|
- update postgresql-setup to 8.4 (related to rhbz#1668301) |
|
|
|
|
|
|
|
|
|
|
|