From: Cole Robinson Date: Sun, 6 May 2012 18:09:22 +0000 (-0400) Subject: rpm: Handle different source URLs for maint releases X-Git-Tag: v0.9.11.4~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05aa969fc95150a0ddbe173c026de3ef584ffc6a;p=thirdparty%2Flibvirt.git rpm: Handle different source URLs for maint releases (cherry picked from commit f4345ac21fead319a22a5761e86a46752df23402) Conflicts: libvirt.spec.in --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 9c0476bbf1..0da36a410b 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -264,10 +264,14 @@ Version: @VERSION@ Release: 1%{?dist}%{?extra_release} License: LGPLv2+ Group: Development/Libraries -Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://libvirt.org/ +%if %(echo %{version} | grep -o \\. | wc -l) == 3 +%define mainturl stable_updates/ +%endif +Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.gz + # All runtime requirements for the libvirt package (runtime requrements # for subpackages are listed later in those subpackages)