[vdagent-win 2/5] rpm: Allow .spec file to be used with git snapshots

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]