X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=qemu.spec;h=a5109914bbced2d10e338d0242c679e8f23f745b;hb=refs%2Fheads%2Fmaster;hp=2689500ec2fc0a953ffebb5f434594daa539e717;hpb=a7e785922160fb6314b1a11d5e68ecc15f06b3ec;p=packages%2Fqemu.git diff --git a/qemu.spec b/qemu.spec index 2689500..06eb502 100644 --- a/qemu.spec +++ b/qemu.spec @@ -4,6 +4,7 @@ # Conditional build: %bcond_without sdl # SDL UI and audio support %bcond_without opengl # Don't require GL deps +%bcond_with canokey # CanoKey support %bcond_with ceph # Ceph/RBD support %bcond_without glusterfs # GlusterFS backend %bcond_without rdma # RDMA-based migration support @@ -18,12 +19,14 @@ %bcond_without iscsi # iscsi support %bcond_without libnfs # NFS support %bcond_without multipath # Multipath support +%bcond_with pipewire # pipewire support %bcond_without pmem # libpmem (persistent memory) support %bcond_without seccomp # seccomp support %bcond_without usbredir # usb network redirection support %bcond_without system_seabios # system seabios binary %bcond_without snappy # snappy compression library %bcond_without user_static # build linux-user static packages +%bcond_with vfio_user # vfio-user server support %bcond_with lttng # lttng-ust trace backend support [needs update] %bcond_without systemtap # SystemTap/dtrace trace backend support %bcond_without virgl # build virgl support @@ -43,12 +46,12 @@ Summary: QEMU CPU Emulator Summary(pl.UTF-8): QEMU - emulator procesora Name: qemu -Version: 8.0.3 +Version: 8.2.4 Release: 1 License: GPL v2, BSD (edk2 firmware files) Group: Applications/Emulators Source0: https://download.qemu.org/%{name}-%{version}.tar.xz -# Source0-md5: d41853bffb18878dd1ff7afc2eb41f1a +# Source0-md5: aa5c2f004d513b746f25a00cfec8eaa5 # Loads kvm kernel modules at boot Source3: kvm-modules-load.conf # Creates /dev/kvm @@ -61,12 +64,13 @@ Source10: ksmtuned.conf Source12: 99-%{name}-guest-agent.rules Source13: %{name}-guest-agent.init Source14: %{name}-guest-agent.logrotate -Patch0: %{name}-no-fortify.patch -Patch2: %{name}-execve.patch -Patch3: %{name}-xattr.patch -Patch4: libjpeg-boolean.patch +Patch0: %{name}-cflags.patch +Patch2: %{name}-xattr.patch +Patch3: libjpeg-boolean.patch Patch5: %{name}-u2f-emu.patch Patch6: %{name}-linux-mount.patch +Patch7: libvfio-user-types.patch +Patch8: libvfio-user-alloca.patch URL: https://www.qemu.org/ %{?with_opengl:BuildRequires: Mesa-libgbm-devel} %{?with_opengl:BuildRequires: OpenGL-GLX-devel} @@ -74,24 +78,28 @@ URL: https://www.qemu.org/ %{?with_sdl:BuildRequires: SDL2-devel >= 2.0} %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0} BuildRequires: alsa-lib-devel +BuildRequires: bison %{?with_brlapi:BuildRequires: brlapi-devel} BuildRequires: bzip2-devel +%{?with_canokey:BuildRequires: canokey-qemu-devel} BuildRequires: capstone-devel >= 4.0 %{?with_ceph:BuildRequires: ceph-devel >= 12} BuildRequires: curl-devel >= 7.29.0 BuildRequires: cyrus-sasl-devel >= 2 BuildRequires: daxctl-devel >= 57 +BuildRequires: flex BuildRequires: gcc >= 6:7.4 BuildRequires: gettext-tools -BuildRequires: glib2-devel >= 1:2.64 +BuildRequires: glib2-devel >= 1:2.75.3 # minimal is 3.4 but new features are used up to 6 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6} BuildRequires: gnutls-devel >= 3.6.14 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0} BuildRequires: jack-audio-connection-kit-devel -# for tests -#BuildRequires: keyutils-devel +%{?with_vfio_user:BuildRequires: json-c-devel >= 0.11} +BuildRequires: keyutils-devel BuildRequires: libaio-devel +BuildRequires: libblkio-devel >= 1.3.0 BuildRequires: libbpf-devel %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1} BuildRequires: libcap-ng-devel @@ -109,6 +117,8 @@ BuildRequires: libpng-devel >= 2:1.6.34 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0} BuildRequires: libselinux-devel BuildRequires: libssh-devel >= 0.8.7 +BuildRequires: libslirp-devel >= 4.7 +BuildRequires: libstdc++-devel >= 6:4.7 # for tests only #BuildRequires: libtasn1-devel BuildRequires: libu2f-emu-devel @@ -119,32 +129,34 @@ BuildRequires: libxml2-devel >= 2.0 %{?with_lttng:BuildRequires: lttng-ust-devel >= 2.1} BuildRequires: lzfse-devel BuildRequires: lzo-devel >= 2 -BuildRequires: meson >= 0.59.3 +BuildRequires: meson >= 0.63.0 %{?with_multipath:BuildRequires: multipath-tools-devel} BuildRequires: ncurses-devel # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle BuildRequires: nettle-devel >= 3.4 -BuildRequires: ninja +BuildRequires: ninja >= 1.5 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8} BuildRequires: numactl-devel BuildRequires: pam-devel BuildRequires: perl-Encode BuildRequires: perl-tools-pod +%{?with_pipewire:BuildRequires: pipewire-devel >= 0.3.60} BuildRequires: pixman-devel >= 0.21.8 BuildRequires: pkgconfig %{?with_pmem:BuildRequires: pmdk-devel} %{?with_pulseaudio:BuildRequires: pulseaudio-devel} -BuildRequires: python3 >= 1:3.6 -BuildRequires: python3-sphinx_rtd_theme +BuildRequires: python3 >= 1:3.7 +BuildRequires: python3-sphinx_rtd_theme >= 0.5 +BuildRequires: python3-tomli >= 1.2.0 BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.644 %{?with_system_seabios:BuildRequires: seabios} BuildRequires: sed >= 4.0 %{?with_snappy:BuildRequires: snappy-devel} -BuildRequires: sphinx-pdg +BuildRequires: sphinx-pdg >= 1.6 %if %{with spice} -BuildRequires: spice-protocol >= 0.12.3 -BuildRequires: spice-server-devel >= 0.12.5 +BuildRequires: spice-protocol >= 0.14.0 +BuildRequires: spice-server-devel >= 0.14.0 %endif %{?with_systemtap:BuildRequires: systemtap-sdt-devel} BuildRequires: tar >= 1:1.22 @@ -170,8 +182,9 @@ BuildRequires: xz BuildRequires: zlib-devel BuildRequires: zstd-devel >= 1.4.0 %if %{with user_static} -BuildRequires: glib2-static >= 1:2.74 +BuildRequires: glib2-static >= 1:2.75.3 BuildRequires: glibc-static +BuildRequires: libstdc++-static >= 6:4.7 BuildRequires: pcre2-8-static >= 10.32 BuildRequires: zlib-static %endif @@ -213,11 +226,12 @@ Requires: libpng >= 2:1.6.34 \ %if %{with seccomp} \ Requires: libseccomp >= 2.3.0 \ %endif \ +Requires: libslirp >= 4.7 \ Requires: liburing >= 0.3 \ Requires: libusb >= 1.0.22 \ Requires: pixman >= 0.21.8 \ %if %{with spice} \ -Requires: spice-server-libs >= 0.12.5 \ +Requires: spice-server-libs >= 0.14.0 \ %endif \ %if %{with usbredir} \ Requires: usbredir >= 0.6 \ @@ -268,12 +282,14 @@ Requires(pre): /bin/id Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd -Requires: glib2 >= 1:2.64 +Requires: glib2 >= 1:2.75.3 Requires: gnutls-libs >= 3.6.14 %{?with_gtk3:Requires: gtk+3 >= 3.22.0} +Requires: libblkio >= 1.3.0 Requires: nettle >= 3.4 %{?with_vte:Requires: vte >= 0.32.0} Requires: zstd >= 1.4.0 +Suggests: virtiofsd Provides: group(qemu) Provides: user(qemu) Obsoletes: qemu-kvm-common < 2 @@ -493,25 +509,6 @@ dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC). -%package system-loongarch -Summary: QEMU system emulator for Loongson -Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Loongson -Group: Applications/Emulators -Requires: %{name}-common = %{version}-%{release} -%systempkg_req - -%description system-loongarch -QEMU is a generic and open source processor emulator which achieves a -good emulation speed by using dynamic translation. - -This package provides the system emulator with Loongson CPU. - -%description system-loongarch -l pl.UTF-8 -QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający -dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. - -Ten pakiet zawiera emulator systemu z procesorem Loongson. - %package system-m68k Summary: QEMU system emulator for m68k Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k @@ -775,7 +772,8 @@ Summary: QEMU system emulator for x86 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86 Group: Applications/Emulators Requires: %{name}-common = %{version}-%{release} -%{?with_system_seabios:Requires: seabios} +%{?with_vfio_user:Requires: libvfio-user = %{version}-%{release}} +%{?with_system_seabios:Requires: seabios >= 1.11.0} %systempkg_req Obsoletes: kvm < 89 Obsoletes: qemu-kvm-system-x86 < 2 @@ -816,7 +814,7 @@ Ten pakiet zawiera emulator systemu z procesorem Xtensa. Summary: QEMU guest agent Summary(pl.UTF-8): Agent gościa QEMU Group: Daemons -Requires: glib2 >= 1:2.64 +Requires: glib2 >= 1:2.75.3 Requires: liburing >= 0.3 Obsoletes: qemu-kvm-guest-agent < 2 Conflicts: SysVinit < 2.96-2 @@ -853,6 +851,19 @@ QEMU module for JACK audio output. %description module-audio-jack -l pl.UTF-8 Moduł QEMU z wyjściem dźwięku JACK. +%package module-audio-pipewire +Summary: QEMU module for PipeWire audio output +Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku PipeWire +Group: Applications/Emulators +Requires: %{name}-common = %{version}-%{release} +Requires: pipewire-libs >= 0.3.60 + +%description module-audio-pipewire +QEMU module for PipeWire audio output. + +%description module-audio-pipewire -l pl.UTF-8 +Moduł QEMU z wyjściem dźwięku PipeWire. + %package module-block-curl Summary: QEMU module for 'curl' block devices Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl' @@ -988,14 +999,44 @@ systemtap/dtrace probes for QEMU. %description -n systemtap-qemu -l pl.UTF-8 Sondy systemtap/dtrace dla QEMU. +%package -n libvfio-user +Summary: vfio-user library +Summary(pl.UTF-8): Biblioteka vfio-user +Group: Libraries +Requires: json-c >= 0.11 + +%description -n libvfio-user +vfio-user is a framework that allows implementing PCI devices in +userspace. Clients (such as qemu) talk the vfio-user protocol over a +UNIX socket to a server. This library, libvfio-user, provides an API +for implementing such servers. + +%description -n libvfio-user -l pl.UTF-8 +vfio-user to szkielet pozwalający implementować urządzenia PCI w +przestrzeni użytkownika. Klienci (jak qemu) komunikują się z serwerem +protokołem vfio-user przez gniazdo uniksowe. + +%package -n libvfio-user-devel +Summary: Header files for vfio-user library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vfio-user +Group: Development/Libraries +Requires: libvfio-user = %{version}-%{release} + +%description -n libvfio-user-devel +Header files for vfio-user library. + +%description -n libvfio-user-devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki vfio-user. + %prep %setup -q %patch0 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 +%patch8 -p1 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap @@ -1003,6 +1044,18 @@ Sondy systemtap/dtrace dla QEMU. # don't require stap binary during build %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build %endif + +%if %{without smartcard} +%{__sed} -i -e '/^config USB_SMARTCARD/,/^$/ s/default y/default n/' hw/usb/Kconfig +%endif +%ifarch x32 +# xen-emu supports only LP64 __x86_64__ case +%{__sed} -i -e '/^config XEN_EMU/,$ s/default y/default n/' hw/i386/Kconfig + +# plain x32 doesn't provide __sync_bool_compare_and_swap_16 - fail int128_t/ATOMIC128 tests earlier +%{__sed} -i -e '/^has_int128_type = / s/$/FAILME/' meson.build +%endif + %build build() { @@ -1028,8 +1081,7 @@ build() { "$@" %{__make} \ - V=1 \ - %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} + V=1 cd .. } @@ -1040,6 +1092,7 @@ build dynamic \ --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \ --enable-attr \ %{__enable_disable brlapi} \ + %{__enable_disable canokey} \ --enable-cap-ng \ --enable-capstone \ --enable-curl \ @@ -1050,6 +1103,7 @@ build dynamic \ %{!?with_gtk3:--disable-gtk} \ %{__enable_disable iscsi libiscsi} \ %{__enable_disable libnfs} \ + %{__enable_disable pipewire} \ %{__enable_disable pmem libpmem} \ --enable-lzo \ %{__enable_disable multipath mpath} \ @@ -1060,12 +1114,14 @@ build dynamic \ %{__enable_disable rdma} \ %{__enable_disable sdl} \ %{__enable_disable seccomp} \ + --enable-slirp \ %{__enable_disable spice} \ %{__enable_disable smartcard} \ %{__enable_disable snappy} \ --enable-tpm \ %{__enable_disable usbredir usb-redir} \ --enable-vde \ + %{?with_vfio_user:--enable-vfio-user-server} \ %{__enable_disable virgl virglrenderer} \ --enable-virtfs \ --enable-vnc-jpeg \ @@ -1077,6 +1133,7 @@ build dynamic \ %if %{with user_static} build static \ --disable-brlapi \ + --disable-canokey \ --disable-cap-ng \ --disable-capstone \ --disable-curl \ @@ -1112,7 +1169,6 @@ install -d \ %if %{with user_static} %{__make} -C build-static install \ - %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \ DESTDIR=$RPM_BUILD_ROOT # Give all QEMU user emulators a -static suffix @@ -1123,7 +1179,6 @@ done %endif %{__make} -C build-dynamic install \ - %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \ DESTDIR=$RPM_BUILD_ROOT # let rpm generate dependencies @@ -1150,7 +1205,6 @@ install -p ksmctl $RPM_BUILD_ROOT%{_sbindir} install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf -# For the qemu-guest-agent subpackage install the udev rules. install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga @@ -1208,6 +1262,9 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del qemu-ga fi +%post -n libvfio-user -p /sbin/ldconfig +%postun -n libvfio-user -p /sbin/ldconfig + %files %defattr(644,root,root,755) @@ -1237,8 +1294,11 @@ fi %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper %dir %{_libdir}/%{name} # modules without too many external dependencies +%attr(755,root,root) %{_libdir}/%{name}/block-blkio.so %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so +%attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so +%attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so %if %{with oss} %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so @@ -1246,27 +1306,32 @@ fi %if %{with pulseaudio} %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so %endif -%if %{with spice} -%attr(755,root,root) %{_libdir}/%{name}/audio-spice.so -%attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so -%attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so +%if %{with brlapi} +%attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so %endif +%attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so -%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so +%{?with_virgl:%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so} %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so -%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so +%{?with_virgl:%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so} %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so +%attr(755,root,root) %{_libdir}/%{name}/ui-curses.so +%if %{with usbredir} %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so +%endif +%if %{with smartcard} %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so -%attr(755,root,root) %{_libdir}/%{name}/ui-curses.so -%attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so +%endif %if %{with opengl} +%attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so %endif %if %{with spice} +%attr(755,root,root) %{_libdir}/%{name}/audio-spice.so +%attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so %endif @@ -1274,8 +1339,8 @@ fi %dir %{_datadir}/%{name}/firmware %{_datadir}/%{name}/keymaps %{_datadir}/%{name}/trace-events-all -%dir %{_datadir}/%{name}/vhost-user %if %{with virgl} +%dir %{_datadir}/%{name}/vhost-user %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json %endif %{_desktopdir}/qemu.desktop @@ -1384,9 +1449,7 @@ fi %attr(755,root,root) %{_bindir}/qemu-x86_64-static %attr(755,root,root) %{_bindir}/qemu-xtensa-static %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static -%if %{with systemtap} -%attr(755,root,root) %{_bindir}/qemu-trace-stap-static -%endif +%{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static} %endif %files system-aarch64 @@ -1411,6 +1474,7 @@ fi %files system-avr %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/qemu-system-avr + %files system-cris %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/qemu-system-cris @@ -1420,10 +1484,6 @@ fi %attr(755,root,root) %{_bindir}/qemu-system-hppa %{_datadir}/%{name}/hppa-firmware.img -%files system-loongarch -%defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/qemu-system-loongarch64 - %files system-m68k %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/qemu-system-m68k @@ -1435,6 +1495,7 @@ fi %files system-mips %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/qemu-system-loongarch64 %attr(755,root,root) %{_bindir}/qemu-system-mips %attr(755,root,root) %{_bindir}/qemu-system-mipsel %attr(755,root,root) %{_bindir}/qemu-system-mips64 @@ -1462,6 +1523,8 @@ fi %{_datadir}/%{name}/slof.bin %{_datadir}/%{name}/u-boot.e500 %{_datadir}/%{name}/u-boot-sam460-20100605.bin +%{_datadir}/%{name}/vof.bin +%{_datadir}/%{name}/vof-nvram.bin %files system-riscv32 %defattr(644,root,root,755) @@ -1505,8 +1568,6 @@ fi %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/qemu-system-i386 %attr(755,root,root) %{_bindir}/qemu-system-x86_64 -%attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so -%attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so %ifarch %{ix86} %{x8664} x32 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf /lib/udev/rules.d/80-kvm.rules @@ -1549,8 +1610,6 @@ fi %{_datadir}/%{name}/vgabios-stdvga.bin %{_datadir}/%{name}/vgabios-virtio.bin %{_datadir}/%{name}/vgabios-vmware.bin -%{_datadir}/%{name}/vof.bin -%{_datadir}/%{name}/vof-nvram.bin %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json %{_datadir}/%{name}/firmware/60-edk2-i386.json @@ -1574,6 +1633,12 @@ fi %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so +%if %{with pipewire} +%files module-audio-pipewire +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/%{name}/audio-pipewire.so +%endif + %files module-block-curl %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}/block-curl.so @@ -1631,3 +1696,15 @@ fi %{_datadir}/systemtap/tapset/qemu-*.stp %{_mandir}/man1/qemu-trace-stap.1* %endif + +%if %{with vfio_user} +%files -n libvfio-user +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvfio-user.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libvfio-user.so.0 + +%files -n libvfio-user-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvfio-user.so +%{_includedir}/vfio-user +%endif