Update of postgresql-setup to 3.3
This commit is contained in:
parent
58e1c1f5ad
commit
08eb705370
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
/postgresql-setup-2.0.tar.gz
|
/postgresql-setup-3.3.tar.gz
|
||||||
/postgresql-9.4.1.tar.bz2
|
/postgresql-9.4.1.tar.bz2
|
||||||
/postgresql-9.4.1.tar.bz2.sha256
|
/postgresql-9.4.1.tar.bz2.sha256
|
||||||
/postgresql-9.4.1-US.pdf
|
/postgresql-9.4.1-US.pdf
|
||||||
|
@ -67,7 +67,7 @@ Summary: PostgreSQL client programs
|
|||||||
Name: postgresql
|
Name: postgresql
|
||||||
%global majorversion 9.4
|
%global majorversion 9.4
|
||||||
Version: 9.4.1
|
Version: 9.4.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
|
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
|
||||||
# recognizes it as an independent license, so we do as well.
|
# recognizes it as an independent license, so we do as well.
|
||||||
@ -85,7 +85,7 @@ Url: http://www.postgresql.org/
|
|||||||
%global prevversion 9.3.6
|
%global prevversion 9.3.6
|
||||||
%global prevmajorversion 9.3
|
%global prevmajorversion 9.3
|
||||||
|
|
||||||
%global setup_version 2.0
|
%global setup_version 3.3
|
||||||
|
|
||||||
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
|
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
|
||||||
# The PDF file is generated by generate-pdf.sh, which see for comments
|
# The PDF file is generated by generate-pdf.sh, which see for comments
|
||||||
@ -123,6 +123,9 @@ BuildRequires: perl(ExtUtils::Embed), perl-devel
|
|||||||
BuildRequires: readline-devel zlib-devel
|
BuildRequires: readline-devel zlib-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
|
||||||
|
# postgresql-setup build requires
|
||||||
|
BuildRequires: m4 elinks docbook-utils help2man
|
||||||
|
|
||||||
%if %plpython
|
%if %plpython
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
%endif
|
%endif
|
||||||
@ -394,18 +397,14 @@ find . -type f -name .gitignore | xargs rm
|
|||||||
|
|
||||||
cd postgresql-setup-%{setup_version}
|
cd postgresql-setup-%{setup_version}
|
||||||
|
|
||||||
export POSTGRES_BIN=%{_bindir}/postgres \
|
|
||||||
PG_CTL_BIN=%{_bindir}/pg_ctl \
|
|
||||||
PGVERSION=%{version} \
|
|
||||||
PGMAJORVERSION=%{majorversion} \
|
|
||||||
PGENGINE=%{_bindir} \
|
|
||||||
PREVMAJORVERSION=%{prevmajorversion} \
|
|
||||||
PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin \
|
|
||||||
README_DIST=%{_pkgdocdir}/README.rpm-dist \
|
|
||||||
PKGCONFIG_DIR=%{_sysconfdir}/postgresql
|
|
||||||
%configure \
|
%configure \
|
||||||
--docdir=%{_pkgdocdir}
|
pgdocdir=%{_pkgdocdir} \
|
||||||
|
systemdunitsdir=%{_prefix}/lib/systemd/system \
|
||||||
|
systemduserunitsdir=%{_sysconfdir}/systemd/system \
|
||||||
|
systemdlegacyscriptsdir=%{_libexecdir}/initscripts/legacy-actions \
|
||||||
|
PGVERSION=%{version} \
|
||||||
|
PGMAJORVERSION=%{majorversion} \
|
||||||
|
NAME_DEFAULT_PREV_SERVICE=postgresql
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
cd ..
|
cd ..
|
||||||
@ -644,6 +643,23 @@ cd postgresql-setup-%{setup_version}
|
|||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
# For some reson, specifying %doc %{_pkgdocdir}/README.rpm-dist in %files does
|
||||||
|
# not work (at least on RHEL6) and rpmbuild fails with (it may be known issue
|
||||||
|
# but I was unable to debug properly yet):
|
||||||
|
# error: create archive failed on file
|
||||||
|
# /builddir/.../...-9.4.1/README.rpm-dist: cpio: Bad magic
|
||||||
|
cp $RPM_BUILD_ROOT/%{_pkgdocdir}/README.rpm-dist ./
|
||||||
|
|
||||||
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql.conf <<EOF
|
||||||
|
id postgresql
|
||||||
|
major %{prevmajorversion}
|
||||||
|
data_default %{_localstatedir}/pgsql/data
|
||||||
|
engine %{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin
|
||||||
|
description "Upgrade data from system PostgreSQL version (PostgreSQL %{prevmajorversion})"
|
||||||
|
redhat_sockets_hack no
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-world
|
make DESTDIR=$RPM_BUILD_ROOT install-world
|
||||||
|
|
||||||
%if %plpython3
|
%if %plpython3
|
||||||
@ -1084,6 +1100,7 @@ fi
|
|||||||
%{_datadir}/pgsql/system_views.sql
|
%{_datadir}/pgsql/system_views.sql
|
||||||
%{_datadir}/pgsql/timezonesets/
|
%{_datadir}/pgsql/timezonesets/
|
||||||
%{_datadir}/pgsql/tsearch_data/
|
%{_datadir}/pgsql/tsearch_data/
|
||||||
|
%{_datadir}/postgresql-setup/library.sh
|
||||||
%{_libdir}/pgsql/*_and_*.so
|
%{_libdir}/pgsql/*_and_*.so
|
||||||
%{_libdir}/pgsql/dict_snowball.so
|
%{_libdir}/pgsql/dict_snowball.so
|
||||||
%{_libdir}/pgsql/euc2004_sjis2004.so
|
%{_libdir}/pgsql/euc2004_sjis2004.so
|
||||||
@ -1094,6 +1111,9 @@ fi
|
|||||||
%{_libexecdir}/initscripts/legacy-actions/postgresql/*
|
%{_libexecdir}/initscripts/legacy-actions/postgresql/*
|
||||||
%{_libexecdir}/postgresql-check-db-dir
|
%{_libexecdir}/postgresql-check-db-dir
|
||||||
%{_libexecdir}/postgresql-ctl
|
%{_libexecdir}/postgresql-ctl
|
||||||
|
%dir %{_sysconfdir}/postgresql-setup
|
||||||
|
%dir %{_sysconfdir}/postgresql-setup/upgrade
|
||||||
|
%config %{_sysconfdir}/postgresql-setup/upgrade/*.conf
|
||||||
%{_mandir}/man1/initdb.*
|
%{_mandir}/man1/initdb.*
|
||||||
%{_mandir}/man1/pg_basebackup.*
|
%{_mandir}/man1/pg_basebackup.*
|
||||||
%{_mandir}/man1/pg_controldata.*
|
%{_mandir}/man1/pg_controldata.*
|
||||||
@ -1171,6 +1191,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 25 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-3
|
||||||
|
- update to postgresql-setup 3.3
|
||||||
|
|
||||||
* Thu Mar 19 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-2
|
* Thu Mar 19 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-2
|
||||||
- Adding tcl-pgtcl into Requires of -tcl subpackage
|
- Adding tcl-pgtcl into Requires of -tcl subpackage
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1,4 +1,4 @@
|
|||||||
8323008e726a84d76c3153ed68357576 postgresql-setup-2.0.tar.gz
|
4333e467db490f5721452640d2bf9cd2 postgresql-setup-3.3.tar.gz
|
||||||
2cf30f50099ff1109d0aa517408f8eff postgresql-9.4.1.tar.bz2
|
2cf30f50099ff1109d0aa517408f8eff postgresql-9.4.1.tar.bz2
|
||||||
5da9a8b75e0a18841f561049b1e670bd postgresql-9.4.1.tar.bz2.sha256
|
5da9a8b75e0a18841f561049b1e670bd postgresql-9.4.1.tar.bz2.sha256
|
||||||
940a0ef3c49e19678e59a9a6b6ee143e postgresql-9.4.1-US.pdf
|
940a0ef3c49e19678e59a9a6b6ee143e postgresql-9.4.1-US.pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user