[packages/sqlite3] fix lua macro expand

glen glen at pld-linux.org
Thu Feb 26 23:00:39 CET 2015


commit 65430f849afdb2b73406aa4173903fdc6d4d8a01
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Feb 27 00:00:35 2015 +0200

    fix lua macro expand

 sqlite3.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sqlite3.spec b/sqlite3.spec
index 146f56a..6eb5ca2 100644
--- a/sqlite3.spec
+++ b/sqlite3.spec
@@ -20,8 +20,8 @@
 %undefine	with_tests
 %endif
 
-%define		ver	%{lua:v="";for i in string.gmatch(string.format("%08d", %{vnum}), "..") do; v=v..i:gsub("^0", ".");end;v=v:gsub("^.","");print(v)}
 %define		vnum	3080803
+%define		ver	%{lua:vn=rpm.expand("%vnum");v="";for i in string.gmatch(string.format("%08d", vn), "..") do; v=v..i:gsub("^0", ".");end;v=v:gsub("^.","");print(v)}
 %define		tclver		8.6
 Summary:	SQLite library
 Summary(pl.UTF-8):	Biblioteka SQLite
@@ -174,7 +174,7 @@ sqlite3 tcl extension.
 Rozszerzenie sqlite3 dla Tcl.
 
 %prep
-%setup -q -n sqlite-src-%{version_num}
+%setup -q -n sqlite-src-%{vnum}
 %patch0 -p1
 
 %{__sed} -i 's/mkdir doc/#mkdir doc/' Makefile.in
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sqlite3.git/commitdiff/65430f849afdb2b73406aa4173903fdc6d4d8a01



More information about the pld-cvs-commit mailing list