Commit Graph

374 Commits

Author SHA1 Message Date
Pavel Raiskup 50065a2277 postgresql-test-rpm-macros subpackage
We used to provide the functionality under postgresql-devel
subpackage, but that one has already too much purposes (we build
against that both client tools and server modules, using that for
tests is too much).

Newly, the postgresql-server package is automatically added as
transitive dependency, so the typical fix for dependant packages
would be:

    - BuildRequires: postgresql-devel
    - BuildRequires: postgresql-server
    + BuildRequires: postgresql-test-rpm-macros

(when the package doesn't need header files from postgresql-devel)

Version: 10.3-2
2018-04-13 15:02:14 +02:00
Pavel Raiskup fa3717b8d2 setup: new upstream release
Version: 10.3-2
2018-04-13 14:48:03 +02:00
Pavel Raiskup 5b5042670f define %precise_version
Version: 10.3-2
2018-04-13 14:46:24 +02:00
Pavel Raiskup d1c05385d1 Drop -O3 for ppc* to work-around FTBFS with gcc 8.0
Related: rhbz#1544349
Version: 10.3-1
2018-03-01 18:08:52 +01:00
Pavel Raiskup 0948580a64 spec: add gcc to BuildRequires
Per https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequire

Version: 10.3-1
2018-03-01 13:54:02 +01:00
Pavel Raiskup 7e0314402a rebase: update to 10.3
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-3.html

Version: 10.3-1
2018-03-01 13:02:42 +01:00
Petr Kubat 82b3e4e96d rebase: update to 10.2
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-2.html

Version: 10.2-1
2018-02-08 10:53:58 +01:00
Björn Esser 0df80d97f3
Rebuilt for switch to libxcrypt 2018-01-20 23:07:35 +01:00
Pavel Raiskup a820a9eff8 spec: cleanup %if-fork for obsoleted fedora versions 2017-12-19 15:55:16 +01:00
Pavel Raiskup 5dec06f6e5 service: use sd_notify and disable timeout
Resolves: rhbz#1414314, rhbz#1525477
Version: 10.1-4
2017-12-19 10:51:26 +01:00
Pavel Raiskup ead24cd155 spec: provides/requires s/python/python2/
Version: 10.1-3
2017-12-13 14:18:37 +01:00
Pavel Raiskup 55a65cc101 spec: drop unsupported --with-krb5
Version: 10.1-3
2017-12-13 12:19:25 +01:00
Pavel Raiskup 5fbaf23499 spec: python{2,3} %configure opts on one place
Version: 10.1-3
2017-12-13 11:57:29 +01:00
Pavel Raiskup 0a81447ee3 postgresql-setup: update to version 7.0
Version: 10.1-2
2017-11-14 15:15:39 +01:00
Pavel Raiskup 971c8f8aa3 rebase: security update to 10.1
Per release notes:
https://www.postgresql.org/docs/10/static/release-10-1.html

Version: 10.1-1
2017-11-08 07:10:52 +01:00
Pavel Raiskup 6f2e35359f postgresql-setup: fix CVE-2017-15097
Fixed by updating the postgresql-setup tarball.

Resolves: CVE-2017-15097
Version: 10.0-4
2017-11-08 07:01:14 +01:00
Pavel Raiskup 07894e0da4 upgrade: provide %postgresql_upgrade_prefix macro
Related: rhbz#1475177
Version: 10.0-3
2017-10-12 12:48:51 +02:00
Pavel Raiskup 4a3d2412bc bundling: confess postgresql-setup and prevversion bundles
Version: 10.0-3
2017-10-12 11:14:20 +02:00
Pavel Raiskup 83fb3d530a upgrade-devel: stricter separation from 'postgresql-upgrade'
Related: rhbz#1475177
Version: 10.0-2
2017-10-09 08:58:39 +02:00
Jozef Mlích 710aefbd49 upgrade-devel: support for upgrade with extenstions
Related: rhbz#1475177
Version: 10.0-2
2017-10-09 08:46:51 +02:00
Pavel Raiskup d3a91d27a0 rebase: update to 10.0
Per release notes:
https://www.postgresql.org/docs/10/static/release-10.html

Version: 10.0-1
2017-10-06 20:36:37 +02:00
Pavel Raiskup e1715bb6aa libs: own the %{_libdir}/pgsql directory
This directory logically belongs to postgresql-libs;  but
originally this request was triggered by rhbz#1478831
where we observed that there is leftover directory after
postgresql-devel removal.

Resolves: rhbz#1478831
Version: 9.6.5-2
2017-09-05 16:16:06 +02:00
Pavel Raiskup 1fa73e0a7b sources: upstream disabled the ftp:// download option
Version: 9.6.5-1
2017-08-29 16:12:03 +02:00
Pavel Raiskup d93550a71b rebase: update to 9.6.5
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-5.html

Version: 9.6.5-1
2017-08-29 10:37:21 +02:00
Petr Kubat 698585a43d rebase: update to 9.6.4
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-4.html

Resolves: #1480284
Version: 9.6.4-1
2017-08-11 11:51:28 +02:00
Fedora Release Engineering c719c5ea1e - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 06:18:09 +00:00
Fedora Release Engineering e244775c56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 08:57:18 +00:00
Pavel Raiskup c27dd8df9e plperl: drop postgresql-perl-rpath.patch
Perl now provides valid libperl.so in %_libdir so there's not need
to play with rpath anymore.

Resolves: rhbz#1474417
Version: 9.6.3-7
2017-07-24 17:03:18 +02:00
Pavel Raiskup 7c1110c041 spec: better provides-exclude fix based on rh-postgresql96
Version: 9.6.3-6
2017-06-26 12:10:07 +02:00
Pavel Raiskup 25dea2dcb8 spec: avoid providing libpqwalreceiver.so plugin as soname
Related: rhbz#1464368
Version: 9.6.3-6
2017-06-23 11:24:54 +02:00
Pavel Raiskup 36a141a4c0 spec: drop the old %beta hack about %__os_install_post
This always was broken and the %__os_install_post macro was
redefined also for non-beta builds;  that's because
%{?x:%global y z} defines %y even when %x is zero.

If we really wanted this %beta/%post hack, it would have to look
similarly to:
%{lua:if rpm.expand("%beta") ~= "0" then rpm.define('...') end}
On the other hand, I'm not sure that this is actually needed
nowadays so I'm removing it completely.  Please let us know if you
happen to need the %__os_install_post redefinition.

Originally added by commit 9636c11b0d.

Version: 9.6.3-5
2017-06-21 08:55:30 +02:00
Pavel Raiskup 235453b233 spec: drop -DLINUX_OOM_SCORE_ADJ=0 from CFLAGS
Related: rhbz#1110969, rhbz#1436554
Version: 9.6.3-4
2017-06-12 13:26:05 +02:00
Jitka Plesnikova 19739cf1a6 Perl 5.26 rebuild 2017-06-04 15:07:09 +02:00
Petr Kubat 5b2a26a63d fix indentation issues in hstore_plperlu test-case
Resolves: rhbz#1453111
Version: 9.6.3-2
2017-05-22 11:30:49 +02:00
Pavel Raiskup 4aa087fae3 rebase: update to 9.6.3
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-3.html

Version: 9.6.3-1
2017-05-11 12:39:35 +02:00
Pavel Raiskup cb6e898698 setup: new upstream release
Version: 9.6.2-4
2017-04-24 13:22:35 +02:00
Pavel Raiskup 56b78dd057 spec: spring cleanup #2 (systemd obsoleted constructs)
Resolves: rhbz#1440729
Version: 9.6.2-3
2017-04-24 13:22:21 +02:00
Pavel Raiskup 19af2059f2 spec: spring cleaning
- %_pkgdocdir definition, not needed now
- define %service_name == postgresql.service
- remove duplicate help2man br
- don't try to install perl-generators on RHEL
- add BR Data::Dumper for perl testsuite
- use %_localstatedir for several /var occurrences
- use %_datadir instead of hard-wiring it
- don't install *.o tutorial files (rhbz#1187514)
- use mv instead of cp for rhbz#1250006 work-around
- run 'make check' for postgresql-setup tarball

Resolves: rhbz#1440729
Version: 9.6.2-3
2017-04-24 13:22:03 +02:00
Pavel Raiskup 55a2b11e5d bump: rebuild for rhbz#1436006
Version: 9.6.2-2
Resolves: rhbz#1436006
2017-03-27 08:56:23 +02:00
Pavel Raiskup 0c1f8cf381 tests: fix testsuites for tzdata2017a
Version: 9.6.2-1
2017-03-13 11:12:16 +01:00
Pavel Raiskup 86f7229682 static: drop mistakenly added libpgfeutils.a
Version: 9.6.2-1
2017-02-22 10:01:46 +01:00
Pavel Raiskup f200f72f3d rebase: update to 9.6.2
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-2.html

Version: 9.6.2-1
2017-02-09 22:33:28 +01:00
Igor Gnatenko 069ea47da5 Rebuild for readline 7.x
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 17:30:37 +01:00
Miro Hrončok 61feab0edf Rebuild for Python 3.6 2016-12-19 18:20:36 +01:00
Pavel Raiskup b0108e4725 build: remove config.{guess,sub} hacks
These issues are now automatically solved by %configure.

Version: 9.6.1-1
2016-10-26 08:43:54 +02:00
Pavel Raiskup ba2a35679a build: remove plpython build hack
(fixed upstream: 7107d58ec5a3c45967e77525809612a5f89b97f3)

Version: 9.6.1-1
2016-10-26 08:29:39 +02:00
Pavel Raiskup 30648b934d rebase: update to 9.6.1
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6-1.html

Version: 9.6.1-1
2016-10-26 08:29:13 +02:00
Pavel Raiskup bb1db959b3 setup: rebase to 5.0
- macros are now automatically generated
- there are convenient macros for testing other
  packages against postgresql-server

Resolves: rhbz#1368477, rhbz#1368480
Version: 9.6.0-1
2016-10-04 12:42:24 +02:00
Pavel Raiskup 041e748b02 typoe: remove leftover in comment
Version: 9.6.0-1
2016-10-02 14:17:53 +02:00
Pavel Raiskup c02b42b8e8 build: fix plpython's makefile inconsistency
Version: 9.6.0-1
2016-10-01 09:11:17 +02:00
Pavel Raiskup 08014984d3 run_testsuite: don't fail immediately
Version: 9.6.0-1
2016-10-01 09:10:35 +02:00
Pavel Raiskup 97dfdfe4b9 rebase: new upstream major release
Per release notes:
https://www.postgresql.org/docs/9.6/static/release-9-6.html

Merged changes from https://github.com/devexp-db/postgresql-latest
- removal of obsoleted patch, we can set port in postgresql.conf
- install new files
- hack for plpython build

Version: 9.6.0-1
2016-10-01 09:09:13 +02:00
Petr Kubat 5239ac0d0f rebase: minor version update
Per upstream release notes:
http://www.postgresql.org/docs/9.5/static/release-9-5-4.html

Version: 9.5.4-1
2016-08-12 07:48:18 +02:00
Petr Písař 34e9d01899 Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 09:25:25 +02:00
Pavel Raiskup a3f63f1f95 packaging: depend on multilib-rpm-config
.. to correctly install architecture-dependant header files.

Related: rhbz#1286193
Version: 9.5.3-3
2016-06-21 12:15:14 +02:00
Jitka Plesnikova b5308137b9 Perl 5.24 rebuild 2016-05-15 05:16:43 +02:00
Pavel Raiskup f164285e53 rebase: minor version update
Per upstream release notes:
http://www.postgresql.org/docs/9.5/static/release-9-5-3.html

Version: 9.5.3-1
2016-05-12 10:36:48 +02:00
Pavel Raiskup 269d2b7daf test: pg_regress changed options
Use --bindir instead of --psqldir against PostgreSQL 9.5+.

Related: rhbz#1334276
Version: 9.5.2-2
2016-05-09 16:18:06 +02:00
Pavel Raiskup c14bb2cdd1 packaging: own the datadir/postgresql-setup directory
Version: 9.5.2-1
Resolves: 1321918
2016-04-03 21:33:12 +02:00
Pavel Raiskup b6b08dffec rebase: minor version update
Per upstream release notes:
http://www.postgresql.org/docs/9.5/static/release-9-5-2.html

Version: 9.5.2-1
2016-04-03 21:32:10 +02:00
Pavel Raiskup f01c700fce static: add static libraries missed by packagers
Put those libraries into separate sub-package to make sure that
people build-require concrete subpackage (not devel subpackage),
and we can easily track them.

Resolves: rhbz#784281
Version: 9.5.1-2
2016-02-26 08:25:43 +01:00
Pavel Raiskup 89f36b76f7 rebase: minor version update
Per upstream release notes:
http://www.postgresql.org/docs/9.5/static/release-9-5-1.html

Version: 9.5.1-1
2016-02-09 15:19:16 +01:00
Fedora Release Engineering c12fcd368d - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 18:22:43 +00:00
Pavel Raiskup 04a9ae75cf postgresql-setup: reflect pg_upgrade movement
The pg_upgrade binary was moved from postgresql-upgrade package
into postgresql package.

Version: 9.5.0-1
2016-01-07 00:14:58 +01:00
Pavel Raiskup 2427b5ec80 rebase: major release update
Per release notes:
http://www.postgresql.org/docs/9.5/static/release-9-5.html

Version: 9.5.0-1
2016-01-06 20:27:06 +01:00
Pavel Kajaba 10326645ae fix FTBFS caused by update of libxml2
Resolves: rhbz:#1286692
Version: 9.4.5-5
2015-12-16 12:56:26 +01:00
Pavel Kajaba bda5fb8479 Added empty clean section to fix short-circuit
Version: 9.4.5-4
2015-12-03 14:48:46 +01:00
Pavel Raiskup c7e64e17fc tests: fix FTBFS with new Python 3.5
Resolves: rhbz#1280404
Version: 9.4.5-3
2015-11-12 11:44:37 +01:00
Peter Robinson 74667b2a32 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 2015-11-10 14:53:03 +00:00
Pavel Raiskup 8a02c71231 multilib: fix devel subpackage
Remove the templates and add sufficiently general script to
generate the header stub file.  I'll try to propose this to
redhat-rpm-config package inclusion.

Resolves: rhbz#1190346
Version: 9.4.5-2
2015-10-16 15:45:27 +02:00
Pavel Raiskup 4034635788 devel: stop requiring 'postgresql' package
Resolves: rhbz#1272219
Version: 9.4.5-2
2015-10-16 15:40:42 +02:00
Pavel Raiskup 5cf6330f38 rebase: minor release update
Per release notes:
http://www.postgresql.org/docs/9.4/static/release-9-4-5.html

Version: 9.4.5-1
2015-10-06 15:23:21 +02:00
Pavel Raiskup b66f190455 postgresql-setup: rebase to 3.4
Resolves: rhbz#1265319, rhbz#1247477
Version: 9.4.4-6
2015-09-25 13:54:46 +02:00
Pavel Raiskup 72ca6afc2a build: enable hardened build
https://bugzilla.redhat.com/show_bug.cgi?id=952946#c25

Resolves: rhbz#947022
Version: 9.4.4-5
2015-09-17 11:16:50 +02:00
Pavel Raiskup a037a89502 spec: install README.rpm-dist properly
Resolves: rhbz#1249708
Version: 9.4.4-4
2015-08-04 12:50:04 +02:00
Pavel Raiskup 31524fb5ac multilib: fix wrong arch classification
This partly reverts e6acde1a9 commit where is no clear
justification why the change was actually done.  Because the
pg_config.h was not ready for ppc64p7 and aarch64 -- it was clear
breakage.  In 1242873 discussion, it appeared that ppc64p7 needs
special handling as it is compatible/equivalent with ppc64.

Resolves: rhbz#1242873
Version: 9.4.4-3
2015-07-14 21:38:12 +02:00
Dennis Gilmore 9e3e9192dc - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 15:41:44 +00:00
Pavel Raiskup 7184916356 tests: fix failure for Perl 5.22
Resolves: rhbz#1231279
Version: 9.4.4-1
2015-06-15 09:36:54 +02:00
Pavel Raiskup 295849a9b5 rebase: minor release update
Per release notes:
http://www.postgresql.org/docs/9.4/static/release-9-4-4.html

Version: 9.4.4-1
2015-06-11 15:48:32 +02:00
Jitka Plesnikova 0729cbe435 Perl 5.22 rebuild 2015-06-06 18:24:03 +02:00
Jozef Mlich 68a237cd75 rebase: minor release update
Per release notes:
http://www.postgresql.org/docs/9.4/static/release-9-4-3.html

Version: 9.4.3-1
2015-06-03 13:44:19 +02:00
Jozef Mlích e66ec66d19 rebase: minor release update
Per release notes:
http://www.postgresql.org/docs/9.4/static/release-9-4-2.html

Version: 9.4.2-1
2015-05-22 01:07:51 +02:00
Pavel Raiskup 3c624ca2d8 build: disable hardening
Version: 9.4.1-4
2015-05-22 00:06:58 +02:00
Pavel Raiskup 3120db36c4 check: be more verbose if something failed
Version: 9.4.1-4
2015-05-22 00:00:04 +02:00
Jozef Mlich e6acde1a90 Using rpm macros instead of hard wired paths; Adding aarch64, ppc64p7 2015-03-26 09:44:50 +01:00
Jozef Mlich 08eb705370 Update of postgresql-setup to 3.3 2015-03-26 09:43:26 +01:00
Jozef Mlich 58e1c1f5ad Adding tcl-pgtcl into Requires of -tcl subpackage 2015-03-19 16:55:44 +01:00
Pavel Raiskup ab286396f6 rebase: minor release update
Per release notes:
http://www.postgresql.org/docs/9.4/static/release-9-4-1.html

Version: 9.4.1-1
2015-02-05 16:00:38 +01:00
Pavel Raiskup 3ca08a72e8 spec: sort %files lists (LANG=C sort)
Also substitute some hardwired paths with predefined macros.
Simplify tests a bit.

Version: 9.4.0-2
2015-02-04 07:32:53 +01:00
Jozef Mlich fd57b14656 update to 9.4.0 per release notes
http://www.postgresql.org/docs/9.4/static/index.html
2015-01-05 10:27:20 +01:00
Pavel Raiskup 1ade253201 testsuite: put contents of regression.diffs to stdout
.. to help users who face issues like rhbz#1118392.

Also, testsuite consists of several 'make check' runs.  From now,
continue with checking if some of 'make check' runs failed;  just
to be sure we have complete test results.  Make the test failed
once all testing is done.

Resolves: #1118392
Version: 9.3.5-8
2014-11-24 14:57:21 +01:00
Pavel Raiskup 7fcd42641d upgrade: be more benevolent in locale comparison
In F20+, we should be OK for upgrades where locale changed like
from en_US.utf8 to en_US.UTF-8.

Resolves: #1007802
Version: 9.3.5-7
2014-10-20 12:04:05 +02:00
Pavel Raiskup c88f76d540 postgresql-setup is now in separate tarball
.. together with other scripts and files.  This should make the
development and testing of those files easier.  Also packaging
should benefit from this change.

Version: 9.3.5-6
Resolves: #1145129
2014-09-22 14:55:49 +02:00
Jitka Plesnikova 721530b8e4 Perl 5.20 rebuild 2014-08-27 17:46:57 +02:00
Pavel Raiskup ebf59e42fa rpm-macros: install macros.%{name}, not %{name}.macros
The %{name}.macros file is not loaded by rpm.  Spotted by jmlich
through regular dependency checker in Fedora & postgresql-ip4r
package.

Version: 9.3.5-4
2014-08-21 15:34:41 +02:00
Peter Robinson 09271080e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 19:40:36 +00:00
Pavel Raiskup c9a55bd785 spec: fix prevversion checksum link
Version: 9.3.5-2
2014-07-24 13:47:57 +02:00
Pavel Raiskup 0e0465561c rebase: minor release update
Per release notes:
http://www.postgresql.org/docs/9.3/static/release-9-3-5.html

Version: 9.3.5-1
2014-07-24 12:57:09 +02:00
Pavel Raiskup 4f1d2a0833 devel: guard against incompabtible plugin installation
Each package having some *.so plugin for postgresql-server should
be rebuilt against each major version bump of PostgreSQL.  Using
this statements in F21+

  BuildRequires: postgresql-devel
  Require: postgresql-server(:MODULE_COMPAT_%{postgresql_major})

then automatically blocks installation of postgresql-server and
incompatible plugin at the same time and thus indirectly forces
plugin maintainers to rebuild their packages against newer server.

File macros.postgresql now starts providing correct
%{postgresql_major} macro.

Resolves: #1008939
Version: 9.3.4-8
2014-07-18 09:10:43 +02:00
Pavel Raiskup bf770dd7e1 spec: move big html documentation from base to *-docs package
Resolves: #1086420
Version: 9.3.4-8
2014-07-18 09:09:42 +02:00