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-zstd] epel10: drop pear/pecl dependency
Date: Tue, 09 Jun 2026 12:45:41 GMT	[thread overview]
Message-ID: <178100914191.1.7325266403194500805.rpms-php-zstd-daf9495f68db@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php-zstd
            Branch : epel10
            Commit : daf9495f68db1eee5e2b1fb077db33f5aff2e327
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-06-09T14:43:02+02:00
            Stats  : +36/-57 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-zstd/c/daf9495f68db1eee5e2b1fb077db33f5aff2e327?branch=epel10

            Log:
            drop pear/pecl dependency

sources from github

(cherry picked from commit 782fc98b038e8afc918d9c403d98863005ab8692)

move %forgemeta after Release

(cherry picked from commit 4c7e3f482761b377384c8ca505c2c7734343ad6a)

v0.16.0

(cherry picked from commit bf7dca826bc62b7a8c317d4e530464d27b31949f)

refresh .gitignore

(cherry picked from commit a7f72c0ffc1d22610c362cd19e63ecb80a70f2b3)

---
diff --git a/.gitignore b/.gitignore
index fd4791b..3ad7deb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,16 +1,3 @@
 clog
-/zstd-0.8.0.tgz
-/zstd-0.9.0.tgz
-/zstd-0.10.0.tgz
-/zstd-0.11.0.tgz
-/zstd-0.12.0.tgz
-/zstd-0.12.1.tgz
-/zstd-0.12.2.tgz
-/zstd-0.12.3.tgz
-/zstd-0.13.0.tgz
-/zstd-0.13.1.tgz
-/zstd-0.13.2.tgz
-/zstd-0.13.3.tgz
-/zstd-0.14.0.tgz
-/zstd-0.15.1.tgz
-/zstd-0.15.2.tgz
+/zstd-*.tgz
+/php-ext-zstd-0.16.0.tar.gz

diff --git a/php-zstd.spec b/php-zstd.spec
index 087b9ee..acf3c51 100644
--- a/php-zstd.spec
+++ b/php-zstd.spec
@@ -3,7 +3,7 @@
 #
 # remirepo spec file for php-zstd
 #
-# SPDX-FileCopyrightText:  Copyright 2018-2025 Remi Collet
+# SPDX-FileCopyrightText:  Copyright 2018-2026 Remi Collet
 # SPDX-License-Identifier: CECILL-2.1
 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 #
@@ -14,15 +14,21 @@
 %global pie_proj    zstd
 %global pecl_name   zstd
 %global ini_name    40-%{pecl_name}.ini
-%global sources     %{pecl_name}-%{version}
 
-Summary:       Zstandard extension
+# Github forge
+%global gh_vend     kjdev
+%global gh_proj     php-ext-zstd
+%global forgeurl    https://github.com/%{gh_vend}/%{gh_proj}
+%global tag         %{version}
+
 Name:          php-%{pecl_name}
-Version:       0.15.2
-Release:       1%{?dist}
+Summary:       Zstandard extension
 License:       MIT
-URL:           https://pecl.php.net/package/%{pecl_name}
-Source0:       https://pecl.php.net/get/%{sources}.tgz
+Version:       0.16.0
+Release:       1%{?dist}
+%forgemeta
+URL:           %{forgeurl}
+Source0:       %{forgesource}
 
 ExcludeArch:    %{ix86}
 
@@ -30,18 +36,19 @@ BuildRequires: make
 BuildRequires: gcc
 BuildRequires: php-devel >= 7.0
 BuildRequires: php-pecl-apcu-devel
-BuildRequires: php-pear
 BuildRequires: pkgconfig(libzstd)
 
 Requires:      php(zend-abi) = %{php_zend_api}
 Requires:      php(api) = %{php_core_api}
 
-Provides:       php-pecl-%{pecl_name}            = %{version}
-Provides:       php-pecl-%{pecl_name}%{?_isa}    = %{version}
-Provides:       php-pecl(%{pecl_name})           = %{version}
-Provides:       php-pecl(%{pecl_name})%{?_isa}   = %{version}
-Provides:       php-pie(%{pie_vend}/%{pie_proj}) = %{version}
-Provides:       php-%{pie_vend}-%{pie_proj}      = %{version}
+# PECL
+Provides:      php-pecl-%{pecl_name}            = %{version}
+Provides:      php-pecl-%{pecl_name}%{?_isa}    = %{version}
+Provides:      php-pecl(%{pecl_name})           = %{version}
+Provides:      php-pecl(%{pecl_name})%{?_isa}   = %{version}
+# PIE
+Provides:      php-pie(%{pie_vend}/%{pie_proj}) = %{version}
+Provides:      php-%{pie_vend}-%{pie_proj}      = %{version}
 
 
 %description
@@ -58,12 +65,8 @@ These are the files needed to compile programs using %{name}.
 
 
 %prep
-%setup -qc
-
-sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
-sed -e '\:"zstd/:d' -i package.xml
+%forgesetup
 
-cd %{sources}
 # Use the system library
 rm -r zstd
 
@@ -73,7 +76,6 @@ if test "x${extver}" != "x%{version}%{?gh_date:-dev}"; then
    : Error: Upstream extension version is ${extver}, expecting %{version}%{?gh_date:-dev}.
    exit 1
 fi
-cd ..
 
 # Drop in the bit of configuration
 cat << 'EOF' | tee %{ini_name}
@@ -84,11 +86,11 @@ extension = %{pecl_name}.so
 ;zstd.output_compression = Off
 ;zstd.output_compression_level = 3
 ;zstd.output_compression_dict =
+;zstd.apcu_compression_level = 3
 EOF
 
 
 %build
-cd %{sources}
 %{__phpize}
 sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
@@ -102,29 +104,14 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
 
 %install
-cd %{sources}
-
 : Install the extension
 %make_install
 
 : Install Configuration
-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
-
-: Install Test and Documentation
-for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
-done
-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
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
 
 
 %check
-cd %{sources}
-
 export REPORT_EXIT_STATUS=1
 %ifarch s390x
 : ignore test with erratic results
@@ -151,20 +138,25 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
 
 
 %files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%license LICENSE
+%doc composer.json
+%doc *.md
 
 %config(noreplace) %{php_inidir}/%{ini_name}
 %{php_extdir}/%{pecl_name}.so
 
 
 %files devel
-%doc %{pecl_testdir}/%{pecl_name}
+%doc tests
 %{php_incldir}/ext/%{pecl_name}
 
 
 %changelog
+* Fri Jun  5 2026 Remi Collet <remi@remirepo.net> - 0.16.0-1
+- update to 0.16.0
+- drop pear/pecl dependency
+- sources from github
+
 * Tue Sep  2 2025 Remi Collet <remi@remirepo.net> - 0.15.2-1
 - update to 0.15.2
 

diff --git a/sources b/sources
index d064aca..7559a9d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (zstd-0.15.2.tgz) = 4da959eb59f505d305bfa54c1e1fbe909294fd7e5c757da9f13ffe635c095f171dca0a8f122e35d32cda47efa8d16426c5cd630bb59a874a7274f1c76ba1c00d
+SHA512 (php-ext-zstd-0.16.0.tar.gz) = 6806a1d07e82d82714d93d7dd9ae6f677bfb5765ccb5275c071bc14489e9d79d50b332107ec05c47091ef5c97d06af7d75389fce598bef5432062738411720fe

                 reply	other threads:[~2026-06-09 12:45 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=178100914191.1.7325266403194500805.rpms-php-zstd-daf9495f68db@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