public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-pecl-mailparse] f44: v3.2.1
@ 2026-11-26 10:13 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-26 10:13 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php-pecl-mailparse
Branch : f44
Commit : 98129f546aa83212b006d9b00b57d82fdda9ed0c
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2026-11-26T11:13:21+01:00
Stats  : +28/-32 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/php-pecl-mailparse/c/98129f546aa83212b006d9b00b57d82fdda9ed0c?branch=f44

Log:
v3.2.1

---
diff --git a/php-pecl-mailparse.spec b/php-pecl-mailparse.spec
index e98aee9..42db041 100644
--- a/php-pecl-mailparse.spec
+++ b/php-pecl-mailparse.spec
@@ -9,19 +9,24 @@
 # Please, preserve the changelog entries
 #
 
-%global pie_vend   pecl
-%global pie_proj   mailparse
 %global pecl_name  mailparse
+%global pie_vend   pecl
+%global pie_proj   %{pecl_name}
 %global ini_name   40-%{pecl_name}.ini
-%global sources    %{pecl_name}-%{version}
 
+# Github forge
+%global gh_vend    php
+%global gh_proj    pecl-mail-%{pecl_name}
+%global forgeurl   https://github.com/%{gh_vend}/%{gh_proj}
+
+Name:      php-pecl-%{pecl_name}
 Summary:   PHP PECL package for parsing and working with email messages
-Name:      php-pecl-mailparse
-Version:   3.2.0
-Release:   1%{?dist}
 License:   PHP-3.01
-URL:       https://pecl.php.net/package/mailparse
-Source0:   https://pecl.php.net/get/%{sources}.tgz
+Version:   3.2.1
+Release:   1%{?dist}
+%forgemeta
+URL:       %{forgeurl}
+Source0:   %{forgesource}
 
 ExcludeArch:   %{ix86}
 
@@ -51,22 +56,16 @@ It can deal with rfc822 and rfc2045 (MIME) compliant messages.
 
 
 %prep
-# We need to create our working directory since the package*.xml files from
-# the sources extract straight to it
-%setup -q -c
+%forgesetup
 
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
-    -e '/LICENSE/s/role="doc"/role="src"/' \
-    -i package.xml
+# avoid re2c
+touch php_mailparse_rfc822.c
 
-cd %{sources}
 extver=$(sed -n '/#define PHP_MAILPARSE_VERSION/{s/.* "//;s/".*$//;p}' php_mailparse.h)
 if test "x${extver}" != "x%{version}"; then
    : Error: Upstream version is ${extver}, expecting %{version}.
    exit 1
 fi
-cd ..
 
 cat > %{ini_name} << 'EOF'
 ; Enable mailparse extension module
@@ -78,7 +77,6 @@ EOF
 
 
 %build
-cd %{sources}
 %{__phpize}
 sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
@@ -90,20 +88,10 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 # Drop in the bit of configuration
 install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
 
-# Install XML package description
-install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
-cd %{sources}
 %make_install
 
-# 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 for NTS extension
 %{__php} --no-php-ini \
     --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
@@ -119,14 +107,22 @@ NO_INTERACTION=1 \
 
 
 %files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
+%license LICENSE
+%doc composer.json
+%doc CREDITS
+%doc *.md
+%doc try.php
+
 %config(noreplace) %{php_inidir}/%{ini_name}
 %{php_extdir}/%{pecl_name}.so
-%{pecl_xmldir}/%{name}.xml
 
 
 %changelog
+* Thu Nov 26 2026 Remi Collet <remi@remirepo.net> - 3.2.1-1
+- update to 3.2.1
+- drop pear/pecl dependency
+- sources from github
+
 * Thu Apr  9 2026 Remi Collet <remi@remirepo.net> - 3.2.0-1
 - update to 3.2.0
 - drop dependency on mbstring

diff --git a/sources b/sources
index c891758..c31dc4b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mailparse-3.2.0.tgz) = fb0f87f48d3e5c710db2fa281b014801eb7cdb4cf2136fd39e0dd5cb79bde1ecf005e2a9128a58899b275fa474b6d51ea54a2afcf2fdc9ed792270cfc25e4785
+SHA512 (pecl-mail-mailparse-3.2.1.tar.gz) = d0af7f2a0776bad0438512df1f82685617cb15af1aebdfcf05d127d3f0fe3b6278608827caada082d8517c8978614338925e42b747c0e973a440aa3590c1b891

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 10:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 10:13 [rpms/php-pecl-mailparse] f44: v3.2.1 Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox