#
%define beta %{nil}
-%define pgsqlversion 16
-%define pgsqlpriority 160
+%define pgsqlversion 17
+%define pgsqlpriority 170
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-%{pgsqlversion}
-Version: %{pgsqlversion}.8
+Version: %{pgsqlversion}.5
Release: 1
License: BSD
Group: Applications/Databases
Source0: http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
-# Source0-md5: f149a9f7aea0dbd66d366f70d6e7bda6
+# Source0-md5: 8831df48f22433ef3a3b53d20b47acea
Source1: postgresql.init
Source2: pgsql-Database-HOWTO-html.tar.gz
# Source2-md5: 5b656ddf1db41965761f85204a14398e
# omitted contribs:
# spi, test_decoding, worker_spi - examples/tests
# tsearch2 - old module for compatibility only
-%define contrib_modules adminpack amcheck auth_delay auto_explain basebackup_to_shell basic_archive bloom %{?with_perl:bool_plperl} btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore %{?with_perl:hstore_plperl} %{?with_python:hstore_plpython} intagg intarray isn %{?with_perl:jsonb_plperl} %{?with_python:jsonb_plpython} lo ltree %{?with_python:ltree_plpython} oid2name old_snapshot pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_stat_statements pg_surgery pg_trgm pg_visibility pg_walinspect pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} spi sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
+%define contrib_modules amcheck auth_delay auto_explain basebackup_to_shell basic_archive bloom %{?with_perl:bool_plperl} btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore %{?with_perl:hstore_plperl} %{?with_python:hstore_plpython} intagg intarray isn %{?with_perl:jsonb_plperl} %{?with_python:jsonb_plpython} lo ltree %{?with_python:ltree_plpython} oid2name pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_stat_statements pg_surgery pg_trgm pg_visibility pg_walinspect pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} spi sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
%description
PostgreSQL Data Base Management System (formerly known as Postgres,
%prep
%setup -q -n postgresql-%{version}
-%patch0 -p1
-%{?with_absolute_dbpaths:%patch1 -p1}
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
+%patch -P0 -p1
+%{?with_absolute_dbpaths:%patch -P1 -p1}
+%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
+%patch -P6 -p1
+%patch -P7 -p1
+%patch -P8 -p1
# force rebuild of bison/flex files
find src -name \*.l -o -name \*.y | xargs touch
# find locales
for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
- pg_amcheck pg_archivecleanup pg_basebackup pg_checksums pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump; do
+ pg_amcheck pg_archivecleanup pg_basebackup pg_checksums pg_combinebackup pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump pg_walsummary; do
%find_lang $f-%{pgsqlversion}
done
# merge locales
cat $(for f in $@; do echo ${f}-%{pgsqlversion}.lang ; done)
}
merge_lang pgscripts postgres plpgsql \
- pg_amcheck pg_basebackup pg_checksums pg_config pg_controldata pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump > main.lang
+ pg_amcheck pg_basebackup pg_checksums pg_combinebackup pg_config pg_controldata pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump pg_walsummary > main.lang
merge_lang psql initdb \
pg_archivecleanup pg_ctl pg_dump > clients.lang
%files -f main.lang
%defattr(644,root,root,755)
-%doc COPYRIGHT README HISTORY doc/{KNOWN_BUGS,MISSING_FEATURES,TODO}
+%doc COPYRIGHT README.md HISTORY doc/{KNOWN_BUGS,MISSING_FEATURES,TODO}
%attr(754,root,root) /etc/rc.d/init.d/postgresql-%{pgsqlversion}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql-%{pgsqlversion}
%attr(755,root,root) %{pgsqllibdir}/bin/pg_amcheck
%attr(755,root,root) %{pgsqllibdir}/bin/pg_basebackup
%attr(755,root,root) %{pgsqllibdir}/bin/pg_checksums
+%attr(755,root,root) %{pgsqllibdir}/bin/pg_combinebackup
%attr(755,root,root) %{pgsqllibdir}/bin/pg_controldata
+%attr(755,root,root) %{pgsqllibdir}/bin/pg_createsubscriber
%attr(755,root,root) %{pgsqllibdir}/bin/pg_ctl
%attr(755,root,root) %{pgsqllibdir}/bin/pg_resetwal
%attr(755,root,root) %{pgsqllibdir}/bin/pg_receivewal
%attr(755,root,root) %{pgsqllibdir}/bin/pg_upgrade
%attr(755,root,root) %{pgsqllibdir}/bin/pg_verifybackup
%attr(755,root,root) %{pgsqllibdir}/bin/pg_waldump
+%attr(755,root,root) %{pgsqllibdir}/bin/pg_walsummary
%attr(755,root,root) %{pgsqllibdir}/bin/pgbench
%attr(755,root,root) %{pgsqllibdir}/bin/postgres
%{pgsqldatadir}/man/man1/pg_amcheck.1*
%{pgsqldatadir}/man/man1/pg_basebackup.1*
%{pgsqldatadir}/man/man1/pg_checksums.1*
+%{pgsqldatadir}/man/man1/pg_combinebackup.1*
%{pgsqldatadir}/man/man1/pg_controldata.1*
+%{pgsqldatadir}/man/man1/pg_createsubscriber.1*
%{pgsqldatadir}/man/man1/pg_ctl.1*
%{pgsqldatadir}/man/man1/pg_resetwal.1*
%{pgsqldatadir}/man/man1/pg_receivewal.1*
%{pgsqldatadir}/man/man1/pg_rewind.1*
%{pgsqldatadir}/man/man1/pg_verifybackup.1*
%{pgsqldatadir}/man/man1/pg_waldump.1*
+%{pgsqldatadir}/man/man1/pg_walsummary.1*
%{pgsqldatadir}/man/man1/pg_test_fsync.1*
%{pgsqldatadir}/man/man1/pg_test_timing.1*
%{pgsqldatadir}/man/man1/pg_upgrade.1*
%files doc
%defattr(644,root,root,755)
-%doc doc/src/sgml/html howto
+#%doc doc/src/sgml/html howto
%{_examplesdir}/%{name}-%{version}
%files -n postgresql-libs -f libpq5-%{pgsqlversion}.lang
%attr(755,root,root) %{pgsqllibdir}/bin/oid2name
%attr(755,root,root) %{pgsqllibdir}/bin/vacuumlo
%attr(755,root,root) %{moduledir}/_int.so
-%attr(755,root,root) %{moduledir}/adminpack.so
%attr(755,root,root) %{moduledir}/amcheck.so
%attr(755,root,root) %{moduledir}/auth_delay.so
%attr(755,root,root) %{moduledir}/auto_explain.so
%attr(755,root,root) %{moduledir}/isn.so
%attr(755,root,root) %{moduledir}/ltree.so
%attr(755,root,root) %{moduledir}/moddatetime.so
-%attr(755,root,root) %{moduledir}/old_snapshot.so
%attr(755,root,root) %{moduledir}/pageinspect.so
%attr(755,root,root) %{moduledir}/passwordcheck.so
%attr(755,root,root) %{moduledir}/pg_buffercache.so
%attr(755,root,root) %{moduledir}/tsm_system_time.so
%attr(755,root,root) %{moduledir}/unaccent.so
%attr(755,root,root) %{moduledir}/uuid-ossp.so
-%{extensiondir}/adminpack--*.sql
-%{extensiondir}/adminpack.control
%{extensiondir}/amcheck--*.sql
%{extensiondir}/amcheck.control
%{extensiondir}/autoinc--*.sql
%{extensiondir}/ltree.control
%{extensiondir}/moddatetime--*.sql
%{extensiondir}/moddatetime.control
-%{extensiondir}/old_snapshot--*.sql
-%{extensiondir}/old_snapshot.control
%{extensiondir}/pageinspect--*.sql
%{extensiondir}/pageinspect.control
%{extensiondir}/pg_buffercache--*.sql