set gpsd revision string to include package revision

This commit is contained in:
Miroslav Lichvar 2014-07-02 18:59:50 +02:00
parent 3f55d2db18
commit 2a72fa11dd

View File

@ -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