diff options
Diffstat (limited to 'php.spec')
| -rw-r--r-- | php.spec | 28 | 
1 files changed, 23 insertions, 5 deletions
| @@ -75,6 +75,8 @@  %bcond_without        libgd  # build with system tzdata (2021 required)  %bcond_without        tzdata +# build with libiodbc instead of unixODBC +%bcond_with           iodbc  %global gh_commit    9ce6980b4d93d539341807087abef9217cb81351  %global gh_short     %(c=%{gh_commit}; echo ${c:0:7}) @@ -88,7 +90,7 @@  Summary: PHP scripting language for creating dynamic web sites  Name:    %{?scl_prefix}php  Version: %{upver}%{?rcver:~%{rcver}}%{?gh_date:.%{gh_date}} -Release: 2%{?dist} +Release: 3%{?dist}  # All files licensed under PHP version 3.01, except  # Zend is licensed under Zend  # TSRM is licensed under BSD @@ -504,8 +506,11 @@ License:  PHP-3.01  Requires: %{?scl_prefix}php-pdo%{?_isa} = %{version}-%{release}  Provides: %{?scl_prefix}php_database  Provides: %{?scl_prefix}php-pdo_odbc, %{?scl_prefix}php-pdo_odbc%{?_isa} -# EL-7 version don't have pkgconfig -BuildRequires: unixODBC-devel +%if %{with iodbc} +BuildRequires: pkgconfig(libiodbc) +%else +BuildRequires: pkgconfig(odbc) +%endif  %description odbc  The %{?scl_prefix}php-odbc package contains a dynamic shared object that will add @@ -515,6 +520,11 @@ data sources (which are often, but not always, databases). PHP is an  HTML-embeddable scripting language. If you need ODBC support for PHP  applications, you will need to install this package and the php  package. +%if %{with iodbc} +Package build using libiodbc. +%else +Package build using unixODBC. +%endif  %package soap  Summary: A module for PHP applications that use the SOAP protocol @@ -1123,7 +1133,13 @@ build --libdir=%{_libdir}/php \        --enable-xmlreader=shared --enable-xmlwriter=shared \        --with-curl=shared \        --enable-pdo=shared \ -      --with-pdo-odbc=shared,unixODBC,%{_root_prefix} \ +%if %{with iodbc} +      --with-iodbc=shared \ +      --with-pdo-odbc=shared,iodbc \ +%else +      --with-unixODBC=shared \ +      --with-pdo-odbc=shared,unixODBC \ +%endif        --with-pdo-mysql=shared,mysqlnd \        --with-pdo-pgsql=shared,%{_root_prefix} \        --with-pdo-sqlite=shared \ @@ -1147,7 +1163,6 @@ build --libdir=%{_libdir}/php \        --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \        --enable-shmop=shared \        --enable-posix=shared \ -      --with-unixODBC=shared,%{_root_prefix} \        --enable-intl=shared \  %if %{with enchant}        --with-enchant=shared \ @@ -1638,6 +1653,9 @@ fi  %changelog +* Wed Aug 14 2024 Remi Collet <remi@remirepo.net> - 8.4.0~beta1-3 +- allow to build using libiodbc instead of unixODBC (--with idobc) +  * Wed Aug 14 2024 Remi Collet <remi@remirepo.net> - 8.4.0~beta1-2  - test build for upstream patch  - open https://github.com/php/php-src/pull/15383 fix test expectation | 
