RPM: get version from IDMETA
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 15 Nov 2011 09:20:00 +0000 (10:20 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 15 Nov 2011 09:20:00 +0000 (10:20 +0100)
So we don't need to update the spec file for each release anymore.

pazpar2.spec

index e65dc44..2f015ab 100644 (file)
@@ -1,6 +1,7 @@
+%define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
 Summary: Metasearcher
 Name: pazpar2
-Version: 1.6.5
+Version: %{idmetaversion}
 Release: 1indexdata
 License: GPL
 Group: Applications/Internet