public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-pecl-oauth] epel10: v2.0.13
@ 2026-06-19  7:42 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-06-19  7:42 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/php-pecl-oauth
            Branch : epel10
            Commit : d202641207496bc5f90c1a85e3844c8345b1bb4b
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-06-19T09:42:33+02:00
            Stats  : +35/-25 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-pecl-oauth/c/d202641207496bc5f90c1a85e3844c8345b1bb4b?branch=epel10

            Log:
            v2.0.13

(cherry picked from commit f9cc1f41b34c3f264474be5a7d6e73c9049f995e)

---
diff --git a/.gitignore b/.gitignore
index 857e0de..312f9db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,6 @@ clog
 /oauth-2.0.7.tgz
 /oauth-2.0.9.tgz
 /oauth-2.0.10.tgz
+/pecl-web_services-oauth-2.0.10.tar.gz
+/pecl-web_services-oauth-2.0.12.tar.gz
+/pecl-web_services-oauth-2.0.13.tar.gz

diff --git a/php-pecl-oauth.spec b/php-pecl-oauth.spec
index 4a8d731..a091a5e 100644
--- a/php-pecl-oauth.spec
+++ b/php-pecl-oauth.spec
@@ -1,23 +1,31 @@
 %bcond_without     tests
 
 %global pecl_name oauth
+%global pie_vend  pecl
+%global pie_proj  %{pecl_name}
 %global ini_name  40-%{pecl_name}.ini
-%global sources   %{pecl_name}-%{version}
+
+# Github forge
+%global gh_vend   php
+%global gh_proj   pecl-web_services-oauth
+%global forgeurl  https://github.com/%{gh_vend}/%{gh_proj}
+%global tag       %{version}
 
 Name:		php-pecl-oauth	
-Version:	2.0.10
-Release:	1%{?dist}
 Summary:	PHP OAuth consumer extension
 License:	BSD-3-Clause
-URL:		https://pecl.php.net/package/oauth
-Source0:	https://pecl.php.net/get/%{sources}.tgz
+Version:	2.0.13
+Release:	1%{?dist}
+%forgemeta
+URL:            %{forgeurl}
+Source0:        %{forgesource}
 
 ExcludeArch:    %{ix86}
 
 BuildRequires:	make
 BuildRequires:	gcc
-BuildRequires:	php-devel
-BuildRequires:	php-pear
+# Ensure default PHP 8.3 on EPEL-10
+BuildRequires:(php-devel >= 8.3 with php-devel < 8.4)
 %if %{with tests}
 BuildRequires:	php-posix
 %endif
@@ -26,10 +34,15 @@ BuildRequires:	libcurl-devel
 Requires:	php(zend-abi) = %{php_zend_api}
 Requires:	php(api) = %{php_core_api}
 
+# PECL
 Provides:	php-pecl(%{pecl_name}) = %{version}
 Provides:	php-pecl(%{pecl_name})%{_isa} = %{version}
+# Extension
 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
@@ -39,7 +52,7 @@ user names and passwords.
 
 
 %prep
-%setup -q -c
+%forgesetup
 
 # Don't install/register tests
 sed -e 's/role="test"/role="src"/' \
@@ -47,14 +60,12 @@ sed -e 's/role="test"/role="src"/' \
     -i package.xml
 
 
-cd %{sources}
 # Sanity check, really often broken
 extver=$(sed -n '/#define PHP_OAUTH_VERSION/{s/.* //;s/".*$//;p}' php_oauth.h)
 if test "x${extver}" != "x%{version}"; then
    : Error: Upstream extension version is ${extver}, expecting %{version}.
    exit 1
 fi
-cd ..
 
 cat >%{ini_name} << 'EOF'
 ; Enable %{pecl_name} extension module
@@ -63,7 +74,6 @@ EOF
 
 
 %build
-cd %{sources}
 %{__phpize}
 sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
@@ -76,18 +86,9 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 : Drop in the bit of 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
-
-cd %{sources}
 : Install the extension
 %make_install
 
-: Install 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
-
 
 %check
 : Minimal load test for the extension
@@ -96,7 +97,6 @@ done
     --modules | grep '^OAuth$'
 
 %if %{with tests}
-cd %{sources}
 # Ignore know as failing
 rm tests/rsa.phpt
 
@@ -107,15 +107,22 @@ TEST_PHP_ARGS="-n -d extension=posix.so -d extension=%{buildroot}%{php_extdir}/%
 
 
 %files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%license LICENSE
+%doc composer.json
+%doc *.md
+%doc examples
 
 %config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
 %{php_extdir}/%{pecl_name}.so
 
 
 %changelog
+* Fri Jun 19 2026 Remi Collet <remi@remirepo.net> - 2.0.13-1
+- update to 2.0.13
+- add pie virtual provides
+- drop pear/pecl dependency
+- sources from github
+
 * Fri Oct 10 2025 Remi Collet <remi@remirepo.net> - 2.0.10-1
 - update to 2.0.10
 

diff --git a/sources b/sources
index fc97ed4..560fa53 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (oauth-2.0.10.tgz) = 288d03eca7c295f65004023366ccc3e9dc9016a59bf86e16decabf12c36c361e5f12e550fc2d3e16ef2061ac948035456d16989595f42d239308bc39435e94e9
+SHA512 (pecl-web_services-oauth-2.0.13.tar.gz) = 6f4c27dac1fcdb5063b26a038ef079a1f8772bd233c38fcee0927545f7e3efc1b823677bf2e49347da26b7876c6834f171bd462f4c66049e9c5a79a84566ec02

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

only message in thread, other threads:[~2026-06-19  7:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19  7:42 [rpms/php-pecl-oauth] epel10: v2.0.13 Remi Collet

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