From 17b45596765357fd022ec21c534698f59581b958 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Thu, 30 Apr 2020 14:44:25 +0200 Subject: [PATCH] Enable php bindings --- lasso.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lasso.spec b/lasso.spec index dc46079..68b1a85 100644 --- a/lasso.spec +++ b/lasso.spec @@ -1,5 +1,5 @@ %global with_java 0 -%global with_php 0 +%global with_php 1 %global with_perl 1 # The Lasso build system requires python, especially the binding generators %global with_python 1 @@ -42,9 +42,13 @@ %endif %if %{with_php} - %global configure_args %{configure_args} --enable-php5=yes --with-php5-config-dir=%{php_inidir} + %if 0%{?fedora} || 0%{?rhel} > 7 + %global configure_args %{configure_args} --enable-php5=no --enable-php7=yes --with-php7-config-dir=%{php_inidir} + %else + %global configure_args %{configure_args} --enable-php5=yes --with-php5-config-dir=%{php_inidir} --enable-php7=no + %endif %else - %global configure_args %{configure_args} --enable-php5=no + %global configure_args %{configure_args} --enable-php5=no --enable-php7=no %endif %if %{with_wsf} @@ -314,6 +318,7 @@ rm -fr %{buildroot}%{_defaultdocdir}/%{name} %changelog * Thu Mar 09 2023 Xavier Bachelot - 2.8.1-1 - Update to 2.8.1 (fixes RHBZ#2142849) +- Enable php bindings * Thu Jan 19 2023 Fedora Release Engineering - 2.7.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild