[packages/poldek] Rel 0.2. Define the snapshot group sources once; x32 had them twice
arekm
arekm at pld-linux.org
Sat Nov 14 22:00:53 CET 2026
commit f6e643567a54ff4ef9217f772c48a16ce5af7cf9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Nov 14 21:53:48 2026 +0100
Rel 0.2. Define the snapshot group sources once; x32 had them twice
poldek-multilib-snap.conf | 11 -----------
poldek.spec | 22 +++++++++++++++-------
2 files changed, 15 insertions(+), 18 deletions(-)
---
diff --git a/poldek.spec b/poldek.spec
index a7222ae..06902c0 100644
--- a/poldek.spec
+++ b/poldek.spec
@@ -17,7 +17,7 @@
%define gitref 473ca93bb156f646e7e0f413370ebf6e3a6c400c
%define snap 20261113
-%define rel 0.1
+%define rel 0.2
# poldek's autogen.sh and CI build against trurlib and tndb master
%define trurlib_gitref f6c8d5afcb2c53fa97e02c8b3c9b77bdae5179c4
%define tndb_gitref 27a90b4cca45533e84afc57e0a9654dfbf0120d1
@@ -389,12 +389,20 @@ sources = th %{?ftp_alt_arch:th-%{ftp_alt_arch}} %{?ftp_alt2_arch:th-%{ftp_alt2_
EOF
%endif
-# th-2014 snap does not exist for x32 yet
-%if "%{ftp_arch}" == "x32"
-rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
-%endif
-%if "%{ftp_alt2_arch}" == "x32"
-rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-x32.conf
+# the same for the snapshot, in one file: poldek refuses a source name defined in two files
+%ifarch %{x8664} x32
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-all.conf
+# group sources for referring th-%{SNAP}+th-%{SNAP}-multiarch sources together, i.e poldek --sn th-%{SNAP}-all
+[source]
+type = group
+name = th-%{SNAP}-all
+sources = th-%{SNAP} th-%{SNAP}-%{ftp_alt_arch} th-%{SNAP}-%{ftp_alt2_arch}
+
+[source]
+type = group
+name = th-%{SNAP}-all-updates
+sources = th-%{SNAP}-updates th-%{SNAP}-%{ftp_alt_arch}-updates th-%{SNAP}-%{ftp_alt2_arch}-updates
+EOF
%endif
cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cli.conf
diff --git a/poldek-multilib-snap.conf b/poldek-multilib-snap.conf
index a4ba98c..21ae085 100644
--- a/poldek-multilib-snap.conf
+++ b/poldek-multilib-snap.conf
@@ -8,17 +8,6 @@ _pld_main_prefix = https://ftp.th.pld-linux.org/dists/th/%{_snap}
_prefix = %{_pld_main_prefix}
-# group source for referring th+th-multiarch sources together, i.e poldek --sn th-%SNAP%-all
-[source]
-type = group
-name = th-%{_snap}-all
-sources = th-%{_snap} th-%{_snap}-%{_arch}
-
-[source]
-type = group
-name = th-%{_snap}-all-updates
-sources = th-%{_snap}-updates th-%{_snap}-%{_arch}-updates
-
[source]
type = pndir
name = th-%{_snap}-%{_arch}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/poldek.git/commitdiff/f6e643567a54ff4ef9217f772c48a16ce5af7cf9
More information about the pld-cvs-commit
mailing list