summaryrefslogtreecommitdiffstats
path: root/postgresql.spec
diff options
context:
space:
mode:
authorTom Lane <tgl@fedoraproject.org>2005-02-21 21:44:36 +0000
committerTom Lane <tgl@fedoraproject.org>2005-02-21 21:44:36 +0000
commit26b954acadd443bfa51fbc04dde1727546aa4d24 (patch)
tree8b1910d0839b66e655613664004ed2683d671a19 /postgresql.spec
parenteb3bf28c7e376f8f302ebdd6cd53b2aef7b0485a (diff)
downloadpostgresql-setup-26b954acadd443bfa51fbc04dde1727546aa4d24.tar.gz
postgresql-setup-26b954acadd443bfa51fbc04dde1727546aa4d24.tar.xz
postgresql-setup-26b954acadd443bfa51fbc04dde1727546aa4d24.zip
Minor bug fixes in init script.postgresql-8_0_1-2
Diffstat (limited to 'postgresql.spec')
-rwxr-xr-xpostgresql.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/postgresql.spec b/postgresql.spec
index df07a62..ac60dbc 100755
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -64,7 +64,7 @@ Version: 8.0.1
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server
# -- only test releases or full releases should be.
-Release: 1
+Release: 2
License: BSD
Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
@@ -483,7 +483,8 @@ cp src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
if [ -d /etc/rc.d/init.d ]
then
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
- install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
+ sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE3} >postgresql.init
+ install -m 755 postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
fi
# Remove stuff we don't want to ship.
@@ -784,6 +785,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2
+- Repair improper error message in init script when PGVERSION doesn't match.
+- Arrange for auto update of version embedded in init script.
+
* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1
- Update to PostgreSQL 8.0.1.
- Add versionless symlinks to jar files (bz#145744)