X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=postgresql.spec;h=361e0d8d7bfd1cd1899ac197ad691e8373ea098f;hb=3147c849ec12e7bea062fc1390a4b22ccfcc3037;hp=75f105d87a62518174a5b40d942ef76128b90bc2;hpb=949c4c6adc8bfbb77529bf6fac9706701aa1f4ad;p=packages%2Fpostgresql.git diff --git a/postgresql.spec b/postgresql.spec index 75f105d..361e0d8 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -14,8 +14,8 @@ # %define beta %{nil} -%define pgsqlversion 10 -%define pgsqlpriority 100 +%define pgsqlversion 14 +%define pgsqlpriority 140 Summary: PostgreSQL Data Base Management System Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem @@ -28,24 +28,27 @@ Summary(tr.UTF-8): Veri Tabanı Yönetim Sistemi Summary(uk.UTF-8): PostgreSQL - система керування базами даних Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件 Name: postgresql-%{pgsqlversion} -Version: %{pgsqlversion}.5 -Release: 4 +Version: %{pgsqlversion}.3 +Release: 2 License: BSD Group: Applications/Databases Source0: http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 -# Source0-md5: a5fe5fdff2d6c28f65601398be0950df +# Source0-md5: c83c28c774dd55b078f7dae0e30163be Source1: postgresql.init Source2: pgsql-Database-HOWTO-html.tar.gz # Source2-md5: 5b656ddf1db41965761f85204a14398e Source3: postgresql.sysconfig +Source4: postgresql.logrotate Patch0: postgresql-conf.patch Patch1: postgresql-absolute_dbpaths.patch Patch2: postgresql-ecpg-includedir.patch Patch3: per-version-dirs.patch -Patch4: postgresql-disable_horology_test.patch +Patch4: postgresql-tests.patch Patch5: postgresql-heimdal.patch Patch6: postgresql-link.patch Patch7: socket-dir-fixes.patch +Patch8: postgresql-autoconf.patch +Patch9: postgresql-python3.patch URL: http://www.postgresql.org/ BuildRequires: autoconf >= 2.69 BuildRequires: automake @@ -71,9 +74,9 @@ BuildRequires: ossp-uuid-devel BuildRequires: pam-devel %{?with_perl:BuildRequires: perl-devel} %if %{with python} -BuildRequires: python >= 1:2.3 -BuildRequires: python-devel >= 1:2.3 -BuildRequires: python-modules >= 1:2.3 +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-modules %endif BuildRequires: readline-devel >= 4.2 BuildRequires: rpmbuild(macros) >= 1.671 @@ -84,8 +87,8 @@ BuildRequires: zlib-devel Requires(post,preun): /sbin/chkconfig Requires(pre): /bin/id Requires(pre): /usr/bin/getgid -Requires(triggerpostun): /bin/id -Requires(triggerpostun): /usr/sbin/usermod +Requires(post): /bin/id +Requires(post): /usr/sbin/usermod Requires: %{name}-clients = %{version}-%{release} Requires: %{name}-dirs = %{version}-%{release} Requires: postgresql-libs >= %{version}-%{release} @@ -108,7 +111,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # omitted contribs: # spi, test_decoding, worker_spi - examples/tests # tsearch2 - old module for compatibility only -%define contrib_modules adminpack auth_delay auto_explain bloom btree_gin btree_gist chkpass citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore %{?with_perl:hstore_plperl} %{?with_python:hstore_plpython} intagg intarray isn lo ltree %{?with_python:ltree_plpython} oid2name pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_standby pg_stat_statements pg_trgm pg_visibility pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2 +%define contrib_modules adminpack amcheck auth_delay auto_explain 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 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, @@ -189,7 +192,7 @@ PostgreSQL - wspólne pliki i katalogi. Summary: Common directories for PostgresSQL %{pgsqlversion} Summary(pl.UTF-8): Wspólne pliki i katalogi dla PostgreSQL %{pgsqlversion} Group: Applicataion/Databases -Requires: postgresql-common +Requires: postgresql-common >= %{version}-%{release} %description dirs Common directories for PostgresSQL %{pgsqlversion} @@ -404,7 +407,7 @@ Summary: PL/Python - PostgreSQL procedural language Summary(pl.UTF-8): PL/Python - język proceduralny bazy danych PostgreSQL Group: Applications/Databases Requires: %{name} = %{version}-%{release} -%pyrequires_eq python +%pyrequires_eq python3 Obsoletes: postgresql-module-plpython %description module-plpython @@ -598,6 +601,8 @@ Różne moduły dołączone do PostgreSQL-a. %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 +%patch9 -p1 # force rebuild of bison/flex files find src -name \*.l -o -name \*.y | xargs touch @@ -659,8 +664,8 @@ done %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \ - $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log,run/postgresql} \ +install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{logrotate.d,rc.d/init.d,sysconfig}} \ + $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log/{archive,}/postgresql,run/postgresql} \ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} @@ -681,23 +686,22 @@ for mod in %{contrib_modules}; do \ DESTDIR=$RPM_BUILD_ROOT done -touch $RPM_BUILD_ROOT/var/log/pgsql - sed -e 's,@pgsqlbindir@,%{pgsqllibdir}/bin,g; s,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE1} >$RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql-%{pgsqlversion} sed -e 's,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/postgresql-%{pgsqlversion} +cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/postgresql 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} +%py3_comp $RPM_BUILD_ROOT%{py3_libdir} +%py3_ocomp $RPM_BUILD_ROOT%{py3_libdir} %endif # find locales for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \ plpgsql %{?with_perl:plperl} %{?with_python:plpython} \ - pg_archivecleanup pg_basebackup pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_waldump; do + 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 %find_lang $f-%{pgsqlversion} done # merge locales @@ -705,7 +709,7 @@ merge_lang() { cat $(for f in $@; do echo ${f}-%{pgsqlversion}.lang ; done) } merge_lang pgscripts postgres plpgsql \ - pg_basebackup pg_controldata pg_resetwal pg_rewind pg_upgrade pg_test_fsync pg_test_timing pg_waldump > main.lang + 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 merge_lang psql initdb \ pg_archivecleanup pg_ctl pg_dump > clients.lang @@ -724,6 +728,7 @@ cp -p src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/%{pgsqlver # package it...? nah, why bother. %{__rm} -r $RPM_BUILD_ROOT%{pgsqldatadir}/doc/html +%{__rm} -r $RPM_BUILD_ROOT%{pgsqldatadir}/doc/extension/*.example %clean rm -rf $RPM_BUILD_ROOT @@ -857,12 +862,14 @@ fi %files -f main.lang %defattr(644,root,root,755) -%doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO} +%doc COPYRIGHT README 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/initdb +%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_controldata %attr(755,root,root) %{pgsqllibdir}/bin/pg_ctl %attr(755,root,root) %{pgsqllibdir}/bin/pg_resetwal @@ -872,12 +879,12 @@ fi %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_fsync %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_timing %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/pgbench %attr(755,root,root) %{pgsqllibdir}/bin/postgres %attr(755,root,root) %{pgsqllibdir}/bin/postmaster -%attr(755,root,root) %{moduledir}/ascii_and_mic.so %attr(755,root,root) %{moduledir}/cyrillic_and_mic.so %attr(755,root,root) %{moduledir}/dict_int.so %attr(755,root,root) %{moduledir}/dict_snowball.so @@ -896,8 +903,6 @@ fi %{pgsqldatadir}/*.bki %{pgsqldatadir}/*.sample -%{pgsqldatadir}/*.description -%{pgsqldatadir}/*.shdescription %{pgsqldatadir}/*.sql %{pgsqldatadir}/*.txt %{pgsqldatadir}/timezonesets @@ -905,16 +910,17 @@ fi %dir %{pgsqldatadir}/contrib -%attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql - %{pgsqldatadir}/man/man1/initdb.1* +%{pgsqldatadir}/man/man1/pg_amcheck.1* %{pgsqldatadir}/man/man1/pg_basebackup.1* +%{pgsqldatadir}/man/man1/pg_checksums.1* %{pgsqldatadir}/man/man1/pg_controldata.1* %{pgsqldatadir}/man/man1/pg_ctl.1* %{pgsqldatadir}/man/man1/pg_resetwal.1* %{pgsqldatadir}/man/man1/pg_receivewal.1* %{pgsqldatadir}/man/man1/pg_recvlogical.1* %{pgsqldatadir}/man/man1/pg_rewind.1* +%{pgsqldatadir}/man/man1/pg_verifybackup.1* %{pgsqldatadir}/man/man1/pg_waldump.1* %{pgsqldatadir}/man/man1/pg_test_fsync.1* %{pgsqldatadir}/man/man1/pg_test_timing.1* @@ -928,7 +934,10 @@ fi %dir %{_libdir}/postgresql %dir %{_datadir}/postgresql %attr(700,postgres,postgres) %dir /var/lib/postgresql +%attr(750,postgres,postgres) %dir /var/log/postgresql +%attr(750,postgres,postgres) %dir /var/log/archive/postgresql %attr(700,postgres,postgres) %dir /var/run/postgresql +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/postgresql %files dirs %defattr(644,root,root,755) @@ -1019,6 +1028,8 @@ fi %{_libdir}/libpgcommon.a %{_libdir}/libpgfeutils.a %{_libdir}/libpgport.a +%{_libdir}/libpgcommon_shlib.a +%{_libdir}/libpgport_shlib.a %files clients -f clients.lang %defattr(644,root,root,755) @@ -1064,7 +1075,7 @@ fi %if %{with python} %files module-plpython -f plpython-%{pgsqlversion}.lang %defattr(644,root,root,755) -%attr(755,root,root) %{moduledir}/plpython2.so +%attr(755,root,root) %{moduledir}/plpython3.so %{extensiondir}/plpython*--*.sql %{extensiondir}/plpython*.control %endif @@ -1123,36 +1134,41 @@ fi %files contrib %defattr(644,root,root,755) -%doc contrib/README +%doc contrib/README contrib/spi/*.example %attr(755,root,root) %{pgsqllibdir}/bin/oid2name -%attr(755,root,root) %{pgsqllibdir}/bin/pg_standby %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}/autoinc.so %attr(755,root,root) %{moduledir}/bloom.so %attr(755,root,root) %{moduledir}/btree_gin.so %attr(755,root,root) %{moduledir}/btree_gist.so -%attr(755,root,root) %{moduledir}/chkpass.so %attr(755,root,root) %{moduledir}/citext.so %attr(755,root,root) %{moduledir}/cube.so %attr(755,root,root) %{moduledir}/earthdistance.so %attr(755,root,root) %{moduledir}/file_fdw.so %attr(755,root,root) %{moduledir}/fuzzystrmatch.so %attr(755,root,root) %{moduledir}/hstore.so +%attr(755,root,root) %{moduledir}/insert_username.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}/pg_freespacemap.so %attr(755,root,root) %{moduledir}/pg_prewarm.so %attr(755,root,root) %{moduledir}/pg_stat_statements.so +%attr(755,root,root) %{moduledir}/pg_surgery.so %attr(755,root,root) %{moduledir}/pg_visibility.so %attr(755,root,root) %{moduledir}/pgrowlocks.so %attr(755,root,root) %{moduledir}/pgstattuple.so %attr(755,root,root) %{moduledir}/postgres_fdw.so +%attr(755,root,root) %{moduledir}/refint.so %attr(755,root,root) %{moduledir}/seg.so %attr(755,root,root) %{moduledir}/sslinfo.so %attr(755,root,root) %{moduledir}/tcn.so @@ -1162,14 +1178,16 @@ fi %attr(755,root,root) %{moduledir}/uuid-ossp.so %{extensiondir}/adminpack--*.sql %{extensiondir}/adminpack.control +%{extensiondir}/amcheck--*.sql +%{extensiondir}/amcheck.control +%{extensiondir}/autoinc--*.sql +%{extensiondir}/autoinc.control %{extensiondir}/bloom--*.sql %{extensiondir}/bloom.control %{extensiondir}/btree_gin--*.sql %{extensiondir}/btree_gin.control %{extensiondir}/btree_gist--*.sql %{extensiondir}/btree_gist.control -%{extensiondir}/chkpass--*.sql -%{extensiondir}/chkpass.control %{extensiondir}/citext--*.sql %{extensiondir}/citext.control %{extensiondir}/cube--*.sql @@ -1186,6 +1204,8 @@ fi %{extensiondir}/fuzzystrmatch.control %{extensiondir}/hstore--*.sql %{extensiondir}/hstore.control +%{extensiondir}/insert_username--*.sql +%{extensiondir}/insert_username.control %{extensiondir}/intarray--*.sql %{extensiondir}/intarray.control %{extensiondir}/intagg--*.sql @@ -1194,6 +1214,10 @@ fi %{extensiondir}/isn.control %{extensiondir}/ltree--*.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 @@ -1204,6 +1228,8 @@ fi %{extensiondir}/pg_prewarm.control %{extensiondir}/pg_stat_statements--*.sql %{extensiondir}/pg_stat_statements.control +%{extensiondir}/pg_surgery--*.sql +%{extensiondir}/pg_surgery.control %{extensiondir}/pg_visibility--*.sql %{extensiondir}/pg_visibility.control %{extensiondir}/pgrowlocks--*.sql @@ -1212,6 +1238,8 @@ fi %{extensiondir}/pgstattuple.control %{extensiondir}/postgres_fdw--*.sql %{extensiondir}/postgres_fdw.control +%{extensiondir}/refint--*.sql +%{extensiondir}/refint.control %{extensiondir}/seg--*.sql %{extensiondir}/seg.control %{extensiondir}/sslinfo--*.sql @@ -1227,21 +1255,38 @@ fi %{extensiondir}/uuid-ossp--*.sql %{extensiondir}/uuid-ossp.control %if %{with perl} +%attr(755,root,root) %{moduledir}/bool_plperl.so %attr(755,root,root) %{moduledir}/hstore_plperl.so +%attr(755,root,root) %{moduledir}/jsonb_plperl.so +%{extensiondir}/bool_plperl--*.sql +%{extensiondir}/bool_plperl.control +%{extensiondir}/bool_plperlu--*.sql +%{extensiondir}/bool_plperlu.control %{extensiondir}/hstore_plperl--*.sql %{extensiondir}/hstore_plperl.control %{extensiondir}/hstore_plperlu--*.sql %{extensiondir}/hstore_plperlu.control +%{extensiondir}/jsonb_plperl--*.sql +%{extensiondir}/jsonb_plperl.control +%{extensiondir}/jsonb_plperlu--*.sql +%{extensiondir}/jsonb_plperlu.control %endif %if %{with python} -%attr(755,root,root) %{moduledir}/hstore_plpython2.so -%attr(755,root,root) %{moduledir}/ltree_plpython2.so +%attr(755,root,root) %{moduledir}/hstore_plpython3.so +%attr(755,root,root) %{moduledir}/jsonb_plpython3.so +%attr(755,root,root) %{moduledir}/ltree_plpython3.so %{extensiondir}/hstore_plpythonu--*.sql %{extensiondir}/hstore_plpythonu.control %{extensiondir}/hstore_plpython2u--*.sql %{extensiondir}/hstore_plpython2u.control %{extensiondir}/hstore_plpython3u--*.sql %{extensiondir}/hstore_plpython3u.control +%{extensiondir}/jsonb_plpythonu--*.sql +%{extensiondir}/jsonb_plpythonu.control +%{extensiondir}/jsonb_plpython2u--*.sql +%{extensiondir}/jsonb_plpython2u.control +%{extensiondir}/jsonb_plpython3u--*.sql +%{extensiondir}/jsonb_plpython3u.control %{extensiondir}/ltree_plpythonu--*.sql %{extensiondir}/ltree_plpythonu.control %{extensiondir}/ltree_plpython2u--*.sql @@ -1250,5 +1295,4 @@ fi %{extensiondir}/ltree_plpython3u.control %endif %{pgsqldatadir}/man/man1/oid2name.1* -%{pgsqldatadir}/man/man1/pg_standby.1* %{pgsqldatadir}/man/man1/vacuumlo.1*