diff options
author | Remi Collet <remi@remirepo.net> | 2024-12-02 16:43:59 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-12-02 16:43:59 +0100 |
commit | 0b3896eac4dbe6020b1e63ee433a9c4bfd5f3c5c (patch) | |
tree | e006dcd6f476bdeaecfd724dc82253bf8b1506f0 | |
parent | 10f80b5084772ca502050a76fbd60bc1eac6d2c7 (diff) |
use system libmd4c
-rw-r--r-- | PHPINFO | 2 | ||||
-rw-r--r-- | REFLECTION | 2 | ||||
-rw-r--r-- | php-pecl-md4c.spec | 28 |
3 files changed, 23 insertions, 9 deletions
@@ -3,4 +3,4 @@ md4c MD4C => enabled PHP-MD4C version => 1.1 -MD4C version => 0.5.2 +MD4C system library version => 0.5.2 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #87 md4c version 1.0 ] { +Extension [ <persistent> extension #87 md4c version 1.1 ] { - Constants [2] { Constant [ int MD4C_DIALECT_GITHUB ] { 3852 } diff --git a/php-pecl-md4c.spec b/php-pecl-md4c.spec index d19ed5e..a0b04f9 100644 --- a/php-pecl-md4c.spec +++ b/php-pecl-md4c.spec @@ -9,12 +9,16 @@ %{?scl:%scl_package php-pecl-md4c} +%bcond_without libmd4c + %global pecl_name md4c %global ini_name 40-%{pecl_name}.ini -%global upstream_version 1.0.0 -%global upstream_prever dev -%global upstream_rpmrel DEV +%global upstream_version 1.1 +#global upstream_prever dev +#global upstream_rpmrel DEV %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global bundledver 0.5.2 +%global buildver %(pkg-config --silence-errors --modversion md4c-html 2>/dev/null || echo 65536) Summary: Convert Markdown to HTML Name: %{?scl_prefix}php-pecl-%{pecl_name} @@ -28,14 +32,19 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstr BuildRequires: make BuildRequires: %{?dtsprefix}gcc -# See https://github.com/eklausme/php-md4c/issues/13 BuildRequires: %{?scl_prefix}php-devel >= 8.0 BuildRequires: %{?scl_prefix}php-pear +%if %{with libmd4c} +BuildRequires: md4c-devel >= %{bundledver} +Requires: md4c%{?_isa} >= %{buildver} +%endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -Provides: bundled(md4c) = 0.5.2 +%if %{without libmd4c} +Provides: bundled(md4c) = %{bundledver} +%endif Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} @@ -72,11 +81,11 @@ EOF cd %{sources} %{__phpize} -[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global -sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL +sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global %configure \ --enable-md4c \ + --enable-system-libmd4c \ --with-php-config=%{__phpconfig} %make_build @@ -117,7 +126,12 @@ done %changelog +* Mon Dec 2 2024 Remi Collet <remi@remirepo.net> - 1.1-1 +- update to 1.1 +- use system libmd4c + * Mon Dec 2 2024 Remi Collet <remi@remirepo.net> - 1.0.0~DEV-1 - initial package, version 1.0.0dev - open https://github.com/eklausme/php-md4c/issues/12 version inconsistency - open https://github.com/eklausme/php-md4c/issues/13 PHP version compatibility +- open https://github.com/eklausme/php-md4c/pull/14 build with system libmd4c |