]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpm: Handle different source URLs for maint releases
authorCole Robinson <crobinso@redhat.com>
Sun, 6 May 2012 18:09:22 +0000 (14:09 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 7 May 2012 14:50:53 +0000 (10:50 -0400)
libvirt.spec.in

index e7e0a55a1352f649f594bca269bba314af85bdcf..95d8af4bf43888ca3ce740547c22a4c7a423ac81 100644 (file)
@@ -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}