From 703ae20b4d24be794bc0cd6b2b6805a4249f493a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 22 Dec 2006 19:52:11 +0000 Subject: [PATCH] - need %patchset_source() as it defines PatchX Changed files: builder.sh -> 1.470 --- builder.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder.sh b/builder.sh index 320bd9e..300d4c3 100644 --- a/builder.sh +++ b/builder.sh @@ -401,7 +401,9 @@ cache_rpm_dump () { %py_ver ERROR %perl_vendorarch ERROR %perl_vendorlib ERROR -%patchset_source() %{nil} +# damn. need it here! - copied from /usr/lib/rpm/macros.build +%tmpdir %(echo "${TMPDIR:-/tmp}") +%patchset_source(f:b:) %(base=%{-b*}%{!-b*:10000}; start=$((%1 + $base)); end=$((%{?2}%{!?2:%{1}} + $base)); seq -f 'Patch%g:' $start $end > %{tmpdir}/__ps1; seq -f '%{-f*}' %1 %{?2}%{!?2:%{1}} > %{tmpdir}/__ps2; paste %{tmpdir}/__ps{1,2}; rm -f %{tmpdir}/__ps{1,2})%{nil} EOF case "$RPMBUILD" in rpm) -- 2.44.0