diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-26 15:23:23 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-26 15:23:23 +0100 |
| commit | c7ff51bf25ec1475695eb51edbd85fbd751f785c (patch) | |
| tree | e264fdf078151bd530a92df955f4c9d3f743f548 /php-pecl-oauth.spec | |
| parent | 6f9691de247e20612cd7f99fa1910eb3d4b22ec1 (diff) | |
sources from github
Diffstat (limited to 'php-pecl-oauth.spec')
| -rw-r--r-- | php-pecl-oauth.spec | 43 |
1 files changed, 20 insertions, 23 deletions
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 |
