diff options
author | Cole Robinson <crobinso@redhat.com> | 2012-05-06 14:09:22 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2012-05-07 10:50:53 -0400 |
commit | f4345ac21fead319a22a5761e86a46752df23402 (patch) | |
tree | 2748e0b6f35a3445bb47ba33ab040a3ae0494417 /libvirt.spec.in | |
parent | docs: Add 'maintenance releases' link in 'News' sidebar (diff) | |
download | libvirt-f4345ac21fead319a22a5761e86a46752df23402.tar.gz libvirt-f4345ac21fead319a22a5761e86a46752df23402.tar.bz2 libvirt-f4345ac21fead319a22a5761e86a46752df23402.zip |
rpm: Handle different source URLs for maint releases
Diffstat (limited to 'libvirt.spec.in')
-rw-r--r-- | libvirt.spec.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libvirt.spec.in b/libvirt.spec.in index e7e0a55a1..95d8af4bf 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -276,10 +276,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 + %if %{with_libvirtd} Requires: libvirt-daemon = %{version}-%{release} %if %{with_network} |