]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Incorporate automated build number if RPM release
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Mar 2007 21:31:20 +0000 (21:31 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Mar 2007 21:31:20 +0000 (21:31 +0000)
ChangeLog
libvirt.spec.in

index 5eb3135a4df114304bd9f10fe6af64aff7811c69..e3199c7be3d369718622a659909a31c408af7909 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar  8 16:30:41 EST 2007 Daniel P. Berrange <berrange@redhat.com>
+
+       * libvirt.spec.in: Add some macro magic to allow Release field
+       to incorporate an automated build number for testing - a no-op
+       for normal RPM builds.
+
 Thu Mar  8 10:14:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
 
        * src/qemu_internal.c: Fix inverted check on file handle to
index 3943878a953b431a5546b97ebb037591bdfa9ed0..813938e872e063615998f1826966377d145f586e 100644 (file)
@@ -1,9 +1,15 @@
 # -*- rpm-spec -*-
 
+# This macro is used for the continuous automated builds. It just
+# allows an extra fragment based on the timestamp to be appended
+# to the release. This distinguishes automated builds, from formal
+# Fedora RPM builds
+%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
+
 Summary: Library providing an API to use the Xen virtualization
 Name: libvirt
 Version: @VERSION@
-Release: 4%{?dist}
+Release: 4%{?_extra_release}
 License: LGPL
 Group: Development/Libraries
 Source: libvirt-%{version}.tar.gz