public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-pecl-ssh2] epel10: v1.6.0
@ 2026-11-05  7:12 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-05  7:12 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/php-pecl-ssh2
            Branch : epel10
            Commit : 1cd3a8fee45e6815c2f94e11c93b2801913ef2a2
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-11-05T08:12:01+01:00
            Stats  : +31/-33 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-pecl-ssh2/c/1cd3a8fee45e6815c2f94e11c93b2801913ef2a2?branch=epel10

            Log:
            v1.6.0

(cherry picked from commit 02e0fd934c700c2bfb1e0a224909c755bc61d517)
(cherry picked from commit 65aa6cf5a8b6798081e1504aae377d83cfddffd6)

---
diff --git a/.gitignore b/.gitignore
index e572c2b..2f4c70d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,4 +9,6 @@ ssh2-0.11.0.tgz
 /ssh2-1.3.1.tgz
 /ssh2-1.4.tgz
 /ssh2-1.4.1.tgz
-/ssh2-1.5.0.tgz
+/pecl-networking-ssh2-1.4.1.tar.gz
+/pecl-networking-ssh2-1.5.0.tar.gz
+/pecl-networking-ssh2-1.6.0.tar.gz

diff --git a/php-pecl-ssh2.spec b/php-pecl-ssh2.spec
index 60abca8..5fef7e0 100644
--- a/php-pecl-ssh2.spec
+++ b/php-pecl-ssh2.spec
@@ -1,16 +1,22 @@
 %define pecl_name  ssh2
+%global pie_vend   pecl
+%global pie_proj   %{pecl_name}
 %global ini_name   40-%{pecl_name}.ini
-%global sources    %{pecl_name}-%{version}
-%global _configure ../%{sources}/configure
+
+# Github forge
+%global gh_vend    php
+%global gh_proj    pecl-networking-ssh2
+%global forgeurl   https://github.com/%{gh_vend}/%{gh_proj}
+%global tag        %{version}
 
 Name:           php-pecl-ssh2
-Version:        1.5.0
-Release:        2%{?dist}
 Summary:        Bindings for the libssh2 library
-
 License:        PHP-3.01
-URL:            https://pecl.php.net/package/%{pecl_name}
-Source0:        https://pecl.php.net/get/%{sources}.tgz
+Version:        1.6.0
+Release:        1%{?dist}
+%forgemeta
+URL:            %{forgeurl}
+Source0:        %{forgesource}
 
 ExcludeArch:    %{ix86}
 
@@ -19,12 +25,15 @@ BuildRequires:  gcc
 BuildRequires:  libssh2-devel >= 1.2
 # Ensure default PHP 8.3 on EPEL-10
 BuildRequires: (php-devel >= 8.3 with php-devel < 8.4)
-BuildRequires:  php-pear
 
+# Extension
 Provides:       php-%{pecl_name}               = %{version}
 Provides:       php-%{pecl_name}%{?_isa}       = %{version}
+# PECL
 Provides:       php-pecl(%{pecl_name})         = %{version}
 Provides:       php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PIE
+Provides:       php-pie(%{pie_vend}/%{pie_proj}) = %{version}
 
 Requires:       php(zend-abi) = %{php_zend_api}
 Requires:       php(api) = %{php_core_api}
@@ -39,21 +48,14 @@ Documentation: http://php.net/ssh2
 
 
 %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
-
-cd %{sources}
 extver=$(sed -n '/#define PHP_SSH2_VERSION/{s/.*\t"//;s/".*$//;p}' php_ssh2.h)
 if test "x${extver}" != "x%{version}"; then
    : Error: Upstream version is now ${extver}, expecting %{version}.
    : Update the pdover macro and rebuild.
    exit 1
 fi
-cd ..
 
 cat > %{ini_name} << 'EOF'
 ; Enable %{pecl_name} extension module
@@ -62,7 +64,6 @@ EOF
 
 
 %build
-cd %{sources}
 %{__phpize}
 sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
@@ -71,21 +72,11 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
 
 %install
-cd %{sources}
-
 : Install the extension
 %make_install
 
-: Install XML package description
-install -Dpm 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
 : Install config file
-install -Dpm644 ../%{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
-
-: Install the Documentation
-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 -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
 
 
 %check
@@ -96,15 +87,20 @@ done
 
 
 %files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%license LICENSE
+%doc *.md
 
 %config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
 %{php_extdir}/%{pecl_name}.so
 
 
 %changelog
+* Wed Nov  4 2026 Remi Collet <remi@remirepo.net> - 1.6.0-1
+- update to 1.6.0
+- add pie virtual provides
+- drop pear/pecl dependency
+- sources from github
+
 * Tue Jun 16 2026 Remi Collet <remi@remirepo.net> - 1.5.0-2
 - rebuild with default php 8.3 #2488949
 

diff --git a/sources b/sources
index 72d2425..d1f0691 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ssh2-1.5.0.tgz) = da3dd181b620188cef5a9780611d19a81bc18e27a7996a241449e6ded3efdad000ff07b5a11dc648b65c64bfeea12b6583f139255dbfb402767e2c73bc596bbc
+SHA512 (pecl-networking-ssh2-1.6.0.tar.gz) = 51ad363b69dc4ff1d5e3923143e6be7015f4d4e9be7e61ea5ffd260d9388c865b2acb5e4e15790cbaea283cefc5042f3850b0a93eeeb41c303d24896ecbb5ef7

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-05  7:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05  7:12 [rpms/php-pecl-ssh2] epel10: v1.6.0 Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox