[Spice-devel] [vdagent-win 2/5] rpm: Allow .spec file to be used with git snapshots
Christophe Fergeau
cfergeau at redhat.com
Wed Oct 31 02:36:15 PDT 2012
git snapshots will contain the short version of the hash
that was used to generate the snapshot in their version number,
take that into account in the spec file.
---
mingw-spice-vdagent.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/mingw-spice-vdagent.spec b/mingw-spice-vdagent.spec
index f41fdee..3f29074 100644
--- a/mingw-spice-vdagent.spec
+++ b/mingw-spice-vdagent.spec
@@ -1,5 +1,7 @@
%{?mingw_package_hedder}
+#define _version_suffix -e198
+
Name: mingw-spice-vdagent
Version: 0.7.0
Release: 1%{?dist}%{?extra_release}
@@ -7,7 +9,7 @@ Summary: MinGW Windows SPICE guest agent
License: GPLv2+
URL: http://spice-space.org/
-Source0: vdagent-win-%{version}.tar.xz
+Source0: vdagent-win-%{version}%{?_version_suffix}.tar.xz
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw64-filesystem >= 23
@@ -57,7 +59,7 @@ Features:
session and the client
%prep
-%setup -q -n vdagent-win-%{version}
+%setup -q -n vdagent-win-%{version}%{?_version_suffix}
%build
--
1.7.12.1
More information about the Spice-devel
mailing list