Update to PostgreSQL 9.2.1

This commit is contained in:
Tom Lane 2012-09-24 11:33:10 -04:00
parent 795d3d1431
commit 36551c37db
3 changed files with 18 additions and 24 deletions

6
.gitignore vendored
View File

@ -1,3 +1,3 @@
/postgresql-9.2.0.tar.bz2
/postgresql-9.2.0-US.pdf
/postgresql-9.1.5.tar.bz2
/postgresql-9.2.1.tar.bz2
/postgresql-9.2.1-US.pdf
/postgresql-9.1.6.tar.bz2

View File

@ -53,7 +53,7 @@
Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 9.2
Version: 9.2.0
Version: 9.2.1
Release: 1%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
@ -68,7 +68,7 @@ Url: http://www.postgresql.org/
# This SRPM includes a copy of the previous major release, which is needed for
# 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.
%global prevversion 9.1.5
%global prevversion 9.1.6
%global prevmajorversion 9.1
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
@ -97,7 +97,6 @@ Patch3: postgresql-perl-rpath.patch
Patch4: postgresql-config-comment.patch
Patch5: postgresql-multi-sockets.patch
Patch6: postgresql-var-run-socket.patch
Patch7: postgresql-python3.patch
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel
@ -325,7 +324,6 @@ benchmarks.
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
# We used to run autoconf here, but there's no longer any real need to,
# since Postgres ships with a reasonably modern configure script.
@ -772,10 +770,7 @@ cat psql-%{majorversion}.lang >>main.lst
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
%post server
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%systemd_post postgresql.service
# Run this when upgrading from SysV initscript to native systemd unit
%triggerun server -- postgresql-server < %{first_systemd_version}
@ -789,18 +784,10 @@ fi
/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || :
%preun server
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable postgresql.service >/dev/null 2>&1 || :
/bin/systemctl stop postgresql.service >/dev/null 2>&1 || :
fi
%systemd_preun postgresql.service
%postun server
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || :
fi
%systemd_postun_with_restart postgresql.service
# FILES section.
@ -1070,6 +1057,13 @@ fi
%endif
%changelog
* Mon Sep 24 2012 Tom Lane <tgl@redhat.com> 9.2.1-1
- Update to PostgreSQL 9.2.1, for various fixes described at
http://www.postgresql.org/docs/9.2/static/release-9-2-1.html
including a nasty data-loss bug
- Adopt new systemd macros for server package install/uninstall triggers
Resolves: #850277
* Mon Sep 10 2012 Tom Lane <tgl@redhat.com> 9.2.0-1
- Update to PostgreSQL 9.2.0 (major version bump);
in-place upgrade support now works from 9.1.x as the previous version

View File

@ -1,3 +1,3 @@
8c4c32a4abe8cf61b02c8366181ede50 postgresql-9.2.0.tar.bz2
38951718e05922310a0397e2dcbf9330 postgresql-9.2.0-US.pdf
c784decb60615aa94c6a31601bc6ffd2 postgresql-9.1.5.tar.bz2
c0b4799ea9850eae3ead14f0a60e9418 postgresql-9.2.1.tar.bz2
4b9572104e8ffa86de9dda1981c92791 postgresql-9.2.1-US.pdf
000755f66c0de58bbd4cd2b89b45b8e2 postgresql-9.1.6.tar.bz2