summaryrefslogtreecommitdiffstats
path: root/php-pecl-mcrypt.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-03-01 07:24:00 +0100
committerRemi Collet <remi@php.net>2023-03-01 07:24:00 +0100
commitf775baccc19dc341e4a1d229c65fbab80c172387 (patch)
tree69e5ae1d9f53ba8471cca0ede07e04dbd2bc6cbb /php-pecl-mcrypt.spec
parent121e3737094d8a3bdeaeb3b3d53fed5827cfda2b (diff)
update to 1.0.6 (no change)
Diffstat (limited to 'php-pecl-mcrypt.spec')
-rw-r--r--php-pecl-mcrypt.spec25
1 files changed, 14 insertions, 11 deletions
diff --git a/php-pecl-mcrypt.spec b/php-pecl-mcrypt.spec
index 304291d..4d0998a 100644
--- a/php-pecl-mcrypt.spec
+++ b/php-pecl-mcrypt.spec
@@ -1,7 +1,7 @@
# remirepo spec file for php-pecl-mcrypt
#
-# Copyright (c) 2017-2022 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2017-2023 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
@@ -12,15 +12,17 @@
%{?scl: %scl_package php-pecl-mcrypt}
+%bcond_without tests
+
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name mcrypt
%global ini_name 30-%{pecl_name}.ini
Summary: Bindings for the libmcrypt library
Name: %{?scl_prefix}php-pecl-mcrypt
-Version: 1.0.5
+Version: 1.0.6
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-License: PHP
+License: PHP-3.01
URL: https://pecl.php.net/package/mcrypt
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
@@ -43,7 +45,7 @@ Provides: %{?scl_prefix}php-%{pecl_name} = 1:%{version}-%{release}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = 1:%{version}-%{release}
-%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} == 7
Obsoletes: php54u-%{pecl_name} < 7.2
Obsoletes: php54w-%{pecl_name} < 7.2
Obsoletes: php55u-%{pecl_name} < 7.2
@@ -63,12 +65,6 @@ Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
%if "%{php_version}" > "7.4"
Obsoletes: php74-pecl-%{pecl_name} <= %{version}
%endif
-%if "%{php_version}" > "8.0"
-Obsoletes: php80-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "8.1"
-Obsoletes: php81-pecl-%{pecl_name} <= %{version}
-%endif
%endif
@@ -168,10 +164,12 @@ OPT="%{?_smp_mflags} -q --show-diff"
OPT="-q --show-diff"
%endif
+%if %{with tests}
: upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
%{__php} -n run-tests.php $OPT
+%endif
%if %{with_zts}
cd ../ZTS
@@ -181,11 +179,13 @@ cd ../ZTS
--define extension=%{pecl_name} \
--modules | grep %{pecl_name}
+%if %{with tests}
: upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{__ztsphp} \
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%{__ztsphp} -n run-tests.php $OPT
%endif
+%endif
%if 0%{?fedora} < 24 && 0%{?rhel} < 8
@@ -223,6 +223,9 @@ fi
%changelog
+* Wed Mar 1 2023 Remi Collet <remi@remirepo.net> - 1.0.6-1
+- update to 1.0.6 (no change)
+
* Mon May 23 2022 Remi Collet <remi@remirepo.net> - 1.0.5-1
- update to 1.0.5