]> git.pld-linux.org Git - packages/php.git/commitdiff
set distro default with bcond define, but allow commandline override
authorElan Ruusamäe <glen@delfi.ee>
Mon, 10 Jun 2013 18:52:30 +0000 (21:52 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 10 Jun 2013 18:52:30 +0000 (21:52 +0300)
php.spec

index 5a2997aebd90eef8a83096733e62ebdb1f8f4f21..7d52d0368e9f4310fd4584f57929d57607d5c9eb 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -32,7 +32,7 @@
 %bcond_with    instantclient   # build Oracle oci8 extension module against oracle-instantclient package
 %bcond_with    system_gd       # with system gd (we prefer internal since it enables few more features)
 %bcond_with    system_libzip   # with system libzip (reported broken currently)
-%bcond_with    default_php     # use this PHP as default PHP in distro (distro default is set below)
+%bcond_without default_php     # use this PHP as default PHP in distro
 %bcond_without curl            # without CURL extension module
 %bcond_without filter          # without filter extension module
 %bcond_without enchant         # without Enchant extension module
@@ -113,8 +113,10 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 
 %if "%{pld_release}" == "ac"
 %define                _noautoreqdep libphp_common.*
-%else
-%define                with_default_php        1
+# if commandline --with was given. respect that
+%if 0%{!?_with_default_php:1}
+%undefine      with_default_php
+%endif
 %endif
 
 %define                rel     1
This page took 0.285379 seconds and 4 git commands to generate.