From 2a72fa11dd9ffd8b6e8c233e633447d80f291740 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 2 Jul 2014 18:59:50 +0200 Subject: [PATCH] set gpsd revision string to include package revision --- gpsd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gpsd.spec b/gpsd.spec index faa3797..9b52915 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -80,6 +80,10 @@ can run on a serial terminal or terminal emulator. %setup -q -n %{name} %patch1 -p1 -b .ppsoffset +# set gpsd revision string to include package revision +sed -i 's|^revision=.*REVISION.*$|revision='\'\ +'#define REVISION "%{version}-%{release}'\"\'\| SConstruct + # fix RPATH sed -i 's|sysrpath =.*|sysrpath = ["%{_libdir}"]|' SConstruct