summaryrefslogtreecommitdiffstats
path: root/php-pecl-crypto.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-30 14:13:30 +0200
committerRemi Collet <remi@php.net>2025-07-30 14:13:30 +0200
commitab8af9a3059aea8cd1854548fc8b684708388ba6 (patch)
tree893fbe801b240adaf9df925d84d10b50d4f03c59 /php-pecl-crypto.spec
parent0bd0337ef36f84bc9ed0dff0f3d7a855df373711 (diff)
fix build with PHP 8.5.0alpha3 using patch fromHEADmaster
https://github.com/bukka/phpc/pull/4
Diffstat (limited to 'php-pecl-crypto.spec')
-rw-r--r--php-pecl-crypto.spec27
1 files changed, 19 insertions, 8 deletions
diff --git a/php-pecl-crypto.spec b/php-pecl-crypto.spec
index d775069..cf79f9d 100644
--- a/php-pecl-crypto.spec
+++ b/php-pecl-crypto.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-pecl-crypto
#
-# Copyright (c) 2013-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -12,24 +12,22 @@
%bcond_without tests
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name crypto
-%if "%{php_version}" < "5.6"
-%global ini_name %{pecl_name}.ini
-%else
%global ini_name 40-%{pecl_name}.ini
-%endif
%global sources %{pecl_name}-%{version}
%global _configure ../%{sources}/configure
Summary: Wrapper for OpenSSL Crypto Library
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 0.3.2
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP-3.01
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
Patch0: 0001-Fix-Wincompatible-pointer-types.patch
Patch1: 0001-fix-for-PHP-8.4.patch
+Patch2: 0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch
+Patch3: 4.patch
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
@@ -64,6 +62,10 @@ sed -e 's/role="test"/role="src"/' \
cd %{sources}
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
+cd phpc
+%patch -P3 -p1
+cd ..
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_CRYPTO_VERSION/{s/.* "//;s/".*$//;p}' php_crypto.h)
@@ -180,6 +182,15 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 0.3.2-6
+- fix build with PHP 8.5.0alpha3 using patch from
+ https://github.com/bukka/phpc/pull/4
+
+* Thu Jul 17 2025 Remi Collet <remi@remirepo.net> - 0.3.2-5
+- fix build with PHP 8.5.0alpha2 using patch from
+ https://github.com/bukka/php-crypto/pull/42
+- re-license spec file to CECILL-2.1
+
* Wed Sep 25 2024 Remi Collet <remi@remirepo.net> - 0.3.2-4
- fix build with PHP 8.4 using patch from
https://github.com/bukka/php-crypto/pull/42