libvirt better layout in spec file for patches

Signed-off-by: virtbuilder_pel7x64builder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7x64builder0 2018-08-17 13:33:29 +02:00
parent a5119223d5
commit 7343285f4d
1 changed files with 3 additions and 5 deletions

View File

@ -56,18 +56,16 @@ Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: https://libvirt.org/

%ifarch x86_64
Patch1: libvirt-network-bridge-function.patch
%endif
Patch2: libvirt-network-switch-function.patch

%if %(echo %{version} | grep -q "\.0$"; echo $?) == 1
%define mainturl stable_updates/
%endif
Source: https://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.xz
Source1: symlinks

%ifarch x86_64
Patch1: libvirt-network-bridge-function.patch
%endif
Patch2: libvirt-network-switch-function.patch

Requires: libvirt-daemon = %{version}-%{release}
Requires: libvirt-daemon-config-network = %{version}-%{release}