summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION74
-rw-r--r--composer.json13
-rw-r--r--php-pecl-dio.spec42
4 files changed, 71 insertions, 60 deletions
diff --git a/PHPINFO b/PHPINFO
index 1773ad3..22f3fd5 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,4 +2,4 @@
dio
dio support => enabled
-version => 0.3.0RC1
+version => 0.3.0
diff --git a/REFLECTION b/REFLECTION
index 55930c6..628a33b 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,42 +1,42 @@
-Extension [ <persistent> extension #64 dio version 0.3.0RC1 ] {
+Extension [ <persistent> extension #75 dio version 0.3.0 ] {
- Constants [36] {
- Constant [ int O_RDONLY ] { 0 }
- Constant [ int O_WRONLY ] { 1 }
- Constant [ int O_RDWR ] { 2 }
- Constant [ int O_CREAT ] { 64 }
- Constant [ int O_EXCL ] { 128 }
- Constant [ int O_TRUNC ] { 512 }
- Constant [ int O_APPEND ] { 1024 }
- Constant [ int O_NONBLOCK ] { 2048 }
- Constant [ int O_NDELAY ] { 2048 }
- Constant [ int O_SYNC ] { 1052672 }
- Constant [ int O_ASYNC ] { 8192 }
- Constant [ int O_NOCTTY ] { 256 }
- Constant [ int S_IRWXU ] { 448 }
- Constant [ int S_IRUSR ] { 256 }
- Constant [ int S_IWUSR ] { 128 }
- Constant [ int S_IXUSR ] { 64 }
- Constant [ int S_IRWXG ] { 56 }
- Constant [ int S_IRGRP ] { 32 }
- Constant [ int S_IWGRP ] { 16 }
- Constant [ int S_IXGRP ] { 8 }
- Constant [ int S_IRWXO ] { 7 }
- Constant [ int S_IROTH ] { 4 }
- Constant [ int S_IWOTH ] { 2 }
- Constant [ int S_IXOTH ] { 1 }
- Constant [ int F_DUPFD ] { 0 }
- Constant [ int F_GETFD ] { 1 }
- Constant [ int F_GETFL ] { 3 }
- Constant [ int F_SETFL ] { 4 }
- Constant [ int F_GETLK ] { 5 }
- Constant [ int F_SETLK ] { 6 }
- Constant [ int F_SETLKW ] { 7 }
- Constant [ int F_SETOWN ] { 8 }
- Constant [ int F_GETOWN ] { 9 }
- Constant [ int F_UNLCK ] { 2 }
- Constant [ int F_RDLCK ] { 0 }
- Constant [ int F_WRLCK ] { 1 }
+ Constant [ <persistent> int O_RDONLY ] { 0 }
+ Constant [ <persistent> int O_WRONLY ] { 1 }
+ Constant [ <persistent> int O_RDWR ] { 2 }
+ Constant [ <persistent> int O_CREAT ] { 64 }
+ Constant [ <persistent> int O_EXCL ] { 128 }
+ Constant [ <persistent> int O_TRUNC ] { 512 }
+ Constant [ <persistent> int O_APPEND ] { 1024 }
+ Constant [ <persistent> int O_NONBLOCK ] { 2048 }
+ Constant [ <persistent> int O_NDELAY ] { 2048 }
+ Constant [ <persistent> int O_SYNC ] { 1052672 }
+ Constant [ <persistent> int O_ASYNC ] { 8192 }
+ Constant [ <persistent> int O_NOCTTY ] { 256 }
+ Constant [ <persistent> int S_IRWXU ] { 448 }
+ Constant [ <persistent> int S_IRUSR ] { 256 }
+ Constant [ <persistent> int S_IWUSR ] { 128 }
+ Constant [ <persistent> int S_IXUSR ] { 64 }
+ Constant [ <persistent> int S_IRWXG ] { 56 }
+ Constant [ <persistent> int S_IRGRP ] { 32 }
+ Constant [ <persistent> int S_IWGRP ] { 16 }
+ Constant [ <persistent> int S_IXGRP ] { 8 }
+ Constant [ <persistent> int S_IRWXO ] { 7 }
+ Constant [ <persistent> int S_IROTH ] { 4 }
+ Constant [ <persistent> int S_IWOTH ] { 2 }
+ Constant [ <persistent> int S_IXOTH ] { 1 }
+ Constant [ <persistent> int F_DUPFD ] { 0 }
+ Constant [ <persistent> int F_GETFD ] { 1 }
+ Constant [ <persistent> int F_GETFL ] { 3 }
+ Constant [ <persistent> int F_SETFL ] { 4 }
+ Constant [ <persistent> int F_GETLK ] { 5 }
+ Constant [ <persistent> int F_SETLK ] { 6 }
+ Constant [ <persistent> int F_SETLKW ] { 7 }
+ Constant [ <persistent> int F_SETOWN ] { 8 }
+ Constant [ <persistent> int F_GETOWN ] { 9 }
+ Constant [ <persistent> int F_UNLCK ] { 2 }
+ Constant [ <persistent> int F_RDLCK ] { 0 }
+ Constant [ <persistent> int F_WRLCK ] { 1 }
}
- Functions {
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..71ef0e0
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,13 @@
+{
+ "name": "pecl/dio",
+ "type": "php-ext",
+ "license": "PHP-3.01",
+ "description": "Direct I/O functions",
+ "require": {
+ "php": ">= 8.0.0"
+ },
+ "php-ext": {
+ "extension-name": "dio",
+ "configure-options": []
+ }
+}
diff --git a/php-pecl-dio.spec b/php-pecl-dio.spec
index d315366..3de0131 100644
--- a/php-pecl-dio.spec
+++ b/php-pecl-dio.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-dio
#
-# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2013-2026 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
@@ -15,21 +15,29 @@
%global pecl_name dio
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
-%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
+%global sources %{archivename}
%global _configure ../%{sources}/configure
+# Github forge
+%global gh_vend php
+%global gh_proj pecl-system-dio
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag v%{upstream_version}%{?upstream_prever}+pie
+# for EL-8 to avoid TAG usage
+%global archivename %{gh_proj}-%{upstream_version}%{?upstream_prever}-pie
+
Summary: Direct I/O functions
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 3%{?dist}%{!?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
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
+Release: 4%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 8.0
-BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -60,11 +68,6 @@ more than adequate.
%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_DIO_VERSION/{s/.* "//;s/".*$//;p}' src/php_dio.h)
@@ -118,20 +121,11 @@ 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}
%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}
@@ -158,7 +152,7 @@ REPORT_EXIT_STATUS=1 \
%files
%license %{sources}/LICENSE
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/composer.json
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -170,6 +164,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 0.3.0-4
+- drop pear/pecl dependency
+- sources from github
+
* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 0.3.0-3
- rebuild for PHP 8.5.0RC1