[gpsd] set gpsd revision string to include package revision
Miroslav Lichvar
mlichvar at fedoraproject.org
Wed Jul 2 17:05:28 UTC 2014
commit 2a72fa11dd9ffd8b6e8c233e633447d80f291740
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Jul 2 18:59:50 2014 +0200
set gpsd revision string to include package revision
gpsd.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
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
More information about the scm-commits
mailing list