disable PHP extension on 32-bit

This commit is contained in:
Remi Collet 2024-04-09 17:01:36 +02:00
parent dfadf1c557
commit 16288ac4b6

View File

@ -8,19 +8,20 @@
%global with_csharp 0
%endif
%global with_java 1
%if 0%{?fedora} >= 41
%ifarch %{ix86}
%global with_php 0
%else
%global with_php 1
%endif
%else
%global with_php 1
%endif
%global with_python 1
%if 0%{?with_php} > 0
%{!?php_extdir: %global php_extdir %{_libdir}/php/modules}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d/}
%{!?php_apiver: %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)}
%if "%{php_version}" < "5.6"
%global ini_name kolabformat.ini
%else
%global ini_name 40-kolabformat.ini
%endif
%endif
# Filter out private python and php libs. Does not work on EPEL5,
# therefor we use it conditionally
@ -48,7 +49,7 @@
Name: libkolabxml
Version: 1.2.0
Release: 22%{?dist}
Release: 23%{?dist}
Summary: Kolab XML format collection parser library
License: LGPLv3+
@ -132,12 +133,8 @@ Java bindings for libkolabxml
%package -n php-kolabformat
Summary: PHP bindings for libkolabxml
Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?rhel} > 5 || 0%{?fedora} > 15
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
%else
Requires: php-api = %{php_apiver}
%endif
BuildRequires: php >= 5.3
BuildRequires: php-devel >= 5.3
%description -n php-kolabformat
@ -251,6 +248,10 @@ popd
%changelog
* Tue Apr 9 2024 Remi Collet <remi@fedoraproject.org> - 8.0.1-14
- disable PHP extension on 32-bit
https://fedoraproject.org/wiki/Changes/php_no_32_bit
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild