Re: [PATCH] rpm: Handle different source URLs for maint releases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06.05.2012 20:10, Cole Robinson wrote:
> 
> Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
> ---
>  libvirt.spec.in |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/libvirt.spec.in b/libvirt.spec.in
> index e7e0a55..95d8af4 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}

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]