diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-11 15:14:45 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-11 15:14:45 +0100 |
| commit | e852de2464f716fbdbd84b24e4b86348e17ffdc0 (patch) | |
| tree | dc6bd9b63c73f5cad50018506e24b2f70a1bef06 | |
| parent | 3974e73f93e0b094c6e9af1ad8419dbb42889273 (diff) | |
sources from github
| -rw-r--r-- | composer.json | 13 | ||||
| -rw-r--r-- | php-pecl-xattr.spec | 33 |
2 files changed, 31 insertions, 15 deletions
diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6ce4969 --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "name": "pecl/xattr", + "type": "php-ext", + "license": "PHP-3.01", + "description": "Extended attributes", + "require": { + "php": ">= 7.2.0" + }, + "php-ext": { + "extension-name": "pecl/xattr", + "configure-options": [] + } +} diff --git a/php-pecl-xattr.spec b/php-pecl-xattr.spec index fa06cf8..19c5039 100644 --- a/php-pecl-xattr.spec +++ b/php-pecl-xattr.spec @@ -13,21 +13,27 @@ %global pie_proj xattr %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} +%global sources %{gh_proj}-%{version} %global _configure ../%{sources}/configure +# Github forge +%global gh_vend php +%global gh_proj pecl-file_system-xattr +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{version} + Summary: Extended attributes Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: 1.4.1 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +%forgemeta +Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP-3.01 -URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{sources}.tgz +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: %{?dtsprefix}gcc BuildRequires: make BuildRequires: %{?scl_prefix}php-devel >= 7.2 -BuildRequires: %{?scl_prefix}php-pear >= 1.10 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -52,11 +58,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} # Sanity check, really often broken extver=$(sed -n '/#define PHP_XATTR_VERSION/{s/.* "//;s/".*$//;p}' php_xattr.h) @@ -108,9 +109,6 @@ cd ../ZTS # install config file 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} @@ -147,8 +145,9 @@ cd ../ZTS %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/composer.json +%doc %{sources}/CREDITS +%doc %{sources}/*.md %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -160,6 +159,10 @@ cd ../ZTS %changelog +* Wed Mar 11 2026 Remi Collet <remi@remirepo.net> - 1.4.1-3 +- drop pear/pecl dependency +- sources from github + * Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.4.1-2 - rebuild for PHP 8.5.0RC1 |
