summaryrefslogtreecommitdiffstats
path: root/postgresql91
diff options
context:
space:
mode:
authorHonza Horák <hhorak@redhat.com>2012-10-03 10:26:04 +0200
committerHonza Horák <hhorak@redhat.com>2012-10-03 10:26:04 +0200
commit86c37f1ed7234681c9d4db4a8d06ef1ed6cd8b6a (patch)
tree650cb43dfedb8000fcbfeee03dcb88e2aa36144d /postgresql91
downloaddsc-86c37f1ed7234681c9d4db4a8d06ef1ed6cd8b6a.tar.gz
dsc-86c37f1ed7234681c9d4db4a8d06ef1ed6cd8b6a.tar.xz
dsc-86c37f1ed7234681c9d4db4a8d06ef1ed6cd8b6a.zip
Initial commit
Diffstat (limited to 'postgresql91')
-rw-r--r--postgresql91/PyGreSQL.spec95
-rw-r--r--postgresql91/meta-postgresql-9.1.spec60
-rw-r--r--postgresql91/perl-DBD-Pg.spec309
-rw-r--r--postgresql91/postgresql-odbc.spec210
-rw-r--r--postgresql91/postgresql.spec1586
-rw-r--r--postgresql91/ruby-postgres.spec107
-rw-r--r--postgresql91/rubygem-pg.spec148
7 files changed, 2515 insertions, 0 deletions
diff --git a/postgresql91/PyGreSQL.spec b/postgresql91/PyGreSQL.spec
new file mode 100644
index 0000000..0fca5d4
--- /dev/null
+++ b/postgresql91/PyGreSQL.spec
@@ -0,0 +1,95 @@
+# Sets %%pkg_name to 'PyGreSQL' if we build for scl.
+%{?scl:%scl_package PyGreSQL}
+# If we don't build for scl, then pkg_name is empty.
+# This way, we can always use %%pkg_name for 'PyGreSQL', be it scl build or not.
+%{!?scl:%global pkg_name PyGreSQL}
+# %%{name} then references to either 'PyGreSQL' (not in scl) or '%%{?scl:%scl_prefix}PyGreSQL' (in scl).
+
+Name: %{?scl_prefix}PyGreSQL
+Version: 4.0
+Release: 4%{?dist}
+Summary: A Python client library for PostgreSQL
+
+Group: Applications/Databases
+URL: http://www.pygresql.org/
+# Author states his intention is to dual license under PostgreSQL or Python
+# licenses --- this is not too clear from the current tarball documentation,
+# but hopefully will be clearer in future releases.
+# The PostgreSQL license is very similar to other MIT licenses, but the OSI
+# recognizes it as an independent license, so we do as well.
+License: PostgreSQL or Python
+
+Source0: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-%{version}.tgz
+
+Patch1: PyGreSQL-set-decimal.patch
+
+# PyGreSQL was originally shipped as a sub-RPM of the PostgreSQL package;
+# these Provides/Obsoletes give a migration path. Note there is no
+# intention of changing the version numbers in future.
+Provides: %{?scl_prefix}postgresql-python = 8.5.0-1
+Obsoletes: %{?scl_prefix}postgresql-python < 8.5
+
+BuildRequires: %{?scl_prefix}postgresql-devel python-devel
+
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+%description
+PostgreSQL is an advanced Object-Relational database management system.
+The PyGreSQL package provides a module for developers to use when writing
+Python code for accessing a PostgreSQL database.
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+%patch1 -p1
+
+# Some versions of PyGreSQL.tgz contain wrong file permissions
+chmod 755 tutorial
+chmod 644 tutorial/*.py
+
+%build
+%{?scl:scl enable %scl - << \EOF}
+CFLAGS="%{optflags}" %{__python} setup.py build
+%{?scl:EOF}
+
+%install
+%{?scl:scl enable %scl - << \EOF}
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT%{?scl:%_scl_root}
+%{?scl:EOF}
+
+%files
+%defattr(-,root,root,-)
+%doc docs/*.txt
+%doc tutorial
+%{?scl:%_scl_root}%{python_sitearch}/*.so
+%{?scl:%_scl_root}%{python_sitearch}/*.py
+%{?scl:%_scl_root}%{python_sitearch}/*.pyc
+%{?scl:%_scl_root}%{python_sitearch}/*.pyo
+%{?scl:%_scl_root}%{python_sitearch}/*.egg-info
+
+%changelog
+* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Thu Jul 7 2011 Tom Lane <tgl@redhat.com> 4.0-3
+- Add upstream patch for set_decimal bug
+Resolves: #719093
+
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 4.0-1
+- Update to PyGreSQL 4.0
+- Relabel license as PostgreSQL now that that's separately recognized by OSI.
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.8.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Tue Nov 24 2009 Tom Lane <tgl@redhat.com> 3.8.1-2
+- Fix License tag and permissions on example scripts under tutorial/,
+ per discussion in package review request.
+Related: #452321
+
+* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 3.8.1-1
+- Created package by stripping down postgresql specfile and adjusting
+ to meet current packaging guidelines for python modules.
diff --git a/postgresql91/meta-postgresql-9.1.spec b/postgresql91/meta-postgresql-9.1.spec
new file mode 100644
index 0000000..82fbf79
--- /dev/null
+++ b/postgresql91/meta-postgresql-9.1.spec
@@ -0,0 +1,60 @@
+%{!?scl:%global scl postgresql-9.1}
+%scl_package %scl
+
+Summary: Package that installs %scl
+Name: %scl_name
+Version: 1
+Release: 1%{?dist}
+BuildArch: noarch
+License: GPLv2+
+Group: Applications/File
+Requires: scl-utils
+Requires: %{scl_prefix}postgresql
+BuildRequires: scl-utils-build
+
+%description
+This is the main package for %scl Software Collection.
+
+%package runtime
+Summary: Package that handles %scl Software Collection.
+Group: Applications/File
+Requires: scl-utils
+
+%description runtime
+Package shipping essential scripts to work with %scl Software Collection.
+
+%package build
+Summary: Package shipping basic build configuration
+Group: Applications/File
+
+%description build
+Package shipping essential configuration macros to build %scl Software Collection.
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_scl_scripts}/root
+
+# During the build of this package, we don't know which architecture it is
+# going to be used on, so if we build on 64-bit system and use it on 32-bit,
+# the %{_libdir} would stay expanded to '.../lib64'. This way we determine
+# architecture everytime the 'scl enable ...' is run and set the
+# LD_LIBRARY_PATH accordingly
+cat >> %{buildroot}%{_scl_scripts}/enable << EOF
+export PATH=%{_bindir}:\$PATH
+export LIBRARY_PATH=%{_scl_root}`rpm -E %%_libdir`:\$LIBRARY_PATH
+export LD_LIBRARY_PATH=%{_scl_root}`rpm -E %%_libdir`:\$LD_LIBRARY_PATH
+EOF
+%scl_install
+
+%files
+
+%files runtime
+%scl_files
+
+%files build
+%{_root_sysconfdir}/rpm/macros.%{scl}-config
+
+%changelog
+* Mon Mar 19 2012 Honza Horak <hhorak@redhat.com> 1-1
+- initial packaging
+
diff --git a/postgresql91/perl-DBD-Pg.spec b/postgresql91/perl-DBD-Pg.spec
new file mode 100644
index 0000000..cbfcf8b
--- /dev/null
+++ b/postgresql91/perl-DBD-Pg.spec
@@ -0,0 +1,309 @@
+# Sets %%pkg_name to 'perl-DBD-Pg' if we build for scl.
+%{?scl:%scl_package perl-DBD-Pg}
+# If we don't build for scl, then pkg_name is empty.
+# This way, we can always use %%pkg_name for 'perl-DBD-Pg', be it scl build or not.
+%{!?scl:%global pkg_name perl-DBD-Pg}
+# %%{name} then references to either 'perl-DBD-Pg' (not in scl) or '%%{?scl:%scl_prefix}perl-DBD-Pg' (in scl).
+
+Name: %{?scl:%scl_prefix}perl-DBD-Pg
+Summary: A PostgreSQL interface for perl
+Version: 2.19.2
+Release: 1%{?dist}
+License: GPLv2+ or Artistic
+Group: Development/Libraries
+Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz
+URL: http://search.cpan.org/dist/DBD-Pg/
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# Prevent bug #443495
+BuildRequires: perl(DBI) >= 1.607
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::More) >= 0.61
+BuildRequires: perl(version)
+BuildRequires: %{?scl:%scl_prefix}postgresql-devel >= 7.4
+BuildRequires: perl(Test::Simple), %{?scl:%scl_prefix}postgresql-server
+
+Requires: perl(DBI) >= 1.52
+# test requirements
+Requires: perl(Data::Peek)
+# Missed by the find provides script:
+Provides: %{?scl:%scl_prefix}perl(DBD::Pg) = %{version}
+
+%filter_from_provides /perl(DBD::Pg)$/d
+%{?perl_default_filter}
+%{?perl_default_subpackage_tests}
+
+%description
+DBD::Pg is a Perl module that works with the DBI module to provide access
+to PostgreSQL databases.
+
+%prep
+%setup -q -n DBD-Pg-%{version}
+
+%build
+%{?scl:scl enable %scl - << \EOF}
+%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+%{?scl:EOF}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
+
+%check
+# Full test coverage requires a live PostgreSQL database (see the README file)
+#export DBI_DSN=dbi:Pg:dbname=<database>
+#export DBI_USER=<username>
+#export DBI_PASS=<password>
+# If variables undefined, package test will create it's own database. All
+# tests pass then if LC_ALL=C. Otherwise
+# <https://rt.cpan.org/Public/Bug/Display.html?id=56705> appears.
+#LC_ALL=C make test
+
+%files
+%doc Changes README README.dev TODO
+%{?scl:%_scl_root}%{perl_vendorarch}/DBD/
+%{?scl:%_scl_root}%{perl_vendorarch}/auto/DBD/
+%{?scl:%_scl_root}%{perl_vendorarch}/Bundle/DBD/Pg.pm
+%{_mandir}/man3/*.3*
+
+
+%changelog
+* Wed Mar 14 2012 Marcela Mašláňová <mmaslano@redhat.com> 2.19.2-1
+- bump to 2.19.2
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-3
+- Perl mass rebuild
+
+* Mon Apr 4 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-2
+- add requirement for test file
+
+* Tue Mar 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-1
+- update to 2.18.0
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Nov 24 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.17.2-1
+- update by Fedora::App::MaintainerTools 0.006
+- updating to latest GA CPAN version (2.17.2)
+
+* Thu Sep 30 2010 Petr Sabata <psabata@redhat.com> - 2.17.1-3
+- Fixing BuildRequires (perl-version, Test::More)
+- Re-enabling tests
+- Resolves: rhbz#633108
+
+* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.17.1-2
+- Mass rebuild with perl-5.12.0
+
+* Tue Apr 27 2010 Petr Pisar <ppisar@redhat.com> - 2.17.1-1
+- upstream released 2.17.1
+- GPL+ license corrected to GPLv2+
+- enable and run %%check in C locale
+
+* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 2.15.1-3
+- drop patch that was upstreamed long ago (<=2.8.7)
+
+* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-2
+- rebuild against perl 5.10.1
+
+* Thu Sep 24 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-1
+- new upstream version
+- add versioned provide (#525502)
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> - 2.13.1-2
+- rebuild against perl-DBI-1.609
+
+* Mon May 4 2009 Stepan Kasal <skasal@redhat.com> - 2.13.1-1
+- new upstream release, also fixes #498899
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.6-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Dec 5 2008 Stepan Kasal <skasal@redhat.com> - 2.11.6-2
+- fix the source URL
+
+* Fri Dec 5 2008 Marcela Mašláňová <mmaslano@redhat.com> - 2.11.6-1
+- update
+
+* Fri Oct 31 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.11.2-1
+- update to 2.11.2
+
+* Mon Aug 29 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.10.0-1
+- update to 2.10.0
+
+* Mon Aug 25 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.9.2-1
+- update to 2.9.2
+
+* Mon Jul 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.8.7-1
+- new version has Pg.pm twice in two locations
+- update
+
+* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-9
+- Rebuild for perl 5.10 (again)
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.49-8
+- Autorebuild for GCC 4.3
+
+* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-7
+- rebuild for new perl
+
+* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-6
+- Apply changes from package review.
+- Resolves: bz#226252
+
+* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-5.1
+- add BR: perl(ExtUtils::MakeMaker)
+
+* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-5
+- Fix license tag
+- Add %%doc
+- Remove explicit Provides: perl(DBD::Pg) = %%{version}
+- Other cleanups
+
+* Tue Jul 17 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-4
+- Fix summary
+
+* Tue Dec 06 2006 Robin Norwood <rnorwood@redhat.com> - 1.49-3
+- rebuild for new version of postgres.
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.49-2
+- rebuild
+
+* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 1.49-1
+- Upgrade to upstream version 1.49
+
+* Wed Apr 12 2006 Jason Vas Dias <jvdias@redhat.com> - 1.48-1
+- Upgrade to upstream version 1.48
+
+* Wed Mar 22 2006 Jason Vas Dias <jvdias@redhat.com> - 1.47-1
+- Upgrade to upstream version 1.47
+
+* Wed Mar 08 2006 Jason Vas Dias <jvdias@redhat.com> - 1.45-1
+- Upgrade to upstream version 1.45
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.43-2.2.2
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.43-2.2.1
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.43-2.2
+- rebuild for new perl-5.8.8
+
+* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt for new gcc
+
+* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt for new gcj
+
+* Thu Nov 03 2005 Florian La Roche <laroche@redhat.com>
+- make sure correct Provides: are generated for this module
+
+* Tue Jun 28 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.43-1
+- Update to 1.43 (corrects #156840).
+
+* Thu May 19 2005 Warren Togami <wtogami@redhat.com> - 1.41-2
+- Disable gcc optimization to workaround broken placeholders (#156840)
+
+* Wed Apr 13 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.41-1
+- Update to 1.41.
+- Updated the requirements versions.
+- Specfile cleanup. (#154203)
+
+* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 1.40-2
+- rebuild for new libpq soname
+
+* Thu Mar 31 2005 Warren Togami <wtogami@redhat.com> 1.40-1
+- 1.40
+
+* Tue Oct 12 2004 Chip Turner <cturner@redhat.com> 1.32-1
+- bugzilla: 127755, update to 1.32
+
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.31-2
+- rebuild
+
+* Thu Dec 11 2003 Chip Turner <cturner@redhat.com> 1.31-1
+- update to 1.31
+
+* Mon Jul 7 2003 Chip Turner <cturner@redhat.com> 1.22-1
+- move to upstream 1.22
+
+* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
+- version bump and rebuild
+
+* Mon Jan 13 2003 Chip Turner <cturner@redhat.com>
+- update to 1.21
+
+* Sat Dec 14 2002 Chip Turner <cturner@redhat.com>
+- don't use internal rpm dep generator
+
+* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
+- rebuild
+
+* Wed Aug 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-5
+- Rebuild
+
+* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-4
+- Rebuild, to fix #66304
+
+* Wed Jun 5 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-3
+- Integrate with newer perl
+
+* Thu May 23 2002 Tim Powers <timp@redhat.com>
+- automated rebuild
+
+* Tue May 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-1
+- 1.13
+
+* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-8
+- Rebuild
+
+* Thu Feb 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-7
+- Rebuild
+
+* Thu Jan 31 2002 Tim Powers <timp@redhat.com>
+- rebuild to solve more deps
+
+* Tue Jan 29 2002 Bill Nottingham <notting@redhat.com> 1.01-5
+- rebuild (dependencies)
+
+* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-4
+- Rebuild
+
+* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
+- automated rebuild
+
+* Tue Jan 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-2
+- Rebuild
+
+* Sun Jul 1 2001 Trond Eivind Glomsrød <teg@redhat.com>
+- 1.01 bugfix release ("bytea" coredumped with values outside 0...127)
+- Add perl-DBI and perl to BuildRequires (they were just in Requires: previously)
+
+* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
+- 1.00
+- change group to Applications/Databases from Applications/CPAN
+
+* Tue May 1 2001 Trond Eivind Glomsrød <teg@redhat.com>
+- 0.98, for postgresql-7.1
+- add doc files
+- cleanups
+
+* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
+- First cut
diff --git a/postgresql91/postgresql-odbc.spec b/postgresql91/postgresql-odbc.spec
new file mode 100644
index 0000000..2a18aa9
--- /dev/null
+++ b/postgresql91/postgresql-odbc.spec
@@ -0,0 +1,210 @@
+%{?scl:%scl_package postgresql-odbc}
+
+Name: %{?scl_prefix}postgresql-odbc
+Summary: PostgreSQL ODBC driver
+Version: 09.01.0100
+Release: 1%{?dist}
+License: LGPLv2+
+Group: Applications/Databases
+URL: http://psqlodbc.projects.postgresql.org/
+
+Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz
+
+# CAUTION: acinclude.m4 has to be kept in sync with package's aclocal.m4.
+# This is a kluge that ought to go away, but upstream currently isn't
+# shipping their custom macros anywhere except in aclocal.m4. (The macros
+# actually come from the Postgres source tree, but we haven't got that
+# available while building this RPM.) To generate: in psqlodbc source tree,
+# aclocal -I . -I $PGSRC/config
+# then strip aclocal.m4 down to just the PGAC macros.
+# BUT: as of 09.00.0200, configure.ac hasn't been updated to use latest
+# PG macros, so keep using the previous version of acinclude.m4.
+Source1: acinclude.m4
+
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: unixODBC-devel
+BuildRequires: libtool automake autoconf %{?scl_prefix}postgresql-devel
+BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel
+
+# This spec file and ancillary files are licensed in accordance with
+# the psqlodbc license.
+
+%description
+This package includes the driver needed for applications to access a
+PostgreSQL system via ODBC (Open Database Connectivity).
+
+%prep
+%setup -q -n psqlodbc-%{version}
+
+# Some missing macros. Courtesy Owen Taylor <otaylor@redhat.com>.
+cp -p %{SOURCE1} .
+
+# Use build system's libtool.m4, not the one in the package.
+rm -f libtool.m4
+
+libtoolize --force --copy
+aclocal -I .
+automake --add-missing --copy
+autoconf
+autoheader
+
+%build
+
+%configure --with-unixodbc --disable-dependency-tracking --with-libpq=%{_bindir}/pg_config
+
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make DESTDIR=$RPM_BUILD_ROOT install
+
+# Provide the old library name "psqlodbc.so" as a symlink,
+# and remove the rather useless .la file
+pushd ${RPM_BUILD_ROOT}%{_libdir}
+ ln -s psqlodbcw.so psqlodbc.so
+ rm psqlodbcw.la
+popd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%attr(755,root,root) %{_libdir}/psqlodbcw.so
+%{_libdir}/psqlodbc.so
+%doc license.txt readme.txt docs/*
+
+%changelog
+* Tue Jan 10 2012 Tom Lane <tgl@redhat.com> 09.01.0100-1
+- Update to version 09.01.0100
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09.00.0200-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 09.00.0200-1
+- Update to version 09.00.0200
+
+* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 08.04.0200-2
+- Correct Source0: tag and comment to reflect how to get the tarball
+
+* Wed Dec 30 2009 Tom Lane <tgl@redhat.com> 08.04.0200-1
+- Update to version 08.04.0200
+
+* Fri Aug 28 2009 Tom Lane <tgl@redhat.com> 08.04.0100-2
+- Rebuild with new openssl
+
+* Tue Aug 18 2009 Tom Lane <tgl@redhat.com> 08.04.0100-1
+- Update to version 08.04.0100
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 08.03.0200-2
+- Rebuild for unixODBC 2.2.14.
+
+* Tue Aug 5 2008 Tom Lane <tgl@redhat.com> 08.03.0200-1
+- Update to version 08.03.0200
+
+* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 08.03.0100-1
+- Update to version 08.03.0100
+- Since it looks like upstream has decided to stick with psqlodbcw.so
+ permanently, allow the library to have that name. But continue to
+ provide psqlodbc.so as a symlink.
+
+* Fri Nov 2 2007 Tom Lane <tgl@redhat.com> 08.02.0500-1
+- Update to version 08.02.0500
+
+* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 08.02.0200-2
+- Update License tag to match code.
+
+* Wed Apr 25 2007 Tom Lane <tgl@redhat.com> 08.02.0200-1
+- Update to version 08.02.0200
+
+* Mon Dec 11 2006 Tom Lane <tgl@redhat.com> 08.01.0200-4
+- Rebuild for new Postgres libraries
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-3.1
+- rebuild
+
+* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 08.01.0200-3
+- Fix BuildRequires: for mock build environment
+
+* Wed Mar 22 2006 Tom Lane <tgl@redhat.com> 08.01.0200-2
+- Change library name back to psqlodbc.so, because it appears that upstream
+ will revert to that name in next release; no point in thrashing the name.
+- Include documentation files unaccountably omitted before (bug #184158)
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.2
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.1
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Feb 3 2006 Tom Lane <tgl@redhat.com> 08.01.0200-1
+- Update to version 08.01.0200.
+- Upstream now calls the library psqlodbcw.so ... add a symlink to avoid
+ breaking existing odbc configuration files.
+
+* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 08.01.0102-1
+- Update to version 08.01.0102.
+- Add buildrequires postgresql-devel (bz #174505)
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 08.01.0100-1
+- Update to version 08.01.0100.
+
+* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 08.00.0100-1
+- Update to version 08.00.0100.
+
+* Fri Nov 12 2004 Tom Lane <tgl@redhat.com> 7.3-9
+- back-port 64-bit fixes from current upstream (bug #139004)
+
+* Tue Sep 21 2004 Tom Lane <tgl@redhat.com> 7.3-8
+- rebuilt
+
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Wed Mar 10 2004 Tom Lane <tgl@redhat.com>
+- Correct License: annotation.
+
+* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Nov 21 2003 David Jee <djee@redhat.com> 7.3-5
+- rebuild
+
+* Wed Nov 05 2003 David Jee <djee@redhat.com> 7.3-4
+- import new community version 07.03.0200
+
+* Mon Sep 15 2003 Andrew Overholt <overholt@redhat.com> 7.3-3
+- autotools fixes (courtesy Alex Oliva <aoliva@redhat.com> and
+ Owen Taylor <otaylor@redhat.com>)
+
+* Tue Jul 08 2003 Andrew Overholt <overholt@redhat.com> 7.3-3
+- allow use with unixODBC (courtesy Troels Arvin) [Bug #97998]
+
+* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Mon Jun 02 2003 Andrew Overholt <overholt@redhat.com> 7.3-1
+- sync to new community version (07.03.0100 => v7.3, r1)
+
+* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 1-2
+- rebuild
+
+* Tue Jan 14 2003 Andrew Overholt <overholt@redhat.com>
+- 1-1
+- initial build (just took old package sections)
diff --git a/postgresql91/postgresql.spec b/postgresql91/postgresql.spec
new file mode 100644
index 0000000..70bee6f
--- /dev/null
+++ b/postgresql91/postgresql.spec
@@ -0,0 +1,1586 @@
+# This is the PostgreSQL Global Development Group Official RPMset spec file,
+# or a derivative thereof.
+# Copyright 2003-2009 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
+# and others listed.
+
+# Major Contributors:
+# ---------------
+# Lamar Owen
+# Trond Eivind Glomsrd <teg@redhat.com>
+# Thomas Lockhart
+# Reinhard Max
+# Karl DeBisschop
+# Peter Eisentraut
+# Joe Conway
+# Andrew Overholt
+# David Jee
+# Kaj J. Niemi
+# Sander Steffann
+# Tom Lane
+# and others in the Changelog....
+
+# This spec file and ancillary files are licensed in accordance with
+# The PostgreSQL license.
+
+# In this file you can find the default build package list macros.
+# These can be overridden by defining on the rpm command line:
+# rpm --define 'packagename 1' .... to force the package to build.
+# rpm --define 'packagename 0' .... to force the package NOT to build.
+# The base package, the libs package, the devel package, and the server package
+# always get built.
+
+%{?scl:%scl_package postgresql}
+
+%global beta 0
+%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress}
+
+%{!?test:%global test 1}
+%{!?upgrade:%global upgrade 1}
+%{!?plpython:%global plpython 1}
+%{!?pltcl:%global pltcl 1}
+%{!?plperl:%global plperl 1}
+%{!?ssl:%global ssl 1}
+%{!?kerberos:%global kerberos 1}
+%{!?ldap:%global ldap 1}
+%{!?nls:%global nls 1}
+%{!?uuid:%global uuid 1}
+%{!?xml:%global xml 1}
+%{!?pam:%global pam 1}
+%{!?sdt:%global sdt 1}
+%{!?selinux:%global selinux 1}
+%{!?runselftest:%global runselftest 0}
+%{!?_unitdir:%global _unitdir /lib/systemd/system}
+
+
+Summary: PostgreSQL client programs
+Name: %{?scl_prefix}postgresql
+%global majorversion 9.1
+Version: 9.1.3
+Release: 3%{?dist}
+
+# The PostgreSQL license is very similar to other MIT licenses, but the OSI
+# recognizes it as an independent license, so we do as well.
+License: PostgreSQL
+Group: Applications/Databases
+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.0.7
+%global prevmajorversion 9.0
+
+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
+Source1: postgresql-%{version}-US.pdf
+# generate-pdf.sh is not used during RPM build, but include for documentation
+Source2: generate-pdf.sh
+Source3: ftp://ftp.postgresql.org/pub/source/v%{prevversion}/postgresql-%{prevversion}.tar.bz2
+Source4: postgresql-check-db-dir
+Source5: Makefile.regress
+Source6: pg_config.h
+Source7: ecpg_config.h
+Source8: README.rpm-dist
+Source9: postgresql-setup
+Source10: postgresql.service
+Source11: postgresql.init
+Source14: postgresql.pam
+Source15: postgresql-bashprofile
+
+# Comments for these patches are in the patch files.
+Patch1: rpm-pgsql.patch
+Patch2: postgresql-logging.patch
+Patch3: postgresql-perl-rpath.patch
+
+BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
+BuildRequires: perl(ExtUtils::Embed), perl-devel
+BuildRequires: readline-devel zlib-devel
+
+%if %plpython
+BuildRequires: python-devel
+%endif
+
+%if %pltcl
+BuildRequires: tcl-devel
+%endif
+
+%if %ssl
+BuildRequires: openssl-devel
+%endif
+
+%if %kerberos
+BuildRequires: krb5-devel
+%endif
+
+%if %ldap
+BuildRequires: openldap-devel
+%endif
+
+%if %nls
+BuildRequires: gettext >= 0.10.35
+%endif
+
+%if %uuid
+BuildRequires: uuid-devel
+%endif
+
+%if %xml
+BuildRequires: libxml2-devel libxslt-devel
+%endif
+
+%if %pam
+BuildRequires: pam-devel
+%endif
+
+%if %sdt
+BuildRequires: systemtap-sdt-devel
+%endif
+
+%if %selinux
+BuildRequires: libselinux-devel
+%endif
+
+# main package requires -libs subpackage
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
+%{?scl:Requires:%scl_runtime}
+
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+PostgreSQL is an advanced Object-Relational database management system (DBMS).
+The base postgresql package contains the client programs that you'll need to
+access a PostgreSQL DBMS server, as well as HTML documentation for the whole
+system. These client programs can be located on the same machine as the
+PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
+over a network connection. The PostgreSQL server can be found in the
+postgresql-server sub-package.
+
+
+%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.
+
+
+%package server
+Summary: The programs needed to create and run a PostgreSQL server
+Group: Applications/Databases
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+Requires(pre): /usr/sbin/useradd
+# for /sbin/ldconfig
+Requires(post): glibc
+Requires(postun): glibc
+# This is actually needed for the %%triggerun script but Requires(triggerun)
+# is not valid. We can use post because this particular %%triggerun script
+# should fire just after this package is installed.
+Requires(post): chkconfig
+# This is for /sbin/service
+Requires(preun): initscripts
+Requires(postun): initscripts
+
+%description server
+PostgreSQL is an advanced Object-Relational database management system (DBMS).
+The postgresql-server package contains the programs needed to create
+and run a PostgreSQL server, which will in turn allow you to create
+and maintain PostgreSQL databases.
+
+
+%package docs
+Summary: Extra documentation for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description docs
+The postgresql-docs package contains some additional documentation for
+PostgreSQL. Currently, this includes the main documentation in PDF format
+and source files for the PostgreSQL tutorial.
+
+
+%package contrib
+Summary: Extension modules distributed with PostgreSQL
+Group: Applications/Databases
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description contrib
+The postgresql-contrib package contains various extension modules that are
+included in the PostgreSQL distribution.
+
+
+%package devel
+Summary: PostgreSQL development header files and libraries
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description devel
+The postgresql-devel package contains the header files and libraries
+needed to compile C or C++ applications which will directly interact
+with a PostgreSQL database management server. It also contains the ecpg
+Embedded C Postgres preprocessor. You need to install this package if you want
+to develop applications which will interact with a PostgreSQL server.
+
+
+%if %upgrade
+%package upgrade
+Summary: Support for upgrading from the previous major release of PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-server%{?_isa} = %{version}-%{release}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description upgrade
+The postgresql-upgrade package contains the pg_upgrade utility and supporting
+files needed for upgrading a PostgreSQL database from the previous major
+version of PostgreSQL.
+%endif
+
+
+%if %plperl
+%package plperl
+Summary: The Perl procedural language for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-server%{?_isa} = %{version}-%{release}
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description plperl
+The postgresql-plperl package contains the PL/Perl procedural language,
+which is an extension to the PostgreSQL database server.
+Install this if you want to write database functions in Perl.
+%endif
+
+%if %plpython
+%package plpython
+Summary: The Python procedural language for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-server%{?_isa} = %{version}-%{release}
+
+%description plpython
+The postgresql-plpython package contains the PL/Python procedural language,
+which is an extension to the PostgreSQL database server.
+Install this if you want to write database functions in Python.
+%endif
+
+%if %pltcl
+%package pltcl
+Summary: The Tcl procedural language for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-server%{?_isa} = %{version}-%{release}
+
+%description pltcl
+The postgresql-plptcl package contains the PL/Tcl procedural language,
+which is an extension to the PostgreSQL database server.
+Install this if you want to write database functions in Tcl.
+%endif
+
+%if %test
+%package test
+Summary: The test suite distributed with PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-server%{?_isa} = %{version}-%{release}
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description test
+The postgresql-test package contains files needed for various tests for the
+PostgreSQL database management system, including regression tests and
+benchmarks.
+%endif
+
+%prep
+%setup -q %{?scl:-n %{pkg_name}-%{version}}
+%patch1 -p1
+%patch2 -p1
+%patch3 -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.
+
+cp -p %{SOURCE1} .
+
+%if %upgrade
+tar xfj %{SOURCE3}
+%endif
+
+# remove .gitignore files to ensure none get into the RPMs (bug #642210)
+find . -type f -name .gitignore | xargs rm
+
+%build
+
+# fail quickly and obviously if user tries to build as root
+%if %runselftest
+ if [ x"`id -u`" = x0 ]; then
+ echo "postgresql's regression tests fail if run as root."
+ echo "If you really need to build the RPM as root, use"
+ echo "--define='runselftest 0' to skip the regression tests."
+ exit 1
+ fi
+%endif
+
+CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
+
+# Strip out -ffast-math from CFLAGS....
+CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
+# Add LINUX_OOM_ADJ=0 to ensure child processes reset postmaster's oom_adj
+CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0"
+# let's try removing this kluge, it may just be a workaround for bz#520916
+# # use -O1 on sparc64 and alpha
+# %%ifarch sparc64 alpha
+# CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
+# %%endif
+
+%configure --disable-rpath \
+%if %beta
+ --enable-debug \
+ --enable-cassert \
+%endif
+%if %plperl
+ --with-perl \
+%endif
+%if %pltcl
+ --with-tcl \
+ --with-tclconfig=%{?scl:%_root_libdir}%{!?scl:%_libdir} \
+%endif
+%if %plpython
+ --with-python \
+%endif
+%if %ldap
+ --with-ldap \
+%endif
+%if %ssl
+ --with-openssl \
+%endif
+%if %pam
+ --with-pam \
+%endif
+%if %kerberos
+ --with-krb5 \
+ --with-gssapi \
+%endif
+%if %uuid
+ --with-ossp-uuid \
+%endif
+%if %xml
+ --with-libxml \
+ --with-libxslt \
+%endif
+%if %nls
+ --enable-nls \
+%endif
+%if %sdt
+ --enable-dtrace \
+%endif
+%if %selinux
+ --with-selinux \
+%endif
+ --with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo \
+ --datadir=%{_datadir}/pgsql
+
+make %{?_smp_mflags} world
+
+# Have to hack makefile to put correct path into tutorial scripts
+sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
+make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
+rm -f src/tutorial/GNUmakefile
+
+%if %runselftest
+ pushd src/test/regress
+ make all
+ make MAX_CONNECTIONS=5 check
+ make clean
+ popd
+ pushd src/pl
+ make MAX_CONNECTIONS=5 check
+ popd
+ pushd contrib
+ make MAX_CONNECTIONS=5 check
+ popd
+%endif
+
+# undo the "make clean" above
+%if %test
+ pushd src/test/regress
+ make all
+ popd
+%endif
+
+%if %upgrade
+ pushd postgresql-%{prevversion}
+
+ # The upgrade build can be pretty stripped-down, but make sure that
+ # any options that affect on-disk file layout match the previous
+ # major release! Also, note we intentionally do not use %%configure
+ # here, because we *don't* want its ideas about installation paths.
+ ./configure --build=%{_build} --host=%{_host} \
+ --prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \
+ --disable-rpath \
+ --with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo
+
+ make %{?_smp_mflags} all
+
+ popd
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make DESTDIR=$RPM_BUILD_ROOT install-world
+
+# multilib header hack; note pg_config.h is installed in two places!
+# we only apply this to known Red Hat multilib arches, per bug #177564
+case `uname -i` in
+ i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
+ mv $RPM_BUILD_ROOT%{_includedir}/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pg_config_`uname -i`.h
+ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/
+ mv $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config_`uname -i`.h
+ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/pgsql/server/
+ mv $RPM_BUILD_ROOT%{_includedir}/ecpg_config.h $RPM_BUILD_ROOT%{_includedir}/ecpg_config_`uname -i`.h
+ install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_includedir}/
+ ;;
+ *)
+ ;;
+esac
+
+install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
+cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
+
+# prep the setup script, including insertion of some values it needs
+sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \
+ -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \
+ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \
+ -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \
+ -e 's|SERVICE_NAME=postgresql|SERVICE_NAME=%{?scl_prefix}postgresql|' \
+ -e 's|/var/lib|%{?_scl_root}/var/lib|' \
+ <%{SOURCE9} >postgresql-setup
+touch -r %{SOURCE9} postgresql-setup
+
+install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup
+
+# prep the startup check script, including insertion of some values it needs
+sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \
+ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \
+ -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_docdir}/%{name}-%{version}|' \
+ <%{SOURCE4} >postgresql-check-db-dir
+touch -r %{SOURCE4} postgresql-check-db-dir
+install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir
+
+install -d $RPM_BUILD_ROOT%{_unitdir}
+install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}postgresql.service
+
+install -d $RPM_BUILD_ROOT%{_libdir}/pgsql
+cat > sclenv << EOF
+# scl-related environment variables
+# LD_LIBRARY_PATH=%_libdir:\$LD_LIBRARY_PATH
+LD_LIBRARY_PATH=%_libdir
+EOF
+install -m 644 sclenv $RPM_BUILD_ROOT%{_libdir}/pgsql/sclenv
+
+install -d $RPM_BUILD_ROOT%{_prefix}/var/run
+install -d $RPM_BUILD_ROOT%{_prefix}/var/lock/subsys
+
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+sed -e 's|/# Provides: postgresql|# Provides: %{?scl_prefix}postgresql|g' \
+ -e 's|/etc/sysconfig/pgsql|%{_sysconfdir}/sysconfig/pgsql|g' \
+ -e 's|/usr/bin|%{_bindir}|g' \
+ -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \
+ -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \
+ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \
+ -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \
+ -e 's|SERVICE_NAME=postgresql|SERVICE_NAME=%{?scl_prefix}postgresql|' \
+ <%{SOURCE11} >postgresql.init
+install -m 755 postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/%{?scl_prefix}postgresql
+
+%if %pam
+install -d $RPM_BUILD_ROOT/etc/pam.d
+install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/%{?scl_prefix}postgresql
+%endif
+
+# PGDATA needs removal of group and world permissions due to pg_pwd hole.
+install -d -m 700 $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/data
+
+# backups of data go here...
+install -d -m 700 $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/backups
+
+# postgres' .bash_profile
+install -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/.bash_profile
+
+
+%if %upgrade
+ pushd postgresql-%{prevversion}
+ make DESTDIR=$RPM_BUILD_ROOT install
+ popd
+
+ # remove stuff we don't actually need for upgrade purposes
+ pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/postgresql-%{prevmajorversion}
+ rm bin/clusterdb
+ rm bin/createdb
+ rm bin/createlang
+ rm bin/createuser
+ rm bin/dropdb
+ rm bin/droplang
+ rm bin/dropuser
+ rm bin/ecpg
+ rm bin/initdb
+ rm bin/pg_config
+ rm bin/pg_controldata
+ rm bin/pg_dump
+ rm bin/pg_dumpall
+ rm bin/pg_restore
+ rm bin/psql
+ rm bin/reindexdb
+ rm bin/vacuumdb
+ rm -rf include
+ rm lib/dict_snowball.so
+ rm lib/libecpg*
+ rm lib/libpg*
+ rm lib/libpq*
+ rm -rf lib/pgxs
+ rm lib/plpgsql.so
+ rm -rf share/doc
+ rm -rf share/man
+ rm -rf share/tsearch_data
+ rm share/*.bki
+ rm share/*description
+ rm share/*.sample
+ rm share/*.sql
+ rm share/*.txt
+ popd
+%endif
+
+
+%if %test
+ # tests. There are many files included here that are unnecessary,
+ # but include them anyway for completeness. We replace the original
+ # Makefiles, however.
+ mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
+ cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
+ # pg_regress binary should be only in one subpackage,
+ # there will be a symlink from -test to -devel
+ rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
+ ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
+ pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
+ rm -f GNUmakefile Makefile *.o
+ chmod 0755 pg_regress regress.so
+ popd
+ cp %{SOURCE5} $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
+ chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
+%endif
+
+# Fix some more documentation
+# gzip doc/internals.ps
+cp %{SOURCE8} README.rpm-dist
+mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
+rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
+
+# remove files not to be packaged
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
+%if !%upgrade
+rm -f $RPM_BUILD_ROOT%{_bindir}/pg_upgrade
+rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/pg_upgrade_support.so
+%endif
+
+# initialize file lists
+cp /dev/null main.lst
+cp /dev/null libs.lst
+cp /dev/null server.lst
+cp /dev/null devel.lst
+cp /dev/null plperl.lst
+cp /dev/null pltcl.lst
+cp /dev/null plpython.lst
+
+%if %nls
+%find_lang ecpg-%{majorversion}
+cat ecpg-%{majorversion}.lang >>devel.lst
+%find_lang ecpglib6-%{majorversion}
+cat ecpglib6-%{majorversion}.lang >>libs.lst
+%find_lang initdb-%{majorversion}
+cat initdb-%{majorversion}.lang >>server.lst
+%find_lang libpq5-%{majorversion}
+cat libpq5-%{majorversion}.lang >>libs.lst
+%find_lang pg_basebackup-%{majorversion}
+cat pg_basebackup-%{majorversion}.lang >>server.lst
+%find_lang pg_controldata-%{majorversion}
+cat pg_controldata-%{majorversion}.lang >>server.lst
+%find_lang pg_ctl-%{majorversion}
+cat pg_ctl-%{majorversion}.lang >>server.lst
+%find_lang pg_config-%{majorversion}
+cat pg_config-%{majorversion}.lang >>main.lst
+%find_lang pg_dump-%{majorversion}
+cat pg_dump-%{majorversion}.lang >>main.lst
+%find_lang pg_resetxlog-%{majorversion}
+cat pg_resetxlog-%{majorversion}.lang >>server.lst
+%find_lang pgscripts-%{majorversion}
+cat pgscripts-%{majorversion}.lang >>main.lst
+%if %plperl
+%find_lang plperl-%{majorversion}
+cat plperl-%{majorversion}.lang >>plperl.lst
+%endif
+%find_lang plpgsql-%{majorversion}
+cat plpgsql-%{majorversion}.lang >>server.lst
+%if %plpython
+%find_lang plpython-%{majorversion}
+cat plpython-%{majorversion}.lang >>plpython.lst
+%endif
+%if %pltcl
+%find_lang pltcl-%{majorversion}
+cat pltcl-%{majorversion}.lang >>pltcl.lst
+%endif
+%find_lang postgres-%{majorversion}
+cat postgres-%{majorversion}.lang >>server.lst
+%find_lang psql-%{majorversion}
+cat psql-%{majorversion}.lang >>main.lst
+%endif
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%pre server
+/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
+/usr/sbin/useradd -M -N -g postgres -o -r -d %{?_scl_root}/var/lib/pgsql -s /bin/bash \
+ -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
+
+%post server
+if [ -e /bin/systemctl ] ; then
+ # We don't want old init script if we have systemd
+ rm -f /etc/rc.d/init.d/%{?scl_prefix}postgresql
+
+ if [ $1 -eq 1 ] ; then
+ # Initial installation
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ fi
+
+ # Run this when upgrading from SysV initscript to native systemd unit
+ %triggerun server -- postgresql-server < %{first_systemd_version}
+ # Save the current service runlevel info
+ # User must manually run systemd-sysv-convert --apply postgresql
+ # to migrate them to systemd targets
+ /usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || :
+
+ # Run these because the SysV package being removed won't do them
+ /sbin/chkconfig --del postgresql >/dev/null 2>&1 || :
+ /bin/systemctl try-restart %{?scl_prefix}postgresql.service >/dev/null 2>&1 || :
+else
+ # We don't want new systemd unit file if we don't have systemd
+ rm -f %{_unitdir}/%{?scl_prefix}postgresql.service
+ /sbin/chkconfig --add %{?scl_prefix}postgresql
+ /sbin/ldconfig
+fi
+
+%preun server
+if [ $1 -eq 0 ] ; then
+ # Package removal, not upgrade
+ if [ -e /bin/systemctl ] ; then
+ /bin/systemctl --no-reload disable %{?scl_prefix}postgresql.service >/dev/null 2>&1 || :
+ /bin/systemctl stop %{?scl_prefix}postgresql.service >/dev/null 2>&1 || :
+ else
+ /sbin/service %{?scl_prefix}postgresql stop >/dev/null 2>&1
+ /sbin/chkconfig --del %{?scl_prefix}postgresql
+ fi
+fi
+
+%postun server
+/sbin/ldconfig
+if [ $1 -ge 1 ] ; then
+ # Package upgrade, not uninstall
+ if [ -e /bin/systemctl ] ; then
+ /bin/systemctl try-restart %{?scl_prefix}postgresql.service >/dev/null 2>&1 || :
+ else
+ /sbin/service %{?scl_prefix}postgresql condrestart >/dev/null 2>&1 || :
+ fi
+fi
+
+%if %plperl
+%post -p /sbin/ldconfig plperl
+%postun -p /sbin/ldconfig plperl
+%endif
+
+%if %plpython
+%post -p /sbin/ldconfig plpython
+%postun -p /sbin/ldconfig plpython
+%endif
+
+%if %pltcl
+%post -p /sbin/ldconfig pltcl
+%postun -p /sbin/ldconfig pltcl
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+# FILES section.
+
+%files -f main.lst
+%defattr(-,root,root)
+%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
+%doc COPYRIGHT README HISTORY doc/bug.template
+%doc README.rpm-dist
+%doc doc/html
+%{_bindir}/clusterdb
+%{_bindir}/createdb
+%{_bindir}/createlang
+%{_bindir}/createuser
+%{_bindir}/dropdb
+%{_bindir}/droplang
+%{_bindir}/dropuser
+%{_bindir}/pg_config
+%{_bindir}/pg_dump
+%{_bindir}/pg_dumpall
+%{_bindir}/pg_restore
+%{_bindir}/psql
+%{_bindir}/reindexdb
+%{_bindir}/vacuumdb
+%{_mandir}/man1/clusterdb.*
+%{_mandir}/man1/createdb.*
+%{_mandir}/man1/createlang.*
+%{_mandir}/man1/createuser.*
+%{_mandir}/man1/dropdb.*
+%{_mandir}/man1/droplang.*
+%{_mandir}/man1/dropuser.*
+%{_mandir}/man1/pg_config.*
+%{_mandir}/man1/pg_dump.*
+%{_mandir}/man1/pg_dumpall.*
+%{_mandir}/man1/pg_restore.*
+%{_mandir}/man1/psql.*
+%{_mandir}/man1/reindexdb.*
+%{_mandir}/man1/vacuumdb.*
+%{_mandir}/man7/*
+%dir %{_libdir}/pgsql
+
+%files docs
+%defattr(-,root,root)
+%doc *-US.pdf
+%{_libdir}/pgsql/tutorial/
+
+%files contrib
+%defattr(-,root,root)
+%{_datadir}/pgsql/extension/adminpack*
+%{_datadir}/pgsql/extension/autoinc*
+%{_datadir}/pgsql/extension/btree_gin*
+%{_datadir}/pgsql/extension/btree_gist*
+%{_datadir}/pgsql/extension/chkpass*
+%{_datadir}/pgsql/extension/citext*
+%{_datadir}/pgsql/extension/cube*
+%{_datadir}/pgsql/extension/dblink*
+%{_datadir}/pgsql/extension/dict_int*
+%{_datadir}/pgsql/extension/dict_xsyn*
+%{_datadir}/pgsql/extension/earthdistance*
+%{_datadir}/pgsql/extension/file_fdw*
+%{_datadir}/pgsql/extension/fuzzystrmatch*
+%{_datadir}/pgsql/extension/hstore*
+%{_datadir}/pgsql/extension/insert_username*
+%{_datadir}/pgsql/extension/intagg*
+%{_datadir}/pgsql/extension/intarray*
+%{_datadir}/pgsql/extension/isn*
+%{_datadir}/pgsql/extension/lo*
+%{_datadir}/pgsql/extension/ltree*
+%{_datadir}/pgsql/extension/moddatetime*
+%{_datadir}/pgsql/extension/pageinspect*
+%{_datadir}/pgsql/extension/pg_buffercache*
+%{_datadir}/pgsql/extension/pg_freespacemap*
+%{_datadir}/pgsql/extension/pg_stat_statements*
+%{_datadir}/pgsql/extension/pg_trgm*
+%{_datadir}/pgsql/extension/pgcrypto*
+%{_datadir}/pgsql/extension/pgrowlocks*
+%{_datadir}/pgsql/extension/pgstattuple*
+%{_datadir}/pgsql/extension/refint*
+%{_datadir}/pgsql/extension/seg*
+%{_datadir}/pgsql/extension/tablefunc*
+%{_datadir}/pgsql/extension/test_parser*
+%{_datadir}/pgsql/extension/timetravel*
+%{_datadir}/pgsql/extension/tsearch2*
+%{_datadir}/pgsql/extension/unaccent*
+%{_libdir}/pgsql/_int.so
+%{_libdir}/pgsql/adminpack.so
+%{_libdir}/pgsql/auth_delay.so
+%{_libdir}/pgsql/autoinc.so
+%{_libdir}/pgsql/auto_explain.so
+%{_libdir}/pgsql/btree_gin.so
+%{_libdir}/pgsql/btree_gist.so
+%{_libdir}/pgsql/chkpass.so
+%{_libdir}/pgsql/citext.so
+%{_libdir}/pgsql/cube.so
+%{_libdir}/pgsql/dblink.so
+%{_libdir}/pgsql/dict_int.so
+%{_libdir}/pgsql/dict_xsyn.so
+%{_libdir}/pgsql/dummy_seclabel.so
+%{_libdir}/pgsql/earthdistance.so
+%{_libdir}/pgsql/file_fdw.so
+%{_libdir}/pgsql/fuzzystrmatch.so
+%{_libdir}/pgsql/hstore.so
+%{_libdir}/pgsql/insert_username.so
+%{_libdir}/pgsql/isn.so
+%{_libdir}/pgsql/lo.so
+%{_libdir}/pgsql/ltree.so
+%{_libdir}/pgsql/moddatetime.so
+%{_libdir}/pgsql/pageinspect.so
+%{_libdir}/pgsql/passwordcheck.so
+%{_libdir}/pgsql/pg_buffercache.so
+%{_libdir}/pgsql/pg_freespacemap.so
+%{_libdir}/pgsql/pg_trgm.so
+%{_libdir}/pgsql/pgcrypto.so
+%{_libdir}/pgsql/pgrowlocks.so
+%{_libdir}/pgsql/pgstattuple.so
+%{_libdir}/pgsql/pg_stat_statements.so
+%{_libdir}/pgsql/refint.so
+%{_libdir}/pgsql/seg.so
+%{_libdir}/pgsql/tablefunc.so
+%{_libdir}/pgsql/test_parser.so
+%{_libdir}/pgsql/timetravel.so
+%{_libdir}/pgsql/tsearch2.so
+%{_libdir}/pgsql/unaccent.so
+%if %selinux
+%{_datadir}/pgsql/contrib/sepgsql.sql
+%{_libdir}/pgsql/sepgsql.so
+%endif
+%if %ssl
+%{_datadir}/pgsql/extension/sslinfo*
+%{_libdir}/pgsql/sslinfo.so
+%endif
+%if %uuid
+%{_datadir}/pgsql/extension/uuid-ossp*
+%{_libdir}/pgsql/uuid-ossp.so
+%endif
+%if %xml
+%{_datadir}/pgsql/extension/xml2*
+%{_libdir}/pgsql/pgxml.so
+%endif
+%{_bindir}/oid2name
+%{_bindir}/pg_archivecleanup
+%{_bindir}/pg_standby
+%{_bindir}/pg_test_fsync
+%{_bindir}/pgbench
+%{_bindir}/vacuumlo
+%{_mandir}/man3/dblink*
+%doc contrib/spi/*.example
+
+%files libs -f libs.lst
+%defattr(-,root,root)
+%doc COPYRIGHT
+%{_libdir}/libpq.so.*
+%{_libdir}/libecpg.so.*
+%{_libdir}/libpgtypes.so.*
+%{_libdir}/libecpg_compat.so.*
+
+%files server -f server.lst
+%defattr(-,root,root)
+%{_libdir}/pgsql/sclenv
+%{_unitdir}/%{?scl_prefix}postgresql.service
+/etc/rc.d/init.d/%{?scl_prefix}postgresql
+%if %pam
+%config(noreplace) /etc/pam.d/%{?scl_prefix}postgresql
+%endif
+%{_bindir}/initdb
+%{_bindir}/pg_basebackup
+%{_bindir}/pg_controldata
+%{_bindir}/pg_ctl
+%{_bindir}/pg_resetxlog
+%{_bindir}/postgres
+%{_bindir}/postmaster
+%{_bindir}/postgresql-setup
+%{_bindir}/postgresql-check-db-dir
+%{_mandir}/man1/initdb.*
+%{_mandir}/man1/pg_basebackup.*
+%{_mandir}/man1/pg_controldata.*
+%{_mandir}/man1/pg_ctl.*
+%{_mandir}/man1/pg_resetxlog.*
+%{_mandir}/man1/postgres.*
+%{_mandir}/man1/postmaster.*
+%{_datadir}/pgsql/postgres.bki
+%{_datadir}/pgsql/postgres.description
+%{_datadir}/pgsql/postgres.shdescription
+%{_datadir}/pgsql/system_views.sql
+%{_datadir}/pgsql/*.sample
+%{_datadir}/pgsql/timezonesets/
+%{_datadir}/pgsql/tsearch_data/
+%{_libdir}/pgsql/dict_snowball.so
+%{_libdir}/pgsql/plpgsql.so
+%dir %{_datadir}/pgsql
+%dir %{_datadir}/pgsql/contrib
+%dir %{_datadir}/pgsql/extension
+%{_datadir}/pgsql/extension/plpgsql*
+%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql
+%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql/data
+%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql/backups
+%attr(644,postgres,postgres) %config(noreplace) %{?_scl_root}/var/lib/pgsql/.bash_profile
+%{_libdir}/pgsql/libpqwalreceiver.so
+%{_libdir}/pgsql/*_and_*.so
+%{_libdir}/pgsql/euc2004_sjis2004.so
+%{_datadir}/pgsql/conversion_create.sql
+%{_datadir}/pgsql/information_schema.sql
+%{_datadir}/pgsql/snowball_create.sql
+%{_datadir}/pgsql/sql_features.txt
+%dir %{_prefix}/var/run
+%dir %{_prefix}/var/lock/subsys
+
+%files devel -f devel.lst
+%defattr(-,root,root)
+%{_includedir}/*
+%{_bindir}/ecpg
+%{_libdir}/libpq.so
+%{_libdir}/libecpg.so
+%{_libdir}/libecpg_compat.so
+%{_libdir}/libpgtypes.so
+%{_libdir}/pgsql/pgxs/
+%{_mandir}/man1/ecpg.*
+%{_mandir}/man3/SPI_*
+
+%if %upgrade
+%files upgrade
+%defattr(-,root,root)
+%{_bindir}/pg_upgrade
+%{_libdir}/pgsql/pg_upgrade_support.so
+%{_libdir}/pgsql/postgresql-%{prevmajorversion}
+%endif
+
+%if %plperl
+%files plperl -f plperl.lst
+%defattr(-,root,root)
+%{_datadir}/pgsql/extension/plperl*
+%{_libdir}/pgsql/plperl.so
+%endif
+
+%if %pltcl
+%files pltcl -f pltcl.lst
+%defattr(-,root,root)
+%{_datadir}/pgsql/extension/pltcl*
+%{_libdir}/pgsql/pltcl.so
+%{_bindir}/pltcl_delmod
+%{_bindir}/pltcl_listmod
+%{_bindir}/pltcl_loadmod
+%{_datadir}/pgsql/unknown.pltcl
+%endif
+
+%if %plpython
+%files plpython -f plpython.lst
+%defattr(-,root,root)
+%{_datadir}/pgsql/extension/plpython*
+%{_libdir}/pgsql/plpython2.so
+%endif
+
+%if %test
+%files test
+%defattr(-,postgres,postgres)
+%attr(-,postgres,postgres) %{_libdir}/pgsql/test/*
+%attr(-,postgres,postgres) %dir %{_libdir}/pgsql/test
+%endif
+
+%changelog
+* Sat Mar 17 2012 Tom Lane <tgl@redhat.com> 9.1.3-3
+- Fix postgresql-setup to rely on systemd to parse the unit file, instead
+ of using ad-hoc code
+Resolves: #804290
+
+* Tue Mar 13 2012 Tom Lane <tgl@redhat.com> 9.1.3-2
+- Fix postgresql-setup to look for unit file in /usr/lib and to ignore
+ comments therein
+Resolves: #802835
+- Resurrect a now-mostly-dummy postgresql init script, so that people can
+ keep on using "service postgresql initdb" if they wish
+Resolves: #800416
+
+* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 9.1.3-1
+- Update to PostgreSQL 9.1.3, for various fixes described at
+ http://www.postgresql.org/docs/9.1/static/release-9-1-3.html
+ including the fixes for CVE-2012-0866, CVE-2012-0867, CVE-2012-0868
+Resolves: #797918
+
+* Mon Jan 9 2012 Tom Lane <tgl@redhat.com> 9.1.2-2
+- Make systemd unit file more user-friendly by resurrecting the old init
+ script's checks for data directory presence and version match
+Resolves: #771496
+
+* Mon Dec 5 2011 Tom Lane <tgl@redhat.com> 9.1.2-1
+- Update to PostgreSQL 9.1.2, for various fixes described at
+ http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
+
+* Wed Nov 02 2011 Honza Horak <hhorak@redhat.com> 9.1.1-2
+- Create a symlink of pg_regress instead of full copy;
+ Don't strip symbols from regress libs
+Related: #729012
+
+* Mon Sep 26 2011 Tom Lane <tgl@redhat.com> 9.1.1-1
+- Update to PostgreSQL 9.1.1, for various fixes described at
+ http://www.postgresql.org/docs/9.1/static/release-9-1-1.html
+- Enable build (but not test) of contrib/sepgsql
+- Clean up specfile build options so that turning options off works again
+
+* Mon Sep 12 2011 Tom Lane <tgl@redhat.com> 9.1.0-1
+- Update to PostgreSQL 9.1.0 (major version bump);
+ in-place upgrade support now works from 9.0.x as the previous version
+
+* Wed Jul 27 2011 Tom Lane <tgl@redhat.com> 9.0.4-8
+- Convert to systemd startup support
+Resolves: #696427
+
+* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-7
+- Perl mass rebuild
+
+* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-6
+- Perl mass rebuild
+
+* Wed Jul 6 2011 Tom Lane <tgl@redhat.com> 9.0.4-5
+- Remove erroneously-included Default-Start line from LSB init block
+Related: #717024
+
+* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 9.0.4-4
+- Perl mass rebuild
+- incorporate upstream patch to make it build with Perl 5.14
+
+* Fri Jun 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-3
+- Work around gcc 4.6.0 bug (temporary backport from next upstream release)
+
+* Tue May 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-2
+- Add LSB init block to initscript, to ensure sane ordering at system boot
+Resolves: #703215
+
+* Mon Apr 18 2011 Tom Lane <tgl@redhat.com> 9.0.4-1
+- Update to PostgreSQL 9.0.4, for various fixes described at
+ http://www.postgresql.org/docs/9.0/static/release-9-0-4.html
+- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Thu Feb 3 2011 Tom Lane <tgl@redhat.com> 9.0.3-2
+- Remove filter-requires-perl-Pg.sh, which doesn't seem to be needed now that
+ PyGreSQL has been split out; and our use of it isn't compatible with rpm 4.9
+ anyway
+
+* Tue Feb 1 2011 Tom Lane <tgl@redhat.com> 9.0.3-1
+- Update to PostgreSQL 9.0.3, for various fixes described at
+ http://www.postgresql.org/docs/9.0/static/release-9-0-3.html
+ including the fix for CVE-2010-4015
+Resolves: #674296
+
+* Tue Dec 28 2010 Tom Lane <tgl@redhat.com> 9.0.2-1
+- Update to PostgreSQL 9.0.2 (major version bump)
+- Create infrastructure for in-place database upgrade using pg_upgrade
+Resolves: #398221
+
+* Thu Dec 16 2010 Tom Lane <tgl@redhat.com> 8.4.6-1
+- Update to PostgreSQL 8.4.6, for various fixes described at
+ http://www.postgresql.org/docs/8.4/static/release-8-4-6.html
+- Ensure we don't package any .gitignore files from the source tarball
+Related: #642210
+
+* Tue Oct 5 2010 Tom Lane <tgl@redhat.com> 8.4.5-1
+- Update to PostgreSQL 8.4.5, for various fixes described at
+ http://www.postgresql.org/docs/8.4/static/release-8-4-5.html
+ including the fix for CVE-2010-3433
+Related: #639371
+- Add -p "$pidfile" to initscript's status call to improve corner cases.
+Related: #561010
+
+* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 8.4.4-3
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+- Duplicate COPYRIGHT in -libs subpackage, per revised packaging guidelines
+
+* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 8.4.4-2
+- Mass rebuild with perl-5.12.0
+
+* Mon May 17 2010 Tom Lane <tgl@redhat.com> 8.4.4-1
+- Update to PostgreSQL 8.4.4, for various fixes described at
+ http://www.postgresql.org/docs/8.4/static/release-8-4-4.html
+ including fixes for CVE-2010-1169 and CVE-2010-1170
+Resolves: #593032
+
+* Sun Mar 14 2010 Tom Lane <tgl@redhat.com> 8.4.3-1
+- Update to PostgreSQL 8.4.3, for various fixes described at
+ http://www.postgresql.org/docs/8.4/static/release-8-4-3.html
+
+* Mon Feb 22 2010 Tom Lane <tgl@redhat.com> 8.4.2-8
+- Bring init script into some modicum of compliance with Fedora/LSB standards
+Resolves: #201043
+
+* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.2-7
+- adjust license tag to reflect OSI decision
+
+* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 8.4.2-6
+- Emit explicit error message if user tries to build RPM as root
+Related: #558921
+
+* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 8.4.2-5
+- Latest version of systemtap needs the probes.o file to be built again
+Resolves: #557266
+- Provide script and instructions for building the documentation PDF
+
+* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 8.4.2-4
+- Arrange for the postmaster, but not any of its child processes, to be run
+ with oom_adj -17. This compensates for the OOM killer not being smart about
+ accounting for shared memory usage.
+
+* Sat Jan 9 2010 Tom Lane <tgl@redhat.com> 8.4.2-3
+- Remove the postgresql-python and postgresql-tcl subpackages. These files
+ are now broken out as their own packages (PyGreSQL and tcl-pgtcl,
+ respectively), to reflect the now longstanding split of upstream projects.
+Related: #452306, #452321
+
+* Tue Jan 5 2010 Tom Lane <tgl@redhat.com> 8.4.2-2
+- Remove static libraries (.a files) from package, per packaging guidelines
+- Change %%define to %%global, per packaging guidelines
+
+* Wed Dec 16 2009 Tom Lane <tgl@redhat.com> 8.4.2-1
+- Update to PostgreSQL 8.4.2, for various fixes described at
+ http://www.postgresql.org/docs/8.4/static/release-8-4-2.html
+ including two security issues
+Related: #546321
+Related: #547662
+- Use -N not the obsolete -n in useradd call
+Resolves: #495727
+- Clean up specfile to eliminate rpmlint gripes, mainly by removing
+ no-longer-needed provisions for superseding rh-postgresql
+
+* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 8.4.1-5
+- rebuild against perl 5.10.1
+
+* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 8.4.1-4
+- add sparc/sparc64 to multilib header support
+
+* Mon Sep 21 2009 Tom Lane <tgl@redhat.com> 8.4.1-3
+- Ensure pgstartup.log gets the right ownership/permissions during initdb
+Resolves: #498959
+
+* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.1-2
+- Use password-auth common PAM configuration instead of system-auth
+
+* Wed Sep 9 2009 Tom Lane <tgl@redhat.com> 8.4.1-1
+- Update to PostgreSQL 8.4.1, for various fixes described at
+ http://www.postgresql.org/docs/8.4/static/release-8-4-1.html
+ including two security issues
+Related: #522085
+Related: #522092
+
+* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.2
+- bump release and build again with the correct libssl
+
+* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.1
+- disable dtrace on s390x as a workaround until #520469 has been fixed
+
+* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.0-3
+- rebuilt with new openssl
+
+* Thu Aug 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.0-2
+- update License tag to MIT (PostgreSQL calls it "BSD", but it is MIT)
+- Note: This changes nothing from a license compatibility perspective.
+
+* Mon Aug 17 2009 Tom Lane <tgl@redhat.com> 8.4.0-1
+- Update to PostgreSQL 8.4.0. See release notes at
+ http://www.postgresql.org/docs/8.4/static/release-8-4.html
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.7-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Sat Mar 21 2009 Tom Lane <tgl@redhat.com> 8.3.7-1
+- Update to PostgreSQL 8.3.7, for various fixes described at
+ http://www.postgresql.org/docs/8.3/static/release-8-3-7.html
+ notably the fix for CVE-2009-0922
+
+* Tue Mar 10 2009 Tom Lane <tgl@redhat.com> 8.3.6-4
+- Prevent dependent packages from needing to include sys/sdt.h
+ (unintended side effect of previous patch)
+- Use -O1 on alpha, per report from Oliver Falk; -O2 tickles gcc bugs
+
+* Sun Mar 8 2009 Tom Lane <tgl@redhat.com> 8.3.6-3
+- Enable tracing via systemtap
+Resolves: #488941
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Feb 7 2009 Tom Lane <tgl@redhat.com> 8.3.6-1
+- Update to PostgreSQL 8.3.6, for various fixes described at
+ http://www.postgresql.org/docs/8.3/static/release-8-3-6.html
+
+* Wed Jan 21 2009 Dennis Gilmore <dennis@ausil.us> 8.3.5-4
+- use -O1 on sparc64
+
+* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3
+- rebuild with new openssl
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 8.3.5-2
+- Rebuild for Python 2.6
+
+* Sun Nov 2 2008 Tom Lane <tgl@redhat.com> 8.3.5-1
+- Update to PostgreSQL 8.3.5.
+- Improve display from init script's initdb action, per Michael Schwendt
+
+* Thu Sep 25 2008 Tom Lane <tgl@redhat.com> 8.3.4-1
+- Update to PostgreSQL 8.3.4.
+
+* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 8.3.3-3
+- Fix build failure caused by new default patch fuzz = 0 policy in rawhide.
+
+* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 8.3.3-2
+- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib.
+ Needed because tcl 8.5 no longer puts /usr/lib into its package search path.
+ NOTE: do not back-port this change into branches using pre-8.5 tcl, because
+ /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share
+ is exactly where we must not put Pgtcl.
+Resolves: #228263
+
+* Wed Jun 11 2008 Tom Lane <tgl@redhat.com> 8.3.3-1
+- Update to PostgreSQL 8.3.3.
+- Remove postgresql-prefer-ncurses.patch, no longer needed in recent
+ Fedora releases because libtermcap is gone.
+
+* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-5
+- rebuild because of buildsystem hiccup
+
+* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4
+- Enable LDAP support
+Resolves: #445315
+- Use -Wl,--as-needed to suppress bogus dependencies for libraries that
+ are really only needed by some of the subpackages
+
+* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
+- Fix build breakage on PPC due to incorrect configure test
+Related: #444317
+
+* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2
+- Clean up cross-subpackage Requires: to ensure that updating any one
+ subpackage brings in the matching versions of others.
+Resolves: #444271
+
+* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 8.3.1-1
+- Update to PostgreSQL 8.3.1.
+
+* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.0-3
+- add Requires for versioned perl (libperl.so)
+
+* Wed Feb 6 2008 Tom Lane <tgl@redhat.com> 8.3.0-2
+- Enable the new GSSAPI support in 8.3.0.
+
+* Mon Feb 4 2008 Tom Lane <tgl@redhat.com> 8.3.0-1
+- Update to PostgreSQL 8.3.0.
+
+* Fri Jan 18 2008 Tom Lane <tgl@redhat.com> 8.3RC2-1
+- Update to PostgreSQL 8.3RC2 (not waiting for 8.3.0 because Fedora 9 alpha
+ should be 8.3-based not 8.2-based).
+- Update to pgtcl 1.6.2
+
+* Mon Jan 7 2008 Tom Lane <tgl@redhat.com> 8.2.6-1
+- Update to PostgreSQL 8.2.6 to fix CVE-2007-4769, CVE-2007-4772,
+ CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
+- Make initscript and pam config files be installed unconditionally;
+ seems new buildroots don't necessarily have those directories in place
+
+* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 8.2.5-2
+- Rebuild for new openssl
+
+* Thu Sep 20 2007 Tom Lane <tgl@redhat.com> 8.2.5-1
+- Update to PostgreSQL 8.2.5 and pgtcl 1.6.0
+
+* Tue Sep 4 2007 Tom Lane <tgl@redhat.com> 8.2.4-6
+- Fix multilib problem for /usr/include/ecpg_config.h (which is new in 8.2.x)
+
+* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 8.2.4-5
+- Use nicer solution for tzdata file substitution: upstream discussion
+ concluded that hardwiring the path was better than a symlink after all.
+
+* Wed Aug 22 2007 Tom Lane <tgl@redhat.com> 8.2.4-4
+- Use tzdata package's data files instead of private copy, so that
+ postgresql-server need not be turned for routine timezone updates
+- Don't remove postgres user/group during RPM uninstall, per Fedora
+ packaging guidelines
+- Seems we need an explicit BuildRequires on gawk now
+- Rebuild to fix Fedora toolchain issues
+
+* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.4-3
+- Recent perl changes in rawhide mean we need a more specific BuildRequires
+
+* Wed Jun 20 2007 Tom Lane <tgl@redhat.com> 8.2.4-2
+- Fix oversight in postgresql-test makefile: pg_regress isn't a shell script
+ anymore. Per upstream bug 3398.
+
+* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.4-1
+- Update to PostgreSQL 8.2.4 for CVE-2007-2138, data loss bugs
+Resolves: #237682
+
+* Wed Feb 14 2007 Karsten Hopp <karsten@redhat.com> 8.2.3-2
+- rebuild with tcl-8.4
+
+* Wed Feb 7 2007 Tom Lane <tgl@redhat.com> 8.2.3-1
+- Update to PostgreSQL 8.2.3 due to regression induced by security fix
+Resolves: #227522
+
+* Sun Feb 4 2007 Tom Lane <tgl@redhat.com> 8.2.2-1
+- Update to PostgreSQL 8.2.2 to fix CVE-2007-0555, CVE-2007-0556
+Related: #225496
+
+* Fri Jan 12 2007 Tom Lane <tgl@redhat.com> 8.2.1-2
+- Split -pl subpackage into three new packages to reduce dependencies
+ and track upstream project's packaging.
+
+* Wed Jan 10 2007 Tom Lane <tgl@redhat.com> 8.2.1-1
+- Update to PostgreSQL 8.2.1
+- Update to pgtcl 1.5.3
+- Be sure we link to libncurses, not libtermcap which is disappearing in Fedora
+
+* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 8.2.0-2
+- rebuild for python 2.5
+
+* Mon Dec 4 2006 Tom Lane <tgl@redhat.com> 8.2.0-1
+- Update to PostgreSQL 8.2.0
+- Update to PyGreSQL 3.8.1
+- Fix chcon arguments in test/regress/Makefile
+Related: #201035
+- Adjust init script to not fool /etc/rc.d/rc
+Resolves: #161470
+- Change init script to not do initdb automatically, but require
+ manual "service postgresql initdb" for safety. Per upstream discussions.
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.1.4-1.1
+- rebuild
+
+* Mon May 22 2006 Tom Lane <tgl@redhat.com> 8.1.4-1
+- Update to PostgreSQL 8.1.4 (includes fixes for CVE-2006-2313, CVE-2006-2314;
+ see bug #192173)
+- Update to PyGreSQL 3.8
+- Suppress noise from chcon, per bug #187744
+
+* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.3-2
+- Remove JDBC from this build; we will package it as separate SRPM
+
+* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 8.1.3-1.1
+- rebump for build order issues during double-long bump
+
+* Mon Feb 13 2006 Tom Lane <tgl@redhat.com> 8.1.3-1
+- Update to PostgreSQL 8.1.3 (fixes bug #180617, CVE-2006-0553)
+- Update to jdbc driver build 405
+- Modify multilib header hack to not break non-RH arches, per bug #177564
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.1.2-1.1
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Mon Jan 9 2006 Tom Lane <tgl@redhat.com> 8.1.2-1
+- Update to PostgreSQL 8.1.2
+- Repair extraneous quote in pgtcl configure script ... odd that bash
+ didn't use to spit up on this.
+
+* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 8.1.1-3
+- fix pg_config.h for 64-bit and ppc platforms
+- update Makefile.regress (needs to --load-language=plpgsql)
+
+* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-2
+- oops, looks like we want uname -i not uname -m
+
+* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-1
+- Update to PostgreSQL 8.1.1
+- Make pg_config.h architecture-independent for multilib installs;
+ put the original pg_config.h into pg_config_$ARCH.h
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 8.1.0-4
+- Update included PDF-format manual to 8.1.
+
+* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 8.1.0-3
+- Rebuild due to openssl library update.
+
+* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 8.1.0-2
+- Rebuild due to openssl library update.
+
+* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 8.1.0-1
+- Update to PostgreSQL 8.1.0, PyGreSQL 3.7, and jdbc driver build 404
+- Fix PAM config file (must have account not only auth) (bug #167040)
+- Add BuildPrereq: libxslt-devel (bug #170141)
+- Sync with PGDG SRPM as much as feasible
+
+* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com>
+- use include instead of pam_stack in pam config
+
+* Tue Oct 4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2
+- Add rpath to plperl.so (bug #162198)
+
+* Tue Oct 4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1
+- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312
+- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665)
+- Remove obsolete Conflicts: against other python versions (bug #166754)
+- Add /etc/pam.d/postgresql (bug #167040)
+- Include contrib/xml2 in build (bug #167492)
+
+* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1
+- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see
+ bz#156727, CAN-2005-1409, CAN-2005-1410)
+- Update to jdbc driver build 311
+- Recreate postgres user after superseding an rh-postgresql install (bug #151911)
+- Ensure postgresql server is restarted if running during an upgrade
+
+* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2
+- rebuild for postgresql-tcl
+
+* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1
+- Update to PostgreSQL 8.0.2.
+
+* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5
+- Remove unwanted rpath specification from pgtcl (bz#150649)
+
+* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4
+- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435)
+- Make Requires: and Prereq: package linkages specify release not only
+ version, as per recent mailing list discussion.
+
+* Tue Mar 1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3
+- rebuild with openssl-0.9.7e
+
+* 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)
+
+* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1
+- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2,
+ and jdbc driver build 309.
+- Extensive cleanout of obsolete cruft in patch set.
+- Regression tests are run during RPM build (NOTE: cannot build as root when
+ this is enabled).
+- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767)
+- Make init script return a useful exit status (bz#80782)
+- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it
+ includes .so files that surely do not belong under /usr/share.
+- Remove useless .sgml files from docs RPM (bz#134450)
+- Put regression tests under /usr/lib64 on 64-bit archs, since .so files
+ are not architecture-independent.
+
+* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5
+- Rebuilt for new readline.
+
+* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4
+- Add restorecon to postgresql.init in order to restore database to correct
+- SELinux context.
+
+* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3
+- Update to PyGreSQL 3.6 (to fix bug #142711)
+- Adjust a few file permissions (bug #142431)
+- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003)
+
+* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2
+- Rebuild so python components play with python 2.4 (bug 139160)
+
+* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1
+- Update to PostgreSQL 7.4.6 (bugs 136947, 136949)
+- Make init script more paranoid about mkdir step of initializing a new
+ database (bugs 136947, 136949)
+
+* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4
+- Remove contrib/oidjoins stuff from installed fileset; it's of no use
+ to ordinary users and has a security issue (bugs 136300, 136301)
+- adjust chkconfig priority (bug 128852)
+
+* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3
+- Solve the stale lockfile problem (bugs 71295, 96981, 134090)
+- Use runuser instead of su for SELinux (bug 134588)
+
+* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2
+- Update to PyGreSQL 3.5.
+
+* Wed Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1
+- Update to PostgreSQL 7.4.5.
+- Update JDBC jars to driver build 215.
+- Add Obsoletes: entries for rh-postgresql packages, per bug 129278.
+
+* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3
+- Undo ill-considered chkconfig change that causes server to start
+ immediately upon install. Mea culpa (bug 127552).
+
+* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2
+- Update JDBC jars to driver build 214.
+
+* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1
+- Update to PostgreSQL 7.4.3.
+- Uninstalling server RPM stops postmaster first, per bug 114846.
+- Fix su commands to not assume PG user's shell is sh-like, per bug 124024.
+- Fix permissions on postgresql-python doc files, per bug 124822.
+- Minor postgresql.init improvements.
+
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
+- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
+- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
+- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
+- SELinux patch in init file: always su </dev/null, per bug 117901.
+- Rebuilt
+
+* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
+- Update to PostgreSQL 7.4.1.
+- Rebuilt
+
+* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
+- Fix chown syntax in postgresql.init also.
+- Rebuilt
+
+* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
+- Use ':' instead of '.' as separator for chown.
+
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu>
+- 7.4.1-1PGDG
+- Merge Sander Steffann's changes up to 7.4-0.5PGDG
+- Proper 7.4.1 JDBC jars this time.
+- Patch for no pl/python from Alvaro
+
+* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5
+- Rebuild for Perl 5.8.2.
+
+* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4
+- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263]
+- Add headers patch which moves ecpg headers to /usr/include/ecpg
+ [Bug #111195]
+
+* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3
+- uncomment buildrequires tcl-devel
+
+* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2
+- rebuild
+
+* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1
+- initial Red Hat build
+- move jars to /usr/share/java
+- fix rpm-multilib patch to use sysconfig
+
+* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
+- 7.4-0.1PGDG
+- Development JDBC jars in addition to the 7.3 jars; will replace the
+- 7.3 jars once 7.4 official jars are released.
+- Changed to use the bzip2 source to save a little size.
+- Removed some commented out portions of the specfile.
+- Removed the 7.3.4 PDF docs. Will replace with 7.4 PDF's once they
+- are ready.
+
+* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1
+- 7.4
+- Fixed Patch #1 (now rpm-pgsql-7.4.patch)
+- Fixed Patch #2 (now rpm-multilib-7.4.patch):
+- Patch #4 is unnecessary (upstream)
+- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch)
+- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err()
+ is provided by e2fsprogs and CPPFLAGS gets lost somewhere
+ inside configure (bad macro?)
+- No 7.4 PDF docs available yet (Source #17)
+- PyGreSQL is separated from the upstream distribution but
+ we include it as usual (Source #18)
+- Default to compiling libpq and ECPG as fully thread-safe
+
+- 7.4 Origin. See previous spec files for previous history. Adapted
+- from Red Hat and PGDG's 7.3.4 RPM, directly descended from
+- postgresql-7.3.4-2 as shipped in Fedora Core 1.
diff --git a/postgresql91/ruby-postgres.spec b/postgresql91/ruby-postgres.spec
new file mode 100644
index 0000000..df2ec4d
--- /dev/null
+++ b/postgresql91/ruby-postgres.spec
@@ -0,0 +1,107 @@
+%{?scl:%scl_package ruby-postgres}
+%{!?scl:%global pkg_name ruby-postgres}
+%{!?ruby_sitearch: %define ruby_sitearch %{?_scl_root}%(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
+
+Name: %{?scl_prefix}ruby-postgres
+Version: 0.7.9
+Release: 2010.01.28.2%{?dist}
+Summary: A Ruby interface for the PostgreSQL database engine
+Group: Development/Languages
+# Source says that ruby-gems-postgres is distributable under the same
+# terms as ruby.
+License: Ruby
+URL: http://bitbucket.org/ged/ruby-pg/
+Source: http://bitbucket.org/ged/ruby-pg/downloads/%{pkg_name}-%{version}.2008.01.28.tar.gz
+Patch1: 0001-Implement-trace.patch
+Patch2: 0002-Implement-notifies.patch
+Patch3: 0003-Implement-print.patch
+
+Requires: ruby(abi) = 1.8
+
+BuildRequires: %{?scl_prefix}postgresql-devel >= 6.5
+BuildRequires: ruby-devel
+
+Provides: %{?scl_prefix}ruby(postgres) = %{version}
+
+%{?scl:Requires:%scl_runtime}
+
+%description
+Database driver to access PostgreSQL databases from Ruby.
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+chmod a-x sample/psql.rb
+
+%build
+%{?scl:scl enable %scl - << \EOF}
+cd ext
+ruby extconf.rb --with-cflags="$RPM_OPT_FLAGS"
+make
+%{?scl:EOF}
+
+%install
+cd ext
+make DESTDIR=%{buildroot}%{?scl:%_scl_root} install
+
+%files
+%defattr(-, root, root)
+%doc ChangeLog README README.ja doc sample
+%{ruby_sitearch}/postgres.so
+
+%changelog
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2010.01.28.2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2009.01.28.2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Sep 08 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.2
+- Add patch to implement trace support (from upstream ruby-pg project)
+- Add patch to implement print support (from older 0.7.1 sources)
+- Add patch to implement notifies call (from older 0.7.1 sources)
+
+* Fri Aug 13 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.1
+- Update to ruby-postgres .7.9.2008.01.28
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-11
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-10
+- apply patch properly
+
+* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-9
+- fix license tag
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7.1-8
+- Autorebuild for GCC 4.3
+
+* Wed Aug 22 2007 David Lutterkort <dlutter@redhat.com> - 0.7.1-7
+- Rebuild for F8 buildid
+
+* Fri Dec 8 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-6
+- Rebuild against PostgreSQL 8.2.0
+
+* Wed Sep 13 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-5
+- Rebuilt for FC6
+- Remove _smp_mflags from make install
+
+* Wed Aug 2 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-4
+- Fix CFLAGS
+- Add id to buildroot path
+
+* Tue Jul 11 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-3
+- Bring in accordance with packaging guidelines
+- Changed license from 'Distributable' to 'Ruby License'
+
+* Mon Jun 5 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-2
+- Clean build root for install
+
+* Wed May 24 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-1
+- Initial build
+
diff --git a/postgresql91/rubygem-pg.spec b/postgresql91/rubygem-pg.spec
new file mode 100644
index 0000000..2d3a19f
--- /dev/null
+++ b/postgresql91/rubygem-pg.spec
@@ -0,0 +1,148 @@
+%{?scl:%scl_package rubygem-%{gemname}}
+%{!?scl:%global pkg_name %{name}}
+
+# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*-
+%global gemdir %{?_scl_root}%(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname pg
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%{!?ruby_sitearch: %global ruby_sitearch %{?_scl_root}%(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+%global rubyabi 1.8
+
+Summary: A Ruby interface to the PostgreSQL RDBMS
+Name: %{?scl_prefix}rubygem-%{gemname}
+Version: 0.12.2
+Release: 2%{?dist}
+Group: Development/Languages
+# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
+#
+# The portions of the code that are BSD-licensed are licensed under
+# the BSD 3-Clause license; the contents of the BSD file are incorrect.
+#
+License: (GPLv2 or Ruby) and BSD
+URL: http://bitbucket.org/ged/ruby-pg/
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygems
+Requires: ruby
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems
+BuildRequires: ruby ruby-devel
+BuildRequires: %{?scl_prefix}postgresql-server %{?scl_prefix}postgresql-devel
+# EPEL does not have RSpec 2.x :/
+%if 0%{?fedora}
+# Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x
+BuildRequires: rubygem(rspec-core)
+%endif
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+This is the extension library to access a PostgreSQL database from Ruby.
+This library works with PostgreSQL 7.4 and later.
+
+
+%package doc
+Summary: Documentation for %{pkg_name}
+Group: Documentation
+Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
+
+%description doc
+Documentation for %{pkg_name}
+
+
+%prep
+%setup -n %{pkg_name}-%{version} -q -c -T
+mkdir -p .%{gemdir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+%{?scl:scl enable %{scl} "}
+gem install --local --install-dir .%{gemdir} \
+ -V --force %{SOURCE0}
+%{?scl:"}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+ %{buildroot}%{gemdir}/
+
+install -d -m0755 %{buildroot}%{ruby_sitearch}
+mv %{buildroot}%{geminstdir}/lib/pg_ext.so %{buildroot}%{ruby_sitearch}/
+
+# Remove the binary extension sources and build leftovers.
+rm -rf %{buildroot}%{geminstdir}/ext
+
+# Remove useless shebangs.
+sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{geminstdir}/lib/pg.rb
+sed -i -e '/^#!rake/d' %{buildroot}%{geminstdir}/Rakefile
+sed -i -e '/^#!rake/d' %{buildroot}%{geminstdir}/Rakefile.cross
+
+# Fix spec shebangs.
+# https://bitbucket.org/ged/ruby-pg/issue/74/
+for file in `find %{buildroot}%{geminstdir}/spec -type f ! -perm /a+x -name "*.rb"`; do
+ [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] \
+ && sed -i -e 's/^#!\/usr\/bin\/env spec/#!\/usr\/bin\/env rspec/' $file \
+ && chmod -v 755 $file
+done
+
+%if 0%{?fedora}
+%check
+pushd .%{geminstdir}
+%{?scl:scl enable %{scl} "}
+rspec spec
+%{?scl:"}
+popd
+%endif
+
+%files
+%exclude %{geminstdir}/.gemtest
+%{ruby_sitearch}/pg_ext.so
+%dir %{geminstdir}
+%doc %{geminstdir}/BSD
+%doc %{geminstdir}/GPL
+%doc %{geminstdir}/LICENSE
+%{geminstdir}/lib
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/ChangeLog
+%doc %{geminstdir}/Contributors.rdoc
+%doc %{geminstdir}/History.rdoc
+%doc %{geminstdir}/Manifest.txt
+%{geminstdir}/Rakefile
+%{geminstdir}/Rakefile.cross
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/README.ja.rdoc
+%doc %{geminstdir}/README.OS_X.rdoc
+%doc %{geminstdir}/README.windows.rdoc
+%{geminstdir}/misc
+%{geminstdir}/sample
+%{geminstdir}/spec
+
+%changelog
+* Tue Apr 24 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-2
+- Fix provides macro.
+
+* Tue Apr 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-1
+- Upgrade to pg 0.12.2.
+
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-5
+- Pass CFLAGS to extconf.rb.
+
+* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-4
+- Binary extension moved into ruby_sitearch dir.
+- -doc subpackage made architecture independent.
+
+* Wed Jun 01 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-3
+- Quoted upstream license clarification.
+
+* Mon May 30 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-2
+- Removed/fixed shebang in non-executables.
+- Removed sources.
+
+* Thu May 26 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-1
+- Initial package