]> git.pld-linux.org Git - packages/poldek.git/commitdiff
make th-all virtual repo dynamically from .spec
authorElan Ruusamäe <glen@delfi.ee>
Sun, 1 Mar 2015 18:46:33 +0000 (20:46 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 1 Mar 2015 18:46:33 +0000 (20:46 +0200)
poldek-multilib.conf
poldek.spec

index 9cfda1957a57e4c4b28e59acc2e0563648c853da..c3cf11998142fbf346be7bcf61ef4907bd2ecad7 100644 (file)
@@ -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}
index 38c456abf90acda82801d54e78fb5b422c36cd3b..d522048c9bdc1d8f585bda2ce3a224b3e1a142bd 100644 (file)
@@ -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
This page took 0.03469 seconds and 4 git commands to generate.