summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--REFLECTION66
-rw-r--r--php-pecl-oauth.spec43
2 files changed, 53 insertions, 56 deletions
diff --git a/REFLECTION b/REFLECTION
index 40f8e85..0bd9286 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,38 +1,38 @@
-Extension [ <persistent> extension #103 OAuth version 2.0.10 ] {
+Extension [ <persistent> extension #105 OAuth version 2.0.10 ] {
- Constants [32] {
- Constant [ string OAUTH_SIG_METHOD_HMACSHA1 ] { HMAC-SHA1 }
- Constant [ string OAUTH_SIG_METHOD_HMACSHA256 ] { HMAC-SHA256 }
- Constant [ string OAUTH_SIG_METHOD_RSASHA1 ] { RSA-SHA1 }
- Constant [ string OAUTH_SIG_METHOD_PLAINTEXT ] { PLAINTEXT }
- Constant [ int OAUTH_AUTH_TYPE_AUTHORIZATION ] { 3 }
- Constant [ int OAUTH_AUTH_TYPE_URI ] { 1 }
- Constant [ int OAUTH_AUTH_TYPE_FORM ] { 2 }
- Constant [ int OAUTH_AUTH_TYPE_NONE ] { 4 }
- Constant [ string OAUTH_HTTP_METHOD_GET ] { GET }
- Constant [ string OAUTH_HTTP_METHOD_POST ] { POST }
- Constant [ string OAUTH_HTTP_METHOD_PUT ] { PUT }
- Constant [ string OAUTH_HTTP_METHOD_HEAD ] { HEAD }
- Constant [ string OAUTH_HTTP_METHOD_DELETE ] { DELETE }
- Constant [ int OAUTH_REQENGINE_STREAMS ] { 1 }
- Constant [ int OAUTH_REQENGINE_CURL ] { 2 }
- Constant [ int OAUTH_SSLCHECK_NONE ] { 0 }
- Constant [ int OAUTH_SSLCHECK_HOST ] { 1 }
- Constant [ int OAUTH_SSLCHECK_PEER ] { 2 }
- Constant [ int OAUTH_SSLCHECK_BOTH ] { 3 }
- Constant [ int OAUTH_OK ] { 0 }
- Constant [ int OAUTH_BAD_NONCE ] { 4 }
- Constant [ int OAUTH_BAD_TIMESTAMP ] { 8 }
- Constant [ int OAUTH_CONSUMER_KEY_UNKNOWN ] { 16 }
- Constant [ int OAUTH_CONSUMER_KEY_REFUSED ] { 32 }
- Constant [ int OAUTH_INVALID_SIGNATURE ] { 64 }
- Constant [ int OAUTH_TOKEN_USED ] { 128 }
- Constant [ int OAUTH_TOKEN_EXPIRED ] { 256 }
- Constant [ int OAUTH_TOKEN_REVOKED ] { 512 }
- Constant [ int OAUTH_TOKEN_REJECTED ] { 1024 }
- Constant [ int OAUTH_VERIFIER_INVALID ] { 2048 }
- Constant [ int OAUTH_PARAMETER_ABSENT ] { 4096 }
- Constant [ int OAUTH_SIGNATURE_METHOD_REJECTED ] { 8192 }
+ Constant [ <persistent> string OAUTH_SIG_METHOD_HMACSHA1 ] { HMAC-SHA1 }
+ Constant [ <persistent> string OAUTH_SIG_METHOD_HMACSHA256 ] { HMAC-SHA256 }
+ Constant [ <persistent> string OAUTH_SIG_METHOD_RSASHA1 ] { RSA-SHA1 }
+ Constant [ <persistent> string OAUTH_SIG_METHOD_PLAINTEXT ] { PLAINTEXT }
+ Constant [ <persistent> int OAUTH_AUTH_TYPE_AUTHORIZATION ] { 3 }
+ Constant [ <persistent> int OAUTH_AUTH_TYPE_URI ] { 1 }
+ Constant [ <persistent> int OAUTH_AUTH_TYPE_FORM ] { 2 }
+ Constant [ <persistent> int OAUTH_AUTH_TYPE_NONE ] { 4 }
+ Constant [ <persistent> string OAUTH_HTTP_METHOD_GET ] { GET }
+ Constant [ <persistent> string OAUTH_HTTP_METHOD_POST ] { POST }
+ Constant [ <persistent> string OAUTH_HTTP_METHOD_PUT ] { PUT }
+ Constant [ <persistent> string OAUTH_HTTP_METHOD_HEAD ] { HEAD }
+ Constant [ <persistent> string OAUTH_HTTP_METHOD_DELETE ] { DELETE }
+ Constant [ <persistent> int OAUTH_REQENGINE_STREAMS ] { 1 }
+ Constant [ <persistent> int OAUTH_REQENGINE_CURL ] { 2 }
+ Constant [ <persistent> int OAUTH_SSLCHECK_NONE ] { 0 }
+ Constant [ <persistent> int OAUTH_SSLCHECK_HOST ] { 1 }
+ Constant [ <persistent> int OAUTH_SSLCHECK_PEER ] { 2 }
+ Constant [ <persistent> int OAUTH_SSLCHECK_BOTH ] { 3 }
+ Constant [ <persistent> int OAUTH_OK ] { 0 }
+ Constant [ <persistent> int OAUTH_BAD_NONCE ] { 4 }
+ Constant [ <persistent> int OAUTH_BAD_TIMESTAMP ] { 8 }
+ Constant [ <persistent> int OAUTH_CONSUMER_KEY_UNKNOWN ] { 16 }
+ Constant [ <persistent> int OAUTH_CONSUMER_KEY_REFUSED ] { 32 }
+ Constant [ <persistent> int OAUTH_INVALID_SIGNATURE ] { 64 }
+ Constant [ <persistent> int OAUTH_TOKEN_USED ] { 128 }
+ Constant [ <persistent> int OAUTH_TOKEN_EXPIRED ] { 256 }
+ Constant [ <persistent> int OAUTH_TOKEN_REVOKED ] { 512 }
+ Constant [ <persistent> int OAUTH_TOKEN_REJECTED ] { 1024 }
+ Constant [ <persistent> int OAUTH_VERIFIER_INVALID ] { 2048 }
+ Constant [ <persistent> int OAUTH_PARAMETER_ABSENT ] { 4096 }
+ Constant [ <persistent> int OAUTH_SIGNATURE_METHOD_REJECTED ] { 8192 }
}
- Functions {
diff --git a/php-pecl-oauth.spec b/php-pecl-oauth.spec
index 8c545aa..40560b1 100644
--- a/php-pecl-oauth.spec
+++ b/php-pecl-oauth.spec
@@ -16,21 +16,27 @@
%global pecl_name oauth
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
-%global sources %{pecl_name}-%{version}
-%global _configure ../%{sources}/configure
+%global sources %{gh_proj}-%{version}
+%global _configure ../%{sources}/configure
+
+# 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: %{?scl_prefix}php-pecl-oauth
-Version: 2.0.10
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Summary: PHP OAuth consumer extension
License: BSD-3-Clause
-URL: https://pecl.php.net/package/oauth
-Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Version: 2.0.10
+Release: 2%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.1
-BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-posix
BuildRequires: libcurl-devel
@@ -43,6 +49,7 @@ Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
# PECL
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# No PIE for now
%description
@@ -58,11 +65,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
- -e '/LICENSE/s/role="doc"/role="src"/' \
- -i package.xml
-
cd %{sources}
#sed -e '/PHP_OAUTH_VERSION/s/2.0.3-dev/2.0.3/' -i php_oauth.h
# Sanity check, really often broken
@@ -111,20 +113,11 @@ cd ../ZTS
# 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
-
%if %{with_zts}
%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
-# Documentation
-cd %{sources}
-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
cd %{sources}
@@ -153,8 +146,8 @@ REPORT_EXIT_STATUS=1 \
%files
%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/*.md
+%doc %{sources}/examples
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -166,6 +159,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Thu Mar 26 2026 Remi Collet <remi@remirepo.net> - 2.0.10-2
+- 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
- drop patch merged upstream