SHA256
1
0
forked from pool/qemu

Accepting request 407943 from home:bfrogers:branches:Virtualization

Enable ceph (rbd) where possible

OBS-URL: https://build.opensuse.org/request/show/407943
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=303
This commit is contained in:
Bruce Rogers 2016-07-12 20:12:45 +00:00 committed by Git OBS Bridge
parent 481f3ccdfb
commit f2d49240eb
5 changed files with 151 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 12 18:20:24 UTC 2016 - brogers@suse.com
- Enable ceph (rbd) support
-------------------------------------------------------------------
Mon Jul 4 06:20:16 UTC 2016 - glin@suse.com

View File

@ -46,6 +46,12 @@
%endif
%define noarch_supported 1110
%ifarch x86_64
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && ( 0%{?is_opensuse} == 0 || 0%{?sle_version} == 120200 ) )
%define with_rbd 1
%endif
%endif
Name: qemu-testsuite
Url: http://www.qemu.org/
Summary: Universal CPU emulator
@ -202,6 +208,13 @@ BuildRequires: libgnutls-devel
%if 0%{?suse_version} >= 1315
BuildRequires: libibverbs-devel
%endif
%if 0%{?with_rbd}
%if 0%{?is_opensuse}
BuildRequires: librbd-devel
%else
BuildRequires: ceph-devel
%endif
%endif
%if 0%{?suse_version} > 1320
BuildRequires: libiscsi-devel
%endif
@ -335,6 +348,9 @@ Suggests: qemu-block-gluster
%if 0%{?suse_version} > 1320
Suggests: qemu-block-iscsi
%endif
%if 0%{?with_rbd}
Suggests: qemu-block-rbd
%endif
%if 0%{?suse_version} > 1140
Suggests: qemu-block-ssh
%endif
@ -550,6 +566,23 @@ This sub-package contains a module for accessing network-based image files
over an iSCSI network connection from qemu-img tool and QEMU system emulation.
%endif
%if 0%{?with_rbd}
%package block-rbd
Summary: Universal CPU emulator -- Ceph (rbd) block support
Group: System/Emulators/PC
%{qemu_module_conflicts}
%description block-rbd
QEMU is an extremely well-performing CPU emulator that allows you to
choose between simulating an entire system and running userspace
binaries for different architectures under your native operating
system. It currently emulates x86, ARM, PowerPC and SPARC CPUs as well
as PC and PowerMac systems.
This sub-package contains a module for accessing ceph (rbd,rados)
image files.
%endif
%if 0%{?suse_version} > 1140
%package block-ssh
Summary: Universal CPU emulator -- SSH block support
@ -573,6 +606,9 @@ Group: System/Emulators/PC
Provides: qemu:%_libexecdir/qemu-bridge-helper
PreReq: permissions
Recommends: qemu-block-curl
%if 0%{?with_rbd}
Recommends: qemu-block-rbd
%endif
%description tools
QEMU is an extremely well-performing CPU emulator that allows you to
@ -850,7 +886,11 @@ rm -f pc-bios/slof.bin
--enable-numa \
%endif
%endif
%if 0%{?with_rbd}
--enable-rbd \
%else
--disable-rbd \
%endif
%if 0%{?suse_version} >= 1315
--enable-rdma \
%else
@ -1238,6 +1278,13 @@ fi
%_libdir/%name/block-iscsi.so
%endif
%if 0%{?with_rbd}
%files block-rbd
%defattr(-, root, root)
%dir %_libdir/%name
%_libdir/%name/block-rbd.so
%endif
%if 0%{?suse_version} > 1140
%files block-ssh
%defattr(-, root, root)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 12 18:20:24 UTC 2016 - brogers@suse.com
- Enable ceph (rbd) support
-------------------------------------------------------------------
Mon Jul 4 06:20:16 UTC 2016 - glin@suse.com

View File

