summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-04-21 13:59:24 +0200
committerRemi Collet <remi@php.net>2026-04-21 13:59:24 +0200
commitd76fbb09358bede53ec73c9396c74d174299de17 (patch)
treee2183783345875fba0cffa8b44eb88882cf47804
parent0ecb8a8fff2895b1de4e5254e986253536bfce43 (diff)
drop pear/pecl dependencyHEADmaster
sources from github
-rw-r--r--REFLECTION2
-rw-r--r--php-pecl-imap.spec55
2 files changed, 25 insertions, 32 deletions
diff --git a/REFLECTION b/REFLECTION
index 9be78c5..3b4f5f3 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #48 imap version 1.0.3 ] {
+Extension [ <persistent> extension #55 imap version 1.0.3 ] {
- Dependencies {
Dependency [ standard (Required) ]
diff --git a/php-pecl-imap.spec b/php-pecl-imap.spec
index 7e1493e..ce29b55 100644
--- a/php-pecl-imap.spec
+++ b/php-pecl-imap.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-imap
#
-# Copyright (c) 2023-2024 Remi Collet
+# Copyright (c) 2023-2026 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -13,16 +13,21 @@
%global pecl_name imap
%global ini_name 30-%{pecl_name}.ini
-%global sources %{pecl_name}-%{version}
-Summary: Extension to operate with the IMAP protocol
+# Github forge
+%global gh_vend php
+%global gh_proj pecl-mail-imap
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag %{version}
+
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 1.0.3
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Summary: Extension to operate with the IMAP protocol
License: PHP-3.01
-URL: https://pecl.php.net/package/%{pecl_name}
-
-Source0: https://pecl.php.net/get/%{sources}.tgz
+Version: 1.0.3
+Release: 2%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
@@ -32,17 +37,19 @@ BuildRequires: pkgconfig(krb5)
BuildRequires: pkgconfig(krb5-gssapi)
BuildRequires: openssl-devel >= 1.0.2
BuildRequires: libc-client-devel
-BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
+# PECL
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# Extension
# Set epoch so provides is > 0:8.4
Obsoletes: %{?scl_prefix}php-%{pecl_name} < 8.4
Provides: %{?scl_prefix}php-%{pecl_name} = 1:%{version}-%{release}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = 1:%{version}-%{release}
+# No PIE for now
%description
@@ -53,21 +60,14 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
-%setup -c -q
-
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
- %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
- -i package.xml
+%forgesetup
-cd %{sources}
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_IMAP_VERSION/{s/.* "//;s/".*$//;p}' php_imap.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
: Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}.
exit 1
fi
-cd ..
: Create the configuration file
cat >%{ini_name} << 'EOF'
@@ -77,7 +77,6 @@ EOF
%build
-cd %{sources}
%{__phpize}
sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
@@ -97,21 +96,11 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
: Install 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
-
: Install the extension
-cd %{sources}
%make_install
-: Install the Documentation
-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}
: minimal load test of the extension
%{__php} --no-php-ini \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
@@ -128,15 +117,19 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
%files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%license LICENSE
+%doc CREDITS
+%doc *.rst
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
%changelog
+* Tue Apr 21 2026 Remi Collet <remi@remirepo.net> - 1.0.3-2
+- drop pear/pecl dependency
+- sources from github
+
* Tue Oct 15 2024 Remi Collet <remi@remirepo.net> - 1.0.3-1
- update to 1.0.3