From c992b3f77d84766357c4b005570f673dadec4064 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 8 Mar 2007 21:31:20 +0000 Subject: [PATCH] Incorporate automated build number if RPM release --- ChangeLog | 6 ++++++ libvirt.spec.in | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5eb3135a4d..e3199c7be3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Mar 8 16:30:41 EST 2007 Daniel P. Berrange + + * 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 * src/qemu_internal.c: Fix inverted check on file handle to diff --git a/libvirt.spec.in b/libvirt.spec.in index 3943878a95..813938e872 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -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 -- GitLab