@ -46,6 +46,12 @@
%endif
%define noarch_supported 1110
%ifarch x86_64
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && ( 0%{?is_opensuse} == 0 || 0%{?sle_version} == 120200 ) )
%define with_rbd 1
%endif
%endif
Name: qemu
Url: http://www.qemu.org/
Summary: Universal CPU emulator
@ -202,6 +208,13 @@ BuildRequires: libgnutls-devel
%if 0%{?suse_version} >= 1315
BuildRequires: libibverbs-devel
%endif
%if 0%{?with_rbd}
%if 0%{?is_opensuse}
BuildRequires: librbd-devel
%else
BuildRequires: ceph-devel
%endif
%endif
%if 0%{?suse_version} > 1320
BuildRequires: libiscsi-devel
%endif
@ -335,6 +348,9 @@ Suggests: qemu-block-gluster
%if 0%{?suse_version} > 1320
Suggests: qemu-block-iscsi
%endif
%if 0%{?with_rbd}
Suggests: qemu-block-rbd
%endif
%if 0%{?suse_version} > 1140
Suggests: qemu-block-ssh
%endif
@ -550,6 +566,23 @@ This sub-package contains a module for accessing network-based image files
over an iSCSI network connection from qemu-img tool and QEMU system emulation.
%endif
%if 0%{?with_rbd}
%package block-rbd
Summary: Universal CPU emulator -- Ceph (rbd) block support
Group: System/Emulators/PC
%{qemu_module_conflicts}
%description block-rbd
QEMU is an extremely well-performing CPU emulator that allows you to
choose between simulating an entire system and running userspace
binaries for different architectures under your native operating
system. It currently emulates x86, ARM, PowerPC and SPARC CPUs as well
as PC and PowerMac systems.
This sub-package contains a module for accessing ceph (rbd,rados)
image files.
%endif
%if 0%{?suse_version} > 1140
%package block-ssh
Summary: Universal CPU emulator -- SSH block support
@ -573,6 +606,9 @@ Group: System/Emulators/PC
Provides: qemu:%_libexecdir/qemu-bridge-helper
PreReq: permissions
Recommends: qemu-block-curl
%if 0%{?with_rbd}
Recommends: qemu-block-rbd
%endif
%description tools
QEMU is an extremely well-performing CPU emulator that allows you to
@ -850,7 +886,11 @@ rm -f pc-bios/slof.bin
--enable-numa \
%endif
%endif
%if 0%{?with_rbd}
--enable-rbd \
%else
--disable-rbd \
%endif
%if 0%{?suse_version} >= 1315
--enable-rdma \
%else
@ -1238,6 +1278,13 @@ fi
%_libdir/%name/block-iscsi.so
%endif
%if 0%{?with_rbd}
%files block-rbd
%defattr(-, root, root)
%dir %_libdir/%name
%_libdir/%name/block-rbd.so
%endif
%if 0%{?suse_version} > 1140
%files block-ssh
%defattr(-, root, root)

View File

@ -46,6 +46,12 @@
%endif
%define noarch_supported 1110
%ifarch x86_64
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && ( 0%{?is_opensuse} == 0 || 0%{?sle_version} == 120200 ) )
%define with_rbd 1
%endif
%endif
Name: qemu
Url: http://www.qemu.org/
Summary: Universal CPU emulator
@ -142,6 +148,13 @@ BuildRequires: libgnutls-devel
%if 0%{?suse_version} >= 1315
BuildRequires: libibverbs-devel
%endif
%if 0%{?with_rbd}
%if 0%{?is_opensuse}
BuildRequires: librbd-devel
%else
BuildRequires: ceph-devel
%endif
%endif
%if 0%{?suse_version} > 1320
BuildRequires: libiscsi-devel
%endif
@ -275,6 +288,9 @@ Suggests: qemu-block-gluster
%if 0%{?suse_version} > 1320
Suggests: qemu-block-iscsi
%endif
%if 0%{?with_rbd}
Suggests: qemu-block-rbd
%endif
%if 0%{?suse_version} > 1140
Suggests: qemu-block-ssh
%endif
@ -490,6 +506,23 @@ This sub-package contains a module for accessing network-based image files
over an iSCSI network connection from qemu-img tool and QEMU system emulation.
%endif
%if 0%{?with_rbd}
%package block-rbd
Summary: Universal CPU emulator -- Ceph (rbd) block support
Group: System/Emulators/PC
%{qemu_module_conflicts}
%description block-rbd
QEMU is an extremely well-performing CPU emulator that allows you to
choose between simulating an entire system and running userspace
binaries for different architectures under your native operating
system. It currently emulates x86, ARM, PowerPC and SPARC CPUs as well
as PC and PowerMac systems.
This sub-package contains a module for accessing ceph (rbd,rados)
image files.
%endif
%if 0%{?suse_version} > 1140
%package block-ssh
Summary: Universal CPU emulator -- SSH block support
@ -513,6 +546,9 @@ Group: System/Emulators/PC
Provides: qemu:%_libexecdir/qemu-bridge-helper
PreReq: permissions
Recommends: qemu-block-curl
%if 0%{?with_rbd}
Recommends: qemu-block-rbd
%endif
%description tools
QEMU is an extremely well-performing CPU emulator that allows you to
@ -731,7 +767,11 @@ rm -f pc-bios/slof.bin
--enable-numa \
%endif
%endif
%if 0%{?with_rbd}
--enable-rbd \
%else
--disable-rbd \
%endif
%if 0%{?suse_version} >= 1315
--enable-rdma \
%else
@ -1121,6 +1161,13 @@ fi
%_libdir/%name/block-iscsi.so
%endif
%if 0%{?with_rbd}
%files block-rbd
%defattr(-, root, root)
%dir %_libdir/%name
%_libdir/%name/block-rbd.so
%endif
%if 0%{?suse_version} > 1140
%files block-ssh
%defattr(-, root, root)