diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-26 10:34:49 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-26 10:34:49 +0100 |
| commit | 4905ac0164ebc643ede1957657e807adbd6af66e (patch) | |
| tree | 7a35611452481ec3c515abe4b57c4b8f0bd67c6d | |
| parent | 95169fc91fd0f4ca5cc7ba859556f1648d8ab6f6 (diff) | |
sources from github
| -rw-r--r-- | REFLECTION | 10 | ||||
| -rw-r--r-- | php-pecl-pspell.spec | 47 |
2 files changed, 27 insertions, 30 deletions
@@ -1,10 +1,10 @@ -Extension [ <persistent> extension #58 pspell version 1.0.1 ] { +Extension [ <persistent> extension #62 pspell version 1.0.1 ] { - Constants [4] { - Constant [ int PSPELL_FAST ] { 1 } - Constant [ int PSPELL_NORMAL ] { 2 } - Constant [ int PSPELL_BAD_SPELLERS ] { 3 } - Constant [ int PSPELL_RUN_TOGETHER ] { 8 } + Constant [ <persistent> int PSPELL_FAST ] { 1 } + Constant [ <persistent> int PSPELL_NORMAL ] { 2 } + Constant [ <persistent> int PSPELL_BAD_SPELLERS ] { 3 } + Constant [ <persistent> int PSPELL_RUN_TOGETHER ] { 8 } } - Functions { diff --git a/php-pecl-pspell.spec b/php-pecl-pspell.spec index e5e4dbe..353b94b 100644 --- a/php-pecl-pspell.spec +++ b/php-pecl-pspell.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-pspell # -# SPDX-FileCopyrightText: Copyright 2023-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2023-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -14,34 +14,42 @@ %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name pspell %global ini_name 30-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} +%global sources %{gh_proj}-%{version} %global _configure ../%{sources}/configure -Summary: Spell checker extension +# Github forge +%global gh_vend php +%global gh_proj pecl-text-pspell +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{version} + Name: %{?scl_prefix}php-pecl-pspell -Version: 1.0.1 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Summary: Spell checker extension License: PHP-3.01 -URL: https://pecl.php.net/package/pspell - -Source0: https://pecl.php.net/get/%{sources}.tgz +Version: 1.0.1 +Release: 3%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc # 8.1+ is supported by upstream but part of php-src until 8.4 BuildRequires: %{?scl_prefix}php-devel >= 8.4 BuildRequires: aspell-devel >= 0.50.0 -BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} +# PECL Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +# Extension # Set epoch so provides is > 0:8.4 Obsoletes: %{?scl_prefix}php-%{pecl_name} < 8.4 Provides: %{?scl_prefix}php-%{pecl_name} = 1:%{version}-%{release} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = 1:%{version}-%{release} +# No PIE for now %description @@ -54,11 +62,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -c -q -# Don't install/register tests -sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ - -i package.xml - cd %{sources} # Sanity check, really often broken extver=$(sed -n '/#define PHP_PSPELL_VERSION/{s/.* "//;s/".*$//;p}' php_pspell.h) @@ -110,20 +113,11 @@ cd ../ZTS %make_install -C NTS install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} -# Install XML package description -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - %if %{with_zts} %make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -cd %{sources} -for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - %check cd %{sources} @@ -158,8 +152,7 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/CREDITS %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -171,6 +164,10 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ %changelog +* Thu Mar 26 2026 Remi Collet <remi@remirepo.net> - 1.0.1-3 +- drop pear/pecl dependency +- sources from github + * Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 1.0.1-2 - rebuild for 8.4.0RC1 |
