diff options
Diffstat (limited to 'php-pecl-oauth.spec')
-rw-r--r-- | php-pecl-oauth.spec | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/php-pecl-oauth.spec b/php-pecl-oauth.spec index d9adb19..dc31488 100644 --- a/php-pecl-oauth.spec +++ b/php-pecl-oauth.spec @@ -12,7 +12,6 @@ %bcond_without tests %if 0%{?scl:1} -%global sub_prefix %{scl_prefix} %scl_package php-pecl-oauth %endif @@ -20,14 +19,17 @@ %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini -Name: %{?sub_prefix}php-pecl-oauth +Name: %{?scl_prefix}php-pecl-oauth Version: 2.0.7 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP OAuth consumer extension License: BSD URL: https://pecl.php.net/package/oauth Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: %{pecl_name}-php82.patch + +BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7 BuildRequires: %{?scl_prefix}php-pear @@ -43,10 +45,6 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if "%{?scl_prefix}" != "%{?sub_prefix}" -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%endif %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff @@ -70,12 +68,6 @@ Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif %endif -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - %description OAuth is an authorization protocol built on top of HTTP which allows @@ -98,6 +90,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 -b .pr24 + #sed -e '/PHP_OAUTH_VERSION/s/2.0.3-dev/2.0.3/' -i php_oauth.h # Sanity check, really often broken extver=$(sed -n '/#define PHP_OAUTH_VERSION/{s/.* //;s/".*$//;p}' php_oauth.h) @@ -217,6 +211,13 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Fri Sep 9 2022 Remi Collet <remi@remirepo.net> - 2.0.7-6 +- add patch for PHP 8.2 from + https://github.com/php/pecl-web_services-oauth/pull/24 + +* Mon Sep 6 2021 Remi Collet <remi@remirepo.net> - 2.0.7-5 +- re-build + * Wed Sep 30 2020 Remi Collet <remi@remirepo.net> - 2.0.7-2 - rebuild for PHP 8.0.0RC1 |