summaryrefslogtreecommitdiffstats
path: root/php-pecl-trie.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-trie.spec')
-rw-r--r--php-pecl-trie.spec19
1 files changed, 7 insertions, 12 deletions
diff --git a/php-pecl-trie.spec b/php-pecl-trie.spec
index b3dc79b..593128b 100644
--- a/php-pecl-trie.spec
+++ b/php-pecl-trie.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-trie
#
-# Copyright (c) 2013-2022 Remi Collet
+# Copyright (c) 2020-2022 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -19,17 +19,14 @@
Summary: PHP Trie extension
Name: %{?sub_prefix}php-pecl-trie
-Version: 0.1.1
-Release: 0%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 0.1.2
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
# headers only library
Source1: https://github.com/Tessil/hat-trie/archive/v%{libver}.tar.gz
-# https://github.com/ace411/php-trie-ext/pull/1
-Patch0: %{pecl_name}-build.patch
-
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.3
@@ -59,9 +56,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c -a 1
-# https://github.com/ace411/php-trie-ext/issues/6
-mkdir NTS
-mv LICENSE README.md changes.md common.cpp config.m4 config.w32 examples php_trie.cpp php_trie_ext.h tests trie.h NTS/
+mv %{pecl_name}-%{version} NTS
# Don't install/register tests
sed -e 's/role="test"/role="src"/' \
@@ -69,9 +64,6 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
-# https://github.com/ace411/php-trie-ext/issues/7
-sed -e s/0.1.0/0.1.1/ -i php_trie_ext.h
-
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_TRIE_EXT_EXTVER/{s/.* "//;s/".*$//;p}' php_trie_ext.h)
if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
@@ -206,6 +198,9 @@ TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \
%changelog
+* Wed May 25 2022 Remi Collet <remi@remirepo.net> - 0.1.2-1
+- update to 0.1.2
+
* Tue May 24 2022 Remi Collet <remi@remirepo.net> - 0.1.1-1
- update to 0.1.1
- open https://github.com/ace411/php-trie-ext/issues/6 bad archive