OSDN Git Service

rectool: improve rpm's spec file to include version string (git rev) in generated...
authorLong.inus <long.inus@hotmail.co.jp>
Sun, 21 Jul 2013 19:32:17 +0000 (04:32 +0900)
committerLong.inus <long.inus@hotmail.co.jp>
Sun, 21 Jul 2013 19:32:17 +0000 (04:32 +0900)
rectool/rectool.spec

index 1d6c95f..ce3bdb4 100644 (file)
@@ -1,6 +1,8 @@
+%define                gitrev  %(git rev-list HEAD | wc | awk '{print $1}')
+
 Name:          rec10-rectool
 Version:       0.0.1
-Release:       1%{?dist}
+Release:       git%{gitrev}%{?dist}
 Summary:       rec10 web interface
 
 Group:         Utilities