[packages/seamonkey] switch to xpi prep method compatible with rpm >= 4.18

atler atler at pld-linux.org
Thu Jan 30 14:54:09 CET 2025


commit 4aa9fce4a16f1c8af61ab129c7d57d25ebd24138
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jan 30 14:05:41 2025 +0100

    switch to xpi prep method compatible with rpm >= 4.18

 seamonkey.spec | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/seamonkey.spec b/seamonkey.spec
index 2520612..c7d3d8a 100644
--- a/seamonkey.spec
+++ b/seamonkey.spec
@@ -670,12 +670,14 @@ Traditional Chinese resources for SeaMonkey.
 Chińskie tradycyjne pliki językowe dla SeaMonkeya.
 
 %prep
-unpack() {
-	local args="$1" file="$2"
-	cp -p $file .
-}
-%define __unzip unpack
-%setup -q %(seq -f '-a %g' 100 122 | xargs)
+%setup -q
+for s in %sources; do
+	case $s in
+	*.xpi)
+		cp -p $s .
+		;;
+	esac
+done
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
@@ -821,7 +823,7 @@ ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
 # see mozilla/xpcom/build/nsXULAppAPI.h
 # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
- 
+
 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
 ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/seamonkey.git/commitdiff/353adb265c992f97d3b70c2273f6aa12467b298e



More information about the pld-cvs-commit mailing list