Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:xen-4.5
qemu-2.5
qemu-2.5.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qemu-2.5.spec of Package qemu-2.5
# # spec file for package qemu # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _lto_cflags %nil %global _buildshell /bin/bash %bcond_without libnfs %bcond_without librbd %bcond_without qemu_opengl %bcond_without qemu_vte %bcond_without spice %bcond_without virglrenderer Name: qemu-2.5 Version: 0 Release: 0 Summary: Upstream %name ExclusiveArch: x86_64 License: BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT Group: System/Emulators/PC Url: https://www.qemu.org/ %define qemu_revision_full db51dfc1fcaf0027a5f266b7def4317605848c6a %define qemu_revision_short db51dfc1fc %define qemu_date_unix 1462812958 %define qemu_date_commit 2016-05-09 11:55:58 -0500 %define seabios_revision_full 33fbe13a3e2a01e0ba1087a8feed801a0451db21 %define seabios_revision_short 33fbe13a %define seabios_date_unix 1434441630 %define seabios_date_commit 2015-06-16 10:00:30 +0200 %define ipxe_revision_full 390bce9516ce3a4adf599762b6c965813332595e %define ipxe_revision_short 390bce95 %define ipxe_date_unix 1710861239 %define ipxe_date_commit 2024-03-19 15:13:59 +0000 Patch1450345901: qemu.bf864863f63d0f631eb61981826c6ccc8ec2c05b.patch Patch1462557792: qemu.c6feff9e09aa999b77a37f532adbb89682ecb1b6.patch Patch1511866287: qemu.75e5b70e6b5dcc4f2219992d7cffa462aa406af0.patch Patch1607958578: qemu.bbd2d5a8120771ec59b86a80a1f51884e0a26e53.patch Patch1559136816: qemu.9p-makedev.patch %if %suse_version > 1110 BuildRequires: python(abi) > 3.0 %endif Patch1433197926: seabios.be050664fdd1699fe7bcf3a9b6faff07172a83d6.patch Patch1477411781: seabios.99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce.patch Patch1531663514: seabios.8c3f57ea1217ea0c80a72898bc35baa0e14af0e0.patch Patch1432052479: seabios.3752bf44be8931f86523ed538555b170a52d09dc.patch Patch1595431900: seabios.699a4e5d6919cc8eae5342443025ceb6909dc276.patch Patch1621549128: seabios.6eff8085980dba0938cea0193b8a0fd3c6b0c4ca.patch Patch1426804471: seabios.128kb.patch %define seabios_version 33fbe13a3e2a01e0ba1087a8feed801a0451db21 Patch1484818598: ipxe.stable-build-id.patch %define ipxe_version 390bce9516ce3a4adf599762b6c965813332595e %define sgabios_version 23d474943dcd55d0550a3d20b3d30e9040a4f15b BuildRoot: %_tmppath/%name-%version-build # %if %{suse_version} == 1110 BuildRequires: gcc48 BuildRequires: gtk2-devel %endif BuildRequires: acpica BuildRequires: bash BuildRequires: fdupes BuildRequires: binutils-devel BuildRequires: gcc-c++ BuildRequires: libaio-devel BuildRequires: libattr-devel BuildRequires: libgcrypt-devel BuildRequires: libnuma-devel %if %{with librbd} BuildRequires: librbd-devel %endif BuildRequires: makeinfo BuildRequires: ovmf-tools BuildRequires: perl BuildRequires: pkg-config BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(bzip2) %if %{with qemu_opengl} BuildRequires: pkgconfig(epoxy) BuildRequires: pkgconfig(gbm) %endif BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gtk+-x11-3.0) BuildRequires: pkgconfig(libacl) BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libcap-ng) BuildRequires: pkgconfig(libcurl) %if %{with qemu_opengl} BuildRequires: pkgconfig(libdrm) %endif %if %{with libnfs} BuildRequires: pkgconfig(libnfs) %endif BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libssh2) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libusbredirparser-0.5) BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(pixman-1) BuildRequires: pkgconfig(python2) %if %{with spice} BuildRequires: pkgconfig(spice-protocol) BuildRequires: pkgconfig(spice-server) %endif BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(vdeplug) %if %{with virglrenderer} BuildRequires: pkgconfig(virglrenderer) %endif %if %{with qemu_vte} BuildRequires: pkgconfig(vte-2.91) %endif BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xencontrol) BuildRequires: pkgconfig(xendevicemodel) BuildRequires: pkgconfig(xenevtchn) BuildRequires: pkgconfig(xenforeignmemory) BuildRequires: pkgconfig(xengnttab) BuildRequires: pkgconfig(xenguest) BuildRequires: pkgconfig(xenstore) BuildRequires: pkgconfig(zlib) BuildRequires: xfsprogs-devel %description %prep rm -rf %_builddir/%name-%version mv %_sourcedir/%name-%version %_builddir/%name-%version %setup -c -T -D pushd '.' %patch -P 1450345901 -p1 %patch -P 1462557792 -p1 %patch -P 1511866287 -p1 %patch -P 1607958578 -p1 %patch -P 1559136816 -p1 popd rm -rf './roms/seabios' mkdir -vp './roms' mv -v '%_sourcedir/seabios-%seabios_version' './roms/seabios' pushd './roms/seabios' %patch -P 1433197926 -p1 %patch -P 1477411781 -p1 %patch -P 1531663514 -p1 %patch -P 1432052479 -p1 %patch -P 1595431900 -p1 %patch -P 1621549128 -p1 %patch -P 1426804471 -p1 popd rm -rf './roms/ipxe' mkdir -vp './roms' mv -v '%_sourcedir/ipxe-%ipxe_version' './roms/ipxe' pushd './roms/ipxe' %patch -P 1484818598 -p1 popd rm -rf './roms/sgabios' mkdir -vp './roms' mv -v '%_sourcedir/sgabios-%sgabios_version' './roms/sgabios' if pushd subprojects/packagefiles 2>/dev/null then for prj in * do if pushd "${prj}" > /dev/null then for f in * do test -f "${f}" || continue ln -vt "../../${prj}/" * break done popd > /dev/null fi done popd > /dev/null fi %build echo "%{seabios_revision_full}" > roms/seabios/.version test -x "$(type -P gcc)" && CC=$_ test -x "$(type -P gcc-4.6)" && CC=$_ test -x "$(type -P gcc-4.7)" && CC=$_ test -x "$(type -P gcc-4.8)" && CC=$_ test -x "$(type -P cpp)" && CPP=$_ test -x "$(type -P cpp-4.6)" && CPP=$_ test -x "$(type -P cpp-4.7)" && CPP=$_ test -x "$(type -P cpp-4.8)" && CPP=$_ test -x "$(type -P g++)" && CXX=$_ test -x "$(type -P g++-4.6)" && CXX=$_ test -x "$(type -P g++-4.7)" && CXX=$_ test -x "$(type -P g++-4.8)" && CXX=$_ tee .env.sh <<_EOF_ CC=$CC CPP=$CPP CXX=$CXX _EOF_ . ./.env.sh # %ifarch %ix86 x86_64 target_list=" i386-softmmu x86_64-softmmu " %endif target_list="`echo ${target_list}| xargs`" test -n "${target_list}" XC_COMPAT=" -DXC_WANT_COMPAT_DEVICEMODEL_API=1 -DXC_WANT_COMPAT_EVTCHN_API=1 -DXC_WANT_COMPAT_GNTTAB_API=1 -DXC_WANT_COMPAT_MAP_FOREIGN_API=1 " XC_COMPAT="`echo ${XC_COMPAT} | xargs`" if \ bash \ ./configure \ --prefix=%_libdir/%name \ --localstatedir=%_localstatedir \ \ --cc="${CC}" \ --host-cc="${CC}" \ --cxx="${CXX}" \ --extra-cflags="%optflags ${XC_COMPAT}" \ --target-list="${target_list}" \ --audio-drv-list=alsa \ \ --iasl="$(type -P iasl)" \ --install="$(type -P install)" \ --objcc="$(type -P false)" \ --python="$(type -P python)" \ --with-system-pixman \ \ \ --disable-libnfs \ --disable-opengl \ --disable-rbd \ --disable-spice \ --disable-virglrenderer \ --disable-vte \ \ \ --disable-archipelago \ --enable-attr \ --disable-bluez \ --disable-brlapi \ --disable-bsd-user \ --enable-bzip2 \ --enable-cap-ng \ --disable-cocoa \ --enable-coroutine-pool \ --enable-curl \ --enable-curses \ --disable-debug-info \ --disable-debug-tcg \ --enable-docs \ --disable-fdt \ --enable-gcrypt \ --disable-glusterfs \ --enable-gnutls \ --enable-gtk \ --disable-guest-agent \ --disable-guest-agent-msi \ --disable-jemalloc \ --enable-kvm \ --disable-libiscsi \ %if %{with libnfs} --enable-libnfs \ %endif --enable-libssh2 \ --enable-libusb \ --enable-linux-aio \ --disable-linux-user \ --disable-lzo \ --enable-modules \ --disable-netmap \ --disable-nettle \ --enable-numa \ %if %{with qemu_opengl} --enable-opengl \ %endif --enable-pie \ --disable-qom-cast-debug \ %if %{with librbd} --enable-rbd \ %endif --disable-rdma \ --disable-sdl \ --disable-seccomp \ --disable-slirp \ --disable-smartcard \ --disable-snappy \ --disable-sparse \ %if %{with spice} --enable-spice \ %endif --enable-stack-protector \ --disable-strip \ --enable-system \ --disable-tcg-interpreter \ --disable-tcmalloc \ --enable-tools \ --disable-tpm \ --enable-usb-redir \ --disable-user \ --enable-uuid \ --enable-vde \ --enable-vhdx \ --enable-vhost-net \ --enable-vhost-scsi \ %if %{with virglrenderer} --enable-virglrenderer \ %endif --enable-virtfs \ --enable-vnc \ --disable-vnc-jpeg \ --enable-vnc-png \ --disable-vnc-sasl \ %if %{with qemu_vte} --enable-vte \ %endif --disable-werror \ --enable-xen \ --enable-xen-pci-passthrough \ --enable-xfsctl \ %nil then : success else cat config.log exit 1 fi V=V=1 make %{?_smp_mflags} ${V} %ifarch x86_64 pushd pc-bios/optionrom cp --remove-destination -avt .. \ kvmvapic.bin \ linuxboot.bin \ multiboot.bin \ %nil popd efirom= %if 0 test -x "$(type -P EfiRom)" && efirom=efirom %endif make -C roms ${V} CC="${CC}" sgabios BUILD_DATE='\"date\"' BUILD_SHORT_DATE='\"short_date\"' BUILD_HOST='\"host\"' BUILD_USER='\"user\"' make %{?_smp_mflags} -C roms ${V} CC="${CC}" bios seavgabios pxerom ${efirom} HOST_CC=${CC} CPP="${CPP}" SEABIOS_VERSION='-%_project/%name' %endif %install . ./.env.sh touch -r config-host.mak pc-bios %make_install find %buildroot -ls find %buildroot -name "*.la" -print -delete pushd %buildroot%_libdir/%name rm -rfv \ share/applications \ share/icons \ share/locale \ %nil pushd share/qemu non_x86=( QEMU,cgthree.bin QEMU,tcx.bin bamboo.dtb canyonlands.dtb hppa-firmware.img npcm7xx_bootrom.bin openbios-ppc openbios-sparc32 openbios-sparc64 opensbi-riscv32-*.bin opensbi-riscv64-*.bin palcode-clipper petalogix-ml605.dtb petalogix-s3adsp1800.dtb qemu-nsis.bmp qemu_vga.ndrv s390-ccw.img s390-netboot.img skiboot.lid slof.bin u-boot-sam460-20100605.bin u-boot.e500 vof*.bin edk2-licenses.txt *aarch64*.fd *arm*.fd firmware/*aarch64*.json firmware/*arm*.json ) rm -fv "${non_x86[@]}" popd popd %fdupes %buildroot %files %defattr(-, root, root) %_libdir/%name %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor