summaryrefslogtreecommitdiffstats
path: root/php-pecl-inotify.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-03-13 07:29:28 +0100
committerRemi Collet <remi@php.net>2026-03-13 07:29:28 +0100
commit0510f0f778e80ab72ca2b0d6bc5408ea2c3cc69f (patch)
treebca5673c01141f70eef4887609cb0265d926becf /php-pecl-inotify.spec
parenta23482edff35ab11947fefb71985a424ea06a7b4 (diff)
drop pear/pecl dependencyHEADmaster
sources from github
Diffstat (limited to 'php-pecl-inotify.spec')
-rw-r--r--php-pecl-inotify.spec47
1 files changed, 21 insertions, 26 deletions
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