summaryrefslogtreecommitdiffstats
path: root/php-sqlsrv.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-sqlsrv.spec')
-rw-r--r--php-sqlsrv.spec46
1 files changed, 12 insertions, 34 deletions
diff --git a/php-sqlsrv.spec b/php-sqlsrv.spec
index 29e0813..8ca17f8 100644
--- a/php-sqlsrv.spec
+++ b/php-sqlsrv.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-sqlsrv
#
-# Copyright (c) 2016-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2016-2026 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -25,7 +25,7 @@ Name: %{?scl_prefix}php-sqlsrv
Summary: Microsoft Drivers for PHP for SQL Server
%global tarversion 5.12.0
Version: 5.12.0
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}
License: MIT
URL: https://github.com/Microsoft/msphpsql
@@ -36,6 +36,9 @@ Source1: http://pecl.php.net/get/pdo_%{extname}-%{tarversion}.tgz
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
%endif
+# See https://github.com/microsoft/msphpsql/pull/1543
+Patch0: php85.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
@@ -44,13 +47,8 @@ BuildRequires: %{?scl_prefix}php-devel >= 8.1
BuildRequires: %{?scl_prefix}php-pdo
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: unixODBC-devel >= 2.3.1
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
BuildRequires:(msodbcsql18 >= %{msodbcsqlver18} or msodbcsql17 >= %{msodbcsqlver17})
Requires: (msodbcsql18%{?_isa} >= %{msodbcsqlver18} or msodbcsql17%{?_isa} >= %{msodbcsqlver17})
-%else
-BuildRequires: msodbcsql17 >= %{msodbcsqlver17}
-Requires: msodbcsql17%{?_isa} >= %{msodbcsqlver17}
-%endif
# ABI check
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -108,7 +106,7 @@ cd NTS
cd %{extname}
: no patch
cd ../pdo_%{extname}
-: no patch
+%patch -P0 -p3
cd ..
# Sanity check, really often broken
@@ -224,31 +222,7 @@ install -D -m 644 %{ininame} %{buildroot}%{php_ztsinidir}/%{ininame}
%endif
-%if 0%{?fedora} < 24 && 0%{?rhel} < 8
-# when pear installed alone, after us
-%triggerin -- %{?scl_prefix}php-pear
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/php-pecl-%{extname}.xml >/dev/null || :
- %{pecl_install} %{pecl_xmldir}/php-pecl-pdo-%{extname}.xml >/dev/null || :
-fi
-
-# posttrans as pear can be installed after us
-%posttrans
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/php-pecl-%{extname}.xml >/dev/null || :
- %{pecl_install} %{pecl_xmldir}/php-pecl-pdo-%{extname}.xml >/dev/null || :
-fi
-
-%postun
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
- %{pecl_uninstall} %{extname} >/dev/null || :
- %{pecl_uninstall} pdo_%{extname} >/dev/null || :
-fi
-%endif
-
-
%files
-%{!?_licensedir:%global license %%doc}
%license LICENSE
%{pecl_xmldir}/php-pecl-%{extname}.xml
%{pecl_xmldir}/php-pecl-pdo-%{extname}.xml
@@ -265,6 +239,10 @@ fi
%changelog
+* Sat Jan 17 2026 Remi Collet <remi@remirepo.net> - 5.12.0-2
+- add patch for PHP 8.5
+- re-license spec file to CECILL-2.1
+
* Thu Feb 1 2024 Remi Collet <remi@remirepo.net> - 5.12.0-1
- update to 5.12.0