Compare commits

...

5 Commits

Author SHA1 Message Date
Petr Kubat
5384f29bb5 New upstream release 11.4
Per release notes:
https://www.postgresql.org/docs/11/release-11-4.html
2019-07-11 12:12:00 +02:00
Patrik Novotný
2f68db2757 New upstream release 11.3
Per release notes:
    https://www.postgresql.org/docs/11/release-11-3.html

    Version: 11.3-1
2019-05-09 14:49:18 +02:00
Patrik Novotný
0167123a1e Rebase to upstream release 11.2
Per release notes:
https://www.postgresql.org/docs/11/release-11-2.html

Version: 11.2-1
Fixes: PR#13
2019-02-15 09:59:59 +01:00
Pavel Raiskup
0e1d41d7ef postgresql-devel forward-compat provides on Fedora <= 29
Version: 11.1-3
2019-01-17 14:57:31 +01:00
Pavel Raiskup
8283334649 Modular PostgreSQL server
This has compat fixes for both Fedora <= 29, and fedora > 29.
This is temporary hack, till modularity allows us to have two
separate git commits/branches for one stream:
https://pagure.io/modularity/issue/109

See also stream-postgresql-10/stream-postgresql-11 branches.

Version: 11.1-2
2018-12-12 12:38:23 +01:00
2 changed files with 119 additions and 21 deletions

View File

@ -55,10 +55,15 @@
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_of_Additional_RPM_Macros
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
%if 0%{?fedora} > 29
%global external_libs 1
%endif
Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 11
Version: 11.1
Version: 11.4
%{?dirty_hack_epoch}
Release: 1%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
@ -71,12 +76,12 @@ 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 10.6
%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.2
%global setup_version 8.4
%global service_name postgresql.service
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
@ -170,6 +175,11 @@ BuildRequires: systemtap-sdt-devel
BuildRequires: libselinux-devel
%endif
%if ! 0%{?external_libs}
# main package requires -libs subpackage
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%endif
# https://bugzilla.redhat.com/1464368
%global __provides_exclude_from %{_libdir}/pgsql
@ -183,17 +193,34 @@ over a network connection. The PostgreSQL server can be found in the
postgresql-server sub-package.
%if ! 0%{?external_libs}
%package libs
Summary: The shared libraries required for any PostgreSQL clients
Group: Applications/Databases
Provides: libpq.so = %{version}-%{release}
# for /sbin/ldconfig
Requires(post): glibc
requires(postun): glibc
%description libs
The postgresql-libs package provides the essential shared libraries for any
PostgreSQL client program or interface. You will need to install this package
to use any other PostgreSQL package or any clients that need to connect to a
PostgreSQL server.
%endif
%package server
Summary: The programs needed to create and run a PostgreSQL server
Group: Applications/Databases
Requires: %{name}%{?_isa} = %precise_version
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
Requires(pre): /usr/sbin/useradd
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
Requires: systemd
# Make sure it's there when scriptlets run, too
%{?systemd_requires}
# Packages which provide postgresql plugins should build-require
# postgresql-server-devel and require
# postgresql-(server-)devel and require
# postgresql-server(:MODULE_COMPAT_%%{postgresql_major}).
# This will automatically guard against incompatible server & plugin
# installation (#1008939, #1007840)
@ -224,19 +251,27 @@ and source files for the PostgreSQL tutorial.
Summary: Extension modules distributed with PostgreSQL
Group: Applications/Databases
Requires: %{name}%{?_isa} = %precise_version
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
%description contrib
The postgresql-contrib package contains various extension modules that are
included in the PostgreSQL distribution.
%package server-devel
%package %{?external_libs:server-}devel
Summary: PostgreSQL development header files and libraries
Group: Development/Libraries
%if 0%{!?external_libs:1}
Requires: %{name}-libs%{?_isa} = %precise_version
Provides: libpq-devel = %precise_version
Provides: libecpg-devel = %precise_version
Provides: postgresql-server-devel = %precise_version
%endif
%description %{?external_libs:server-}devel
Package contains the header files and configuration needed to compile PostgreSQL
server extension.
%description server-devel
The postgresql-server-devel package contains the header files and configuration
needed to compile PostgreSQL server extension.
%package test-rpm-macros
Summary: Convenience RPM macros for build-time testing against PostgreSQL server
@ -249,7 +284,7 @@ that want to run build-time testsuite against running PostgreSQL server.
%package static
Summary: Statically linked PostgreSQL libraries
Requires: %{name}-server-devel%{?_isa} = %precise_version
Requires: %{name}-%{?external_libs:server-}devel%{?_isa} = %precise_version
%description static
Statically linked PostgreSQL libraries that do not have dynamically linked
@ -261,6 +296,7 @@ counterparts.
Summary: Support for upgrading from the previous major release of PostgreSQL
Group: Applications/Databases
Requires: %{name}-server%{?_isa} = %precise_version
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
Provides: bundled(postgresql-server) = %prevversion
%description upgrade
@ -343,7 +379,7 @@ Install this if you want to write database functions in Tcl.
Summary: The test suite distributed with PostgreSQL
Group: Applications/Databases
Requires: %{name}-server%{?_isa} = %precise_version
Requires: %{name}-server-devel%{?_isa} = %precise_version
Requires: %{name}-%{?external_libs:server-}devel%{?_isa} = %precise_version
%description test
The postgresql-test package contains files needed for various tests for the
@ -365,8 +401,10 @@ benchmarks.
%patch2 -p1
%patch5 -p1
%patch6 -p1
%if 0%{?external_libs}
%patch8 -p1
%patch9 -p1
%endif
# We used to run autoconf here, but there's no longer any real need to,
# since Postgres ships with a reasonably modern configure script.
@ -670,12 +708,17 @@ EOF
make DESTDIR=$RPM_BUILD_ROOT install-world
# We ship pg_config through libpq-devel
%if 0%{?external_libs}
# We ship pg_config in libpq-devel
mv $RPM_BUILD_ROOT/%_mandir/man1/pg_{,server_}config.1
rm $RPM_BUILD_ROOT/%_includedir/pg_config*.h
rm $RPM_BUILD_ROOT/%_includedir/libpq/libpq-fs.h
rm $RPM_BUILD_ROOT/%_includedir/postgres_ext.h
rm -r $RPM_BUILD_ROOT/%_includedir/pgsql/internal/
%else
# We ship pg_config in postgresql-devel
ln -s pg_config $RPM_BUILD_ROOT%_bindir/pg_server_config
%endif
%if %plpython3
mv src/Makefile.global src/Makefile.global.save
@ -693,6 +736,11 @@ install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/extension
# multilib header hack
for header in \
%if ! 0%{?external_libs}
%{_includedir}/pg_config.h \
%{_includedir}/pg_config_ext.h \
%{_includedir}/ecpg_config.h \
%endif
%{_includedir}/pgsql/server/pg_config.h \
%{_includedir}/pgsql/server/pg_config_ext.h
do
@ -723,7 +771,7 @@ install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/backups
# postgres' .bash_profile
install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/.bash_profile
rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1
%{?external_libs:rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1}
%if %upgrade
pushd postgresql-%{prevversion}
@ -802,7 +850,11 @@ mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
# remove files not to be packaged
%if 0%{?external_libs}
rm $RPM_BUILD_ROOT%{_libdir}/libpgfeutils.a
%else
rm $RPM_BUILD_ROOT%{_libdir}/lib{ecpg,pq,ecpg_compat,pgfeutils,pgtypes}.a
%endif
%if !%plperl
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
@ -822,7 +874,8 @@ find_lang_bins ()
cat "$binary"-%{majorversion}.lang >>"$lstfile"
done
}
find_lang_bins devel.lst pg_server_config
find_lang_bins devel.lst %{?external_libs:pg_server_config}%{?!external_libs:pg_config ecpg}
%{!?external_libs:find_lang_bins libs.lst ecpglib6 libpq5}
find_lang_bins server.lst \
initdb pg_basebackup pg_controldata pg_ctl pg_resetwal pg_rewind plpgsql \
postgres pg_verify_checksums
@ -1066,6 +1119,16 @@ make -C postgresql-setup-%{setup_version} check
%{_libdir}/pgsql/pgxml.so
%endif
%if ! 0%{?external_libs}
%files libs -f libs.lst
%doc COPYRIGHT
%dir %{_libdir}/pgsql
%{_libdir}/libecpg.so.*
%{_libdir}/libecpg_compat.so.*
%{_libdir}/libpgtypes.so.*
%{_libdir}/libpq.so.*
%endif
%files server -f server.lst
%{_bindir}/initdb
%{_bindir}/pg_basebackup
@ -1134,16 +1197,32 @@ make -C postgresql-setup-%{setup_version} check
%endif
%if 0%{?external_libs}
%files server-devel -f devel.lst
%{_bindir}/pg_server_config
%dir %{_datadir}/pgsql
%{_datadir}/pgsql/errcodes.txt
%dir %{_includedir}/pgsql
%{_includedir}/pgsql/server
%{_libdir}/pgsql/pgxs/
%{_mandir}/man1/pg_server_config.*
%else
%files devel -f devel.lst
%{_bindir}/ecpg
%{_bindir}/pg_config
%{_bindir}/pg_server_config
%{_includedir}/*
%{_libdir}/libecpg.so
%{_libdir}/libecpg_compat.so
%{_libdir}/libpgtypes.so
%{_libdir}/libpq.so
%{_libdir}/pgsql/pgxs/
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/ecpg.*
%{_mandir}/man1/pg_config.*
%endif
%{_mandir}/man3/SPI_*
%{macrosdir}/macros.%name
%dir %{_datadir}/pgsql
%{_datadir}/pgsql/errcodes.txt
%files test-rpm-macros
@ -1211,6 +1290,25 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* 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
* Thu May 09 2019 Patrik Novotný <panovotn@redhat.com> - 11.3-1
- New postgresql-setup 8.4
- New upstream release 11.3
https://www.postgresql.org/docs/11/release-11-3.html
* Thu Feb 14 2019 Patrik Novotný <panovotn@redhat.com> - 11.2-1
- Rebase to upstream release 11.2
https://www.postgresql.org/docs/11/release-11-2.html
* Thu Jan 17 2019 Pavel Raiskup <praiskup@redhat.com> - 11.1-3
- provide postgresql-server-devel in postgresql-devel
* Wed Dec 12 2018 Pavel Raiskup <praiskup@redhat.com> - 11.1-2
- modularize into stream-postgresql-11 branch
* Wed Nov 07 2018 Patrik Novotný <panovotn@redhat.com> - 11.1-1
- Rebase to upstream release 11.1
https://www.postgresql.org/docs/11/release-11-1.html

12
sources
View File

@ -1,6 +1,6 @@
SHA512 (postgresql-10.6.tar.bz2) = 5d4d5cee2a19ad1820c3411bc4851904e3059cdcacc837350694d54d7d59260b66c565c72cc14a3a10541a8fc49c5185f08f57b7a8c7e4c64ed2614da6e1201f
SHA512 (postgresql-10.6.tar.bz2.sha256) = 3cab4df3b32896b7053da17c27b91b8b821e2bdedba775eca6c001fcf38f65e5ab88f3aea80c549a2e361ad4b511154c0850d6038d1d2fe9966d0c6c64040597
SHA512 (postgresql-11.1.tar.bz2) = 35d00984e9f5f063a5b96e97aa1b40381ab76d07b2336bda5981fd80bef1324f56eefca5069ae78770ecd6ece5df85264e599fdb3478ecb71d4fdd0d7b6becca
SHA512 (postgresql-11.1.tar.bz2.sha256) = bd0c4b328cf558db1a1b6fea963b1c9e778ad82b9c0dcd054fa11ab9c6184fc60ad5ce937625851f03ba907850f675db297dba706be8c1730c6a10ac8f271133
SHA512 (postgresql-setup-8.2.tar.gz) = b21ec508e207074ae1f5259479415f99301ae58a766d476a16fec620b7778ef6e5d32fa1d2cc0060cbfc5eee328a9495182500a8f2f8573ef20c359c290d8430
SHA512 (postgresql-11.1-US.pdf) = 83860fa81be922b6cf2841ec563e7880748ce2522738d467a7189119f313b94c580102b5056c4db2a42201fe091b84d5b8b36033e0a563069c25f2af28578179
SHA512 (postgresql-10.9.tar.bz2) = 4e2f30a0fd262f2e3ce5fc836425be635326600cd6cd4e117c57f59ea7ab2e9ea463a8d357fe7adb8c0dd0094e43d08efc2a137f8f9975715a5908e35920f98e
SHA512 (postgresql-10.9.tar.bz2.sha256) = 95b1a8bdc442ea79d82d0362cef048af851999b3e79764b0dfbc19742814e2be5fb6132b1b4bdac24b6ee0965e8825872c37c9a45038e9da5ccb85fc6498af57
SHA512 (postgresql-11.4.tar.bz2) = 159fb84134e05ddc58e40a879ca52ed4d58ced7bcd1e7310d59bda84f9055339a31a92cfaab2c063a88685f7417b9a828534394bf9a2477fc33d1fb6cd26186b
SHA512 (postgresql-11.4.tar.bz2.sha256) = 9cceb9ae6403ad97ba3ae7f3eac67576b6fa216a65feb509217d4b69d2d53d3cc50160508a24770f4b9e450c97832494228b2644f0f8522d4c5a49540bf40ad7
SHA512 (postgresql-setup-8.4.tar.gz) = eb73767d5c676481598aeb545e15027a29a438aa29480ad414f6af31c9df61138a51f5425999b4b35e776a3dbbb28c887790ea9771abc3328158dd1d34b1dce1
SHA512 (postgresql-11.4-US.pdf) = 43098eb35d1a3c50e1e3dc06cd0658bf2d61ee1550d2199bc2bbb659cd73b5885609254c32687add1264eba70bb672f1e1dc9b70c798a04ae26b8eab1625b7e5