summaryrefslogtreecommitdiffstats
path: root/php-pecl-cmark.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-cmark.spec')
-rw-r--r--php-pecl-cmark.spec34
1 files changed, 21 insertions, 13 deletions
diff --git a/php-pecl-cmark.spec b/php-pecl-cmark.spec
index a4c7b6f..67426e4 100644
--- a/php-pecl-cmark.spec
+++ b/php-pecl-cmark.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-cmark
#
-# Copyright (c) 2018 Remi Collet
+# Copyright (c) 2018-2019 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -22,14 +22,14 @@
Summary: CommonMark extension
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 1.1.0
-Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.2.0
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: %{?scl_prefix}php-devel >= 7
+BuildRequires: %{?scl_prefix}php-devel >= 7.2
BuildRequires: %{?scl_prefix}php-pear
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
BuildRequires: cmark-devel >= 0.28
@@ -52,8 +52,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%endif
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-Obsoletes: php70u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
%if "%{php_version}" > "7.1"
Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
@@ -63,9 +61,13 @@ Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
%endif
%if "%{php_version}" > "7.3"
-Obsoletes: php73u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php73-pecl-%{pecl_name} <= %{version}
Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "7.4"
+Obsoletes: php74-pecl-%{pecl_name} <= %{version}
+Obsoletes: php74w-pecl-%{pecl_name} <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -110,7 +112,7 @@ cp -pr NTS ZTS
# Create configuration file
cat << 'EOF' | tee %{ini_name}
; Enable %{summary}
-extension=%{pecl_name}.so
+extension=%{pecl_name}
EOF
@@ -160,9 +162,6 @@ done
%check
-export NO_INTERACTION=1
-export REPORT_EXIT_STATUS=1
-
: Minimal load test for NTS extension
cd NTS
%{__php} --no-php-ini \
@@ -171,7 +170,10 @@ cd NTS
%if %{with_tests}
: Upstream test suite
-make test
+REPORT_EXIT_STATUS=1 \
+TEST_PHP_EXECUTABLE=%{_bindir}/php \
+TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \
+%{_bindir}/php -n run-tests.php -q --show-diff
%endif
%if %{with_zts}
@@ -183,7 +185,10 @@ cd ../ZTS
%if %{with_tests}
: Upstream test suite
-make test
+REPORT_EXIT_STATUS=1 \
+TEST_PHP_EXECUTABLE=%{__ztsphp} \
+TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \
+%{__ztsphp} -n run-tests.php -q --show-diff
%endif
%endif
@@ -223,6 +228,9 @@ fi
%changelog
+* Mon May 27 2019 Remi Collet <remi@remirepo.net> - 1.2.0-1
+- update to 1.2.0
+
* Thu Aug 16 2018 Remi Collet <remi@remirepo.net> - 1.1.0-3
- rebuild for 7.3.0beta2 new ABI