[packages/poldek] make th-all virtual repo dynamically from .spec

glen glen at pld-linux.org
Sun Mar 1 19:46:40 CET 2015


commit 600f8dbc81e462e16b367ef2054f66c5bffcfa58
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 1 20:46:33 2015 +0200

    make th-all virtual repo dynamically from .spec

 poldek-multilib.conf |  6 ------
 poldek.spec          | 11 +++++++++++
 2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/poldek.spec b/poldek.spec
index 38c456a..d522048 100644
--- a/poldek.spec
+++ b/poldek.spec
@@ -356,6 +356,17 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/repos.d,/var/cache/%{name}}
 %{__sed} -i '/@@SNAP@@.*/d' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld.conf
 %endif
 
+# create "all" meta repo
+%if 0%{?ftp_alt_arch:1}%{?ftp_alt2_arch:1}
+cat <<'EOF' >  $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-all.conf
+# group source for referring th+th-multiarch sources together, i.e poldek -n th-all
+[source]
+type    = group
+name    = th-all
+sources = th %{?ftp_alt_arch:th-%{ftp_alt_arch}} %{?ftp_alt2_arch:th-%{ftp_alt2_arch}}
+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
diff --git a/poldek-multilib.conf b/poldek-multilib.conf
index 9cfda19..c3cf119 100644
--- a/poldek-multilib.conf
+++ b/poldek-multilib.conf
@@ -11,12 +11,6 @@ _pld_main_prefix = ftp://ftp.th.pld-linux.org/dists/th
 #_prefix = ftp://ftp.task.pld-linux.org/dists/th
 _prefix = %{_pld_main_prefix}
 
-# group source for referring th+th-multiarch sources together, i.e poldek --sn th-all
-[source]
-type    = group
-name    = th-all
-sources = th th-%{_arch}
-
 [source]
 type   = pndir
 name   = th-%{_arch}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poldek.git/commitdiff/600f8dbc81e462e16b367ef2054f66c5bffcfa58



More information about the pld-cvs-commit mailing list