]> git.ipfire.org Git - thirdparty/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>
Thu, 14 Jun 2012 15:23:37 +0000 (11:23 -0400)
(cherry picked from commit f4345ac21fead319a22a5761e86a46752df23402)

Conflicts:

libvirt.spec.in

libvirt.spec.in

index 9c0476bbf1a3d253ed66ba1f6a03b471f5b122a7..0da36a410b5a332eeaeff4b57dfeede91c004bac 100644 (file)
@@ -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)