summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION50
-rw-r--r--composer.json12
-rw-r--r--php-pecl-inotify.spec47
4 files changed, 62 insertions, 51 deletions
diff --git a/PHPINFO b/PHPINFO
new file mode 100644
index 0000000..4671b5b
--- /dev/null
+++ b/PHPINFO
@@ -0,0 +1,4 @@
+
+inotify
+
+Version => 3.0.1
diff --git a/REFLECTION b/REFLECTION
index beb5972..92b9480 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,30 +1,30 @@
-Extension [ <persistent> extension #89 inotify version 3.0.1 ] {
+Extension [ <persistent> extension #86 inotify version 3.0.1 ] {
- Constants [24] {
- Constant [ int IN_ACCESS ] { 1 }
- Constant [ int IN_MODIFY ] { 2 }
- Constant [ int IN_ATTRIB ] { 4 }
- Constant [ int IN_CLOSE_WRITE ] { 8 }
- Constant [ int IN_CLOSE_NOWRITE ] { 16 }
- Constant [ int IN_OPEN ] { 32 }
- Constant [ int IN_MOVED_FROM ] { 64 }
- Constant [ int IN_MOVED_TO ] { 128 }
- Constant [ int IN_CREATE ] { 256 }
- Constant [ int IN_DELETE ] { 512 }
- Constant [ int IN_DELETE_SELF ] { 1024 }
- Constant [ int IN_MOVE_SELF ] { 2048 }
- Constant [ int IN_UNMOUNT ] { 8192 }
- Constant [ int IN_Q_OVERFLOW ] { 16384 }
- Constant [ int IN_IGNORED ] { 32768 }
- Constant [ int IN_CLOSE ] { 24 }
- Constant [ int IN_MOVE ] { 192 }
- Constant [ int IN_ALL_EVENTS ] { 4095 }
- Constant [ int IN_ONLYDIR ] { 16777216 }
- Constant [ int IN_DONT_FOLLOW ] { 33554432 }
- Constant [ int IN_MASK_ADD ] { 536870912 }
- Constant [ int IN_ISDIR ] { 1073741824 }
- Constant [ int IN_ONESHOT ] { 2147483648 }
- Constant [ int IN_EXCL_UNLINK ] { 67108864 }
+ Constant [ <persistent> int IN_ACCESS ] { 1 }
+ Constant [ <persistent> int IN_MODIFY ] { 2 }
+ Constant [ <persistent> int IN_ATTRIB ] { 4 }
+ Constant [ <persistent> int IN_CLOSE_WRITE ] { 8 }
+ Constant [ <persistent> int IN_CLOSE_NOWRITE ] { 16 }
+ Constant [ <persistent> int IN_OPEN ] { 32 }
+ Constant [ <persistent> int IN_MOVED_FROM ] { 64 }
+ Constant [ <persistent> int IN_MOVED_TO ] { 128 }
+ Constant [ <persistent> int IN_CREATE ] { 256 }
+ Constant [ <persistent> int IN_DELETE ] { 512 }
+ Constant [ <persistent> int IN_DELETE_SELF ] { 1024 }
+ Constant [ <persistent> int IN_MOVE_SELF ] { 2048 }
+ Constant [ <persistent> int IN_UNMOUNT ] { 8192 }
+ Constant [ <persistent> int IN_Q_OVERFLOW ] { 16384 }
+ Constant [ <persistent> int IN_IGNORED ] { 32768 }
+ Constant [ <persistent> int IN_CLOSE ] { 24 }
+ Constant [ <persistent> int IN_MOVE ] { 192 }
+ Constant [ <persistent> int IN_ALL_EVENTS ] { 4095 }
+ Constant [ <persistent> int IN_ONLYDIR ] { 16777216 }
+ Constant [ <persistent> int IN_DONT_FOLLOW ] { 33554432 }
+ Constant [ <persistent> int IN_MASK_ADD ] { 536870912 }
+ Constant [ <persistent> int IN_ISDIR ] { 1073741824 }
+ Constant [ <persistent> int IN_ONESHOT ] { 2147483648 }
+ Constant [ <persistent> int IN_EXCL_UNLINK ] { 67108864 }
}
- Functions {
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..2e22349
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,12 @@
+{
+ "name": "arnaud-lb/inotify",
+ "type": "php-ext",
+ "license": "MIT",
+ "description": "Inotify bindings for PHP",
+ "require": {
+ "php": ">= 8.1.0"
+ },
+ "php-ext": {
+ "extension-name": "inotify"
+ }
+}
diff --git a/php-pecl-inotify.spec b/php-pecl-inotify.spec
index 3c60644..e373f9b 100644
--- a/php-pecl-inotify.spec
+++ b/php-pecl-inotify.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-inotify
#
-# 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
#
@@ -13,24 +13,27 @@
%global pie_vend arnaud-lb
%global pie_proj inotify
%global ini_name 40-%{pecl_name}.ini
-%global sources %{pecl_name}-%{version}
+%global sources %{gh_proj}-%{version}
%global _configure ../%{sources}/configure
-# NOTICE: sources on https://github.com/arnaud-lb/php-inotify
+# Github forge
+%global gh_vend arnaud-lb
+%global gh_proj php-inotify
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag %{version}
Summary: Inotify
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 3.0.1
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP-3.01
-Group: Development/Languages
-URL: https://pecl.php.net/package/%{pecl_name}
-Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Version: 3.0.1
+Release: 2%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.0
-BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -55,12 +58,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-sed -e '/inotify.php/s/role="php"/role="doc"/' \
- -e '/tail.php/s/role="php"/role="doc"/' \
- -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_INOTIFY_VERSION/{s/.* "//;s/".*$//;p}' php_inotify.h)
@@ -115,21 +112,12 @@ 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}
@@ -156,8 +144,11 @@ REPORT_EXIT_STATUS=1 \
%files
%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/composer.json
+%doc %{sources}/CREDITS
+%doc %{sources}/*.md
+%doc %{sources}/tail.php
+%doc %{sources}/inotify.php
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -169,6 +160,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 3.0.1-2
+- drop pear/pecl dependency
+- sources from github
+
* Mon Oct 20 2025 Remi Collet <remi@remirepo.net> - 3.0.1-1
- update to 3.0.1
- open https://github.com/arnaud-lb/php-inotify/issues/17