[qemu] Set pkgversion when running configure

Daniel P. Berrange berrange at fedoraproject.org
Wed Jan 28 13:25:51 UTC 2015


commit 10fa62ffc35213ee02c993cd2e43cd9952b3139a
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Wed Jan 28 13:25:27 2015 +0000

    Set pkgversion when running configure

 qemu.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/qemu.spec b/qemu.spec
index 8b8f22d..62b994b 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -153,7 +153,7 @@
 Summary: QEMU is a FAST! processor emulator
 Name: qemu
 Version: 2.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Epoch: 2
 License: GPLv2+ and LGPLv2+ and BSD
 Group: Development/Tools
@@ -781,6 +781,7 @@ sed -i.debug 's/"-g $CFLAGS"/"$CFLAGS"/g' configure
     --interp-prefix=%{_prefix}/qemu-%%M \
     --localstatedir=%{_localstatedir} \
     --libexecdir=%{_libexecdir} \
+    --with-pkgversion=%{name}-%{version}-%{release} \
     --disable-strip \
 %ifnarch aarch64
     --extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
@@ -1500,6 +1501,9 @@ getent passwd qemu >/dev/null || \
 %endif
 
 %changelog
+* Wed Jan 28 2015 Daniel P. Berrange <berrange at redhat.com> - 2:2.2.0-2
+- Pass package information to configure
+
 * Tue Dec 09 2014 Cole Robinson <crobinso at redhat.com> - 2:2.2.0-1
 - Rebased to version 2.2.0
 


More information about the scm-commits mailing list