From cb07b6b8cc835ba94e5dcb4a97d20cae0060732b Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 26 Jul 2013 15:51:30 +0200 Subject: [PATCH] spec: allow debug also for upgrade when %beta == 1 Version: 9.2.4-6 --- postgresql.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/postgresql.spec b/postgresql.spec index 3d2a0fe..a63c2e4 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -29,7 +29,7 @@ # The base package, the libs package, the devel package, and the server package # always get built. -%global beta 0 +%{!?beta:%global beta 0} %{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} %{!?test:%global test 1} @@ -577,6 +577,10 @@ rm -f src/tutorial/GNUmakefile ./configure --build=%{_build} --host=%{_host} \ --prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \ --disable-rpath \ +%if %beta + --enable-debug \ + --enable-cassert \ +%endif --with-system-tzdata=/usr/share/zoneinfo make %{?_smp_mflags} all