diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-10-30 22:08:18 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-10-31 10:11:52 +0100 |
commit | 4fe15524b44a3a5a1d5e9043ebc87e0208bfafe5 (patch) | |
tree | 6aff67cc255d5eaaf928de4f36f49cd4fe1474d6 | |
parent | 23c87a26b1d2657546f4a52e41c7a0421526bbfc (diff) |
rpm: Allow .spec file to be used with git snapshots
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.
-rw-r--r-- | mingw-spice-vdagent.spec | 6 |
1 files 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 |