]> git.pld-linux.org Git - packages/sqlite3.git/commitdiff
lua macro for version
authorElan Ruusamäe <glen@delfi.ee>
Thu, 26 Feb 2015 20:35:10 +0000 (22:35 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 26 Feb 2015 20:36:06 +0000 (22:36 +0200)
sqlite3.spec

index 63fe77579274bedffcea22125c3aec415b54dc00..146f56a34fe4b66bbbccc00c42970cac6b296899 100644 (file)
 %undefine      with_tests
 %endif
 
-#define                version_num %(echo %{version} |  awk -F. '{printf("%d%02d%02d%02d", $1, $2, $3, $4)}')
-%define                version_num     3080803
+%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                tclver          8.6
 Summary:       SQLite library
 Summary(pl.UTF-8):     Biblioteka SQLite
 Name:          sqlite3
-Version:       3.8.8.3
+Version:       %{ver}
 Release:       1
 License:       Public Domain
 Group:         Libraries
 # Source0Download: http://www.sqlite.org/download.html
-Source0:       http://www.sqlite.org/2015/sqlite-src-%{version_num}.zip
+Source0:       http://www.sqlite.org/2015/sqlite-src-%{vnum}.zip
 # Source0-md5: 7aed8084e18c2677c71345cbd8ca0b76
 Patch0:                %{name}-sign-function.patch
 URL:           http://www.sqlite.org/
This page took 0.088937 seconds and 4 git commands to generate.