public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php-pecl-memcache] epel10: update to 8.6
Date: Fri, 27 Nov 2026 07:34:49 GMT	[thread overview]
Message-ID: <179576488913.1.4904660059462846545.rpms-php-pecl-memcache-779fa1b3cd8b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php-pecl-memcache
            Branch : epel10
            Commit : 779fa1b3cd8b299e52c79fb9c1055923877244d7
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-11-27T08:33:50+01:00
            Stats  : +46/-40 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-pecl-memcache/c/779fa1b3cd8b299e52c79fb9c1055923877244d7?branch=epel10

            Log:
            update to 8.6

add pie virtual provides
drop pear/pecl dependency
sources from github
re-license spec file to CECILL-2.1

---
diff --git a/.gitignore b/.gitignore
index b2c9857..48f861d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ clog
 /memcache-4.0.5.2.tgz
 /memcache-8.0.tgz
 /memcache-8.2.tgz
+/pecl-memcache-8.6.tar.gz

diff --git a/php-pecl-memcache.spec b/php-pecl-memcache.spec
index 3da39ca..9662442 100644
--- a/php-pecl-memcache.spec
+++ b/php-pecl-memcache.spec
@@ -1,33 +1,40 @@
 # Fedora spec file for php-pecl-memcache
 #
-# Copyright (c) 2007-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/3.0/
+# SPDX-FileCopyrightText:  Copyright 2007-2026 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 #
 # Please, preserve the changelog entries
 #
 
-%bcond_without     tests
+%bcond_without      tests
 
-%global pecl_name  memcache
-%global ini_name   40-%{pecl_name}.ini
-%global sources    %{pecl_name}-%{version}
+%global pecl_name   memcache
+%global ini_name    40-%{pecl_name}.ini
+%global pie_vend    websupport-sk
+%global pie_proj    pecl-%{pecl_name}
+
+# Github forge
+%global gh_vend     %{pie_vend}
+%global gh_proj     %{pie_proj}
+%global forgeurl    https://github.com/%{gh_vend}/%{gh_proj}
+%global tag         %{version}
 
-Summary:      Extension to work with the Memcached caching daemon
 Name:         php-pecl-memcache
-Version:      8.2
-Release:      9%{?dist}
-Source0:      https://pecl.php.net/get/%{sources}.tgz
+Summary:      Extension to work with the Memcached caching daemon
 License:      PHP-3.01
-Group:        Development/Languages
-URL:          https://pecl.php.net/package/%{pecl_name}
+Version:      8.6
+Release:      1%{?dist}
+%forgemeta
+URL:          %{forgeurl}
+Source0:      %{forgesource}
 
 ExcludeArch:   %{ix86}
 
 BuildRequires: make
 BuildRequires: gcc
-BuildRequires: php-devel >= 8.0
-BuildRequires: php-pear
+# Ensure default PHP 8.3 on EPEL-10
+BuildRequires: (php-devel >= 8.3 with php-devel < 8.4)
 BuildRequires: zlib-devel
 %if %{with tests}
 BuildRequires: memcached
@@ -36,10 +43,15 @@ BuildRequires: memcached
 Requires:     php(zend-abi) = %{php_zend_api}
 Requires:     php(api) = %{php_core_api}
 
+# Extension
 Provides:     php-pecl(%{pecl_name}) = %{version}
 Provides:     php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PECL
 Provides:     php-%{pecl_name} = %{version}
 Provides:     php-%{pecl_name}%{?_isa} = %{version}
+# PIE
+Provides:     php-pie(%{pie_vend}/%{pie_proj}) = %{version}
+Provides:     php-%{pie_vend}-%{pie_proj} = %{version}
 
 
 %description
@@ -54,21 +66,14 @@ Memcache can be used as a PHP session handler.
 
 
 %prep 
-%setup -c -q
+%forgesetup
 
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
-    -e '/LICENSE/s/role="doc"/role="src"/' \
-    -i package.xml
-
-pushd %{sources}
 extver=$(sed -n '/#define PHP_MEMCACHE_VERSION/{s/.* "//;s/".*$//;p}' src/php_memcache.h)
 if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
    : Error: Upstream version is now ${extver}, expecting %{version}%{?prever:-%{prever}}
    : Update the pdover macro and rebuild.
    exit 1
 fi
-popd
 
 cat >%{ini_name} << 'EOF'
 ; ----- Enable %{pecl_name} extension module
@@ -99,6 +104,8 @@ extension=%{pecl_name}.so
 ;memcache.session_redundancy=2
 ;  Lock Timeout
 ;memcache.lock_timeout = 15
+;  API used for select, poll or select (default)
+;memcache.select_api = select
 
 ;memcache.prefix_host_key = Off
 ;memcache.prefix_host_key_remove_www = On
@@ -125,7 +132,6 @@ EOF
 
 
 %build
-cd %{sources}
 %{__phpize}
 sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
@@ -134,21 +140,11 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
 
 %install
-cd %{sources}
-
 : Install the extension
 %make_install
 
 : Drop in the bit of configuration
-install -D -m 644 ../%{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
-
-: Install XML package description
-install -Dpm 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
-: Install the Documentation
-for i in $(grep '<file .* role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
-done
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
 
 
 %check
@@ -158,11 +154,11 @@ done
     -m | grep %{pecl_name}
 
 %if %{with tests}
-cd %{sources}
 : ignore test with erratic results
 rm tests/040.phpt
 rm tests/056.phpt
 rm tests/100c.phpt
+echo all > tests/CONFLICTS
 
 : Configuration for tests
 sed -e "s:/var/run/memcached/memcached.sock:$PWD/memcached.sock:" \
@@ -191,14 +187,23 @@ exit $ret
 
 
 %files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%license LICENSE
+%doc composer.json
+%doc CREDITS
+%doc README
+
 %config(noreplace) %{php_inidir}/%{ini_name}
 %{php_extdir}/%{pecl_name}.so
 
 
 %changelog
+* Fri Nov 27 2026 Remi Collet <remi@remirepo.net> - 8.6-1
+- update to 8.6
+- add pie virtual provides
+- drop pear/pecl dependency
+- sources from github
+- re-license spec file to CECILL-2.1
+
 * Mon Oct 14 2024 Remi Collet <remi@fedoraproject.org> - 8.2-8
 - rebuild for https://fedoraproject.org/wiki/Changes/php84
 

diff --git a/sources b/sources
index 8746603..1121948 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (memcache-8.2.tgz) = 937f6bf33cd9202751585a2817c658bb2d361b0cef013cb6ac17ee147e07a1ca7860dc73902a607a147cd7ecfaf50cc0f3cb6758338afd29e688bc85ca59a2ba
+SHA512 (pecl-memcache-8.6.tar.gz) = 29c4aee6b4171a0c04ad71e3f4ea02fb2e7a3c5d91861da3f4169dba95d6927c0c133e4e1714bd579646a5a0379d8e9c625eb789015d0321444fd1984bb3f28e

                 reply	other threads:[~2026-11-27  7:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179576488913.1.4904660059462846545.rpms-php-pecl-memcache-779fa1b3cd8b@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox