commit cae5fe8f0dc80a76942ae8eed26efb185197960d
Author: Elan Ruusamäe <[email protected]>
Date: Wed May 13 10:25:15 2015 +0300
fix lua magic
sqlite3.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sqlite3.spec b/sqlite3.spec
index 0513507..c77f47d 100644
--- a/sqlite3.spec
+++ b/sqlite3.spec
@@ -20,9 +20,9 @@
%undefine with_tests
%endif
+# lua versions with zero padded without any dots (3 08 10 01 is 3.8.10.1)
%define vnum 3081001
-%define ver 3.8.10.1
-#%%{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 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sqlite3.git/commitdiff/cae5fe8f0dc80a76942ae8eed26efb185197960d
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit