spec: allow debug also for upgrade when %beta == 1

Version: 9.2.4-6
This commit is contained in:
Pavel Raiskup 2013-07-26 15:51:30 +02:00
parent 9d28c85075
commit cb07b6b8cc
1 changed files with 5 additions and 1 deletions

View File

@ -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