diff options
author | Remi Collet <remi@remirepo.net> | 2024-08-14 15:48:41 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-08-14 15:48:41 +0200 |
commit | 06439860ec2c927b59a2a857fe119e33f76d9912 (patch) | |
tree | 282c2b3a836b3248097174cb8af0f65e9683c335 /php.spec | |
parent | da350564906466bd5dffd5a56640d6dd6998432d (diff) |
allow to build using libiodbc instead of unixODBC (--with idobc)
Diffstat (limited to 'php.spec')
-rw-r--r-- | php.spec | 27 |
1 files changed, 23 insertions, 4 deletions
@@ -118,6 +118,8 @@ %bcond_with tzdata %endif +# build with libiodbc instead of unixODBC +%bcond_with iodbc # httpd 2.4.10 with httpd-filesystem and sethandler support %if 0%{?fedora} >= 21 || 0%{?rhel} >= 8 @@ -138,7 +140,7 @@ Summary: PHP scripting language for creating dynamic web sites Name: %{?scl_prefix}php Version: %{upver}%{?rcver:~%{rcver}}%{?gh_date:.%{gh_date}} -Release: 1%{?dist} +Release: 2%{?dist} # All files licensed under PHP version 3.01, except # Zend is licensed under Zend # TSRM is licensed under BSD @@ -200,6 +202,8 @@ Patch47: php-8.1.0-phpinfo.patch # Always warn about missing curve_name # Both Fedora and RHEL do not support arbitrary EC parameters Patch48: php-8.3.0-openssl-ec-param.patch +# Fix libidobc headers path +Patch49: php-8.2.0-iodbc.patch # RC Patch Patch91: php-7.2.0-oci8conf.patch @@ -596,8 +600,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 @@ -607,6 +614,9 @@ 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 (instead of unixODBC). +%endif %package soap Summary: A module for PHP applications that use the SOAP protocol @@ -990,6 +1000,7 @@ sed -e 's/php-devel/%{?scl_prefix}php-devel/' -i scripts/phpize.in %patch -P46 -p1 -b .argon2 %patch -P47 -p1 -b .phpinfo %patch -P48 -p1 -b .ec-param +%patch -P49 -p1 -b .iodbc %patch -P91 -p1 -b .remi-oci8 @@ -1291,7 +1302,13 @@ build --libdir=%{_libdir}/php \ --enable-xmlreader=shared --enable-xmlwriter=shared \ --with-curl=shared \ --enable-pdo=shared \ +%if %{with iodbc} + --with-iodbc=shared,%{_root_prefix} \ + --with-pdo-odbc=shared,iodbc,%{_root_prefix} \ +%else + --with-unixODBC=shared,%{_root_prefix} \ --with-pdo-odbc=shared,unixODBC,%{_root_prefix} \ +%endif --with-pdo-mysql=shared,mysqlnd \ --with-pdo-pgsql=shared,%{_root_prefix} \ --with-pdo-sqlite=shared \ @@ -1316,7 +1333,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 \ @@ -1879,6 +1895,9 @@ fi %changelog +* Wed Aug 14 2024 Remi Collet <remi@remirepo.net> - 8.3.11~RC1-2 +- allow to build using libiodbc instead of unixODBC (--with idobc) + * Wed Aug 14 2024 Remi Collet <remi@remirepo.net> - 8.3.11~RC1-1 - update to 8.3.11RC1 |