Name: uke-waydroid-integration Version: 0.1.0 Release: 9%{?dist} Summary: Waydroid Binderfs, graphics and media integration for Uke License: MIT AND BSD-2-Clause AND BSD-3-Clause AND Apache-2.0 URL: https://github.com/MCC45TR/uke-linux-hardware-support/tree/main/uke-waydroid Source0: %{name}-%{version}.tar.xz Source1: uke-waydroid-diagnostics-0.1.0.tar.xz Source2: integration-parent.recipe Source3: diagnostics-parent.recipe Source4: diagnostics-fold.json ExclusiveArch: aarch64 BuildRequires: clang lld binutils glslang %global debug_package %{nil} %global _build_id_links none # Only this Android/Bionic ELF is excluded from host ABI dependencies. %global __requires_exclude_from ^/var/lib/waydroid/overlay/system/bin/uke-vulkan-check$ %global __provides_exclude_from ^/var/lib/waydroid/overlay/system/bin/uke-vulkan-check$ BuildRequires: gcc-c++ pkgconf-pkg-config qt6-qtbase-devel e2fsprogs-devel BuildRequires: e2fsprogs Requires: waydroid waydroid-selinux selinux-policy-targeted Requires(post): /usr/bin/semodule Requires(post): /usr/bin/systemd-tmpfiles Requires: coreutils gawk Provides: uke-waydroid-diagnostics = %{version}-%{release} Obsoletes: uke-waydroid-diagnostics < 0.1.0-4 Requires: (uke-kernel-default(waydroid-netd) >= 1 if senemos-uke-linux-kernel-mainline-unstable-singleboot) Requires(postun): /usr/bin/semodule Supplements: (waydroid and uke-core-meta) %description Label Waydroid's three dynamically allocated anbox Binder devices with the existing Fedora binder_device_t type. The original Waydroid SELinux module then applies its existing device permissions. A directory-read permission and three tmpfiles aliases support allocation and startup after reboot. The packaged desktop preference enables separate Wayland application windows. The original application and kernel remain distribution components. %prep %setup -q tar -xJf %{SOURCE1} printf '%s %s\n' a0838048d75c6e40d13d41adae7b807b7624c2df6835891e3d75273986204ba8 %{SOURCE2} | sha256sum -c --strict - printf '%s %s\n' 35e3fa65cc00cb4893aa79449db23ab252030c7fa14b018b1ca35df690737f73 %{SOURCE3} | sha256sum -c --strict - %build # The COPR source worker links this CIL against the complete Fedora policy # using semodule -n. Binary packaging does not load policy in the worker. g++ %{optflags} -fPIC -std=c++20 %{build_ldflags} \ $(pkg-config --cflags Qt6Core Qt6Xml ext2fs) \ uke-waydroid/runtime/omx-overlay.cpp -o uke-waydroid-media-prepare \ $(pkg-config --libs Qt6Core Qt6Xml ext2fs) g++ %{optflags} -fPIC -std=c++20 %{build_ldflags} -DUKE_OMX_FIXTURES \ $(pkg-config --cflags Qt6Core Qt6Xml ext2fs) \ uke-waydroid/runtime/omx-overlay.cpp -o omx-fixtures \ $(pkg-config --libs Qt6Core Qt6Xml ext2fs) # BEGIN folded Android diagnostic build ( cd uke-waydroid-diagnostics-0.1.0 sdk="$PWD/sysroot" libs="$sdk/usr/lib/aarch64-linux-android/30" glslangValidator --target-env vulkan1.1 --spirv-val --vn uke_triangle_vertex -o triangle-vertex.h triangle.vert glslangValidator --target-env vulkan1.1 --spirv-val --vn uke_triangle_fragment -o triangle-fragment.h triangle.frag clang++ --target=aarch64-linux-android30 --sysroot="$sdk" -fuse-ld=lld \ -std=c++17 -O2 -Wall -Wextra -Werror -fno-exceptions -fno-rtti \ -nostdlib -nostdinc++ -fPIE -pie -Wl,-z,relro,-z,now,-z,max-page-size=16384 \ -Wl,--dynamic-linker=/system/bin/linker64 -Wl,--no-undefined \ -isystem "$sdk/usr/include/aarch64-linux-android" -isystem "$sdk/usr/include" \ "$libs/crtbegin_dynamic.o" vulkan-check.cpp -L"$libs" -lvulkan -lc -ldl \ "$libs/crtend_android.o" -o uke-vulkan-check ) # END folded Android diagnostic build %install install -Dm0644 uke-waydroid/selinux/uke_waydroid_binder.cil \ %{buildroot}%{_datadir}/selinux/packages/uke_waydroid_binder.cil install -Dm0644 uke-waydroid/config/uke-waydroid.conf \ %{buildroot}%{_prefix}/lib/tmpfiles.d/uke-waydroid.conf install -Dm0644 uke-waydroid/config/50-uke-waydroid.conf \ %{buildroot}%{_prefix}/lib/systemd/system/waydroid-container.service.d/50-uke-waydroid.conf install -Dm0644 uke-waydroid/config/uke-defaults.conf \ %{buildroot}%{_sysconfdir}/waydroid/uke-defaults.conf install -Dm0755 uke-waydroid/runtime/uke-waydroid-prepare \ %{buildroot}%{_libexecdir}/uke-waydroid-prepare install -Dm0755 uke-waydroid-media-prepare \ %{buildroot}%{_libexecdir}/uke-waydroid-media-prepare # BEGIN folded Android diagnostic install ( cd uke-waydroid-diagnostics-0.1.0 install -Dm0755 uke-vulkan-check \ %{buildroot}/var/lib/waydroid/overlay/system/bin/uke-vulkan-check ) # END folded Android diagnostic install install -Dm0644 uke-waydroid-diagnostics-0.1.0/LICENSE %{buildroot}%{_datadir}/licenses/uke-waydroid-diagnostics/LICENSE install -Dm0644 uke-waydroid-diagnostics-0.1.0/NDK-NOTICE %{buildroot}%{_datadir}/licenses/uke-waydroid-diagnostics/NDK-NOTICE install -Dm0644 uke-waydroid-diagnostics-0.1.0/source-commit %{buildroot}%{_datadir}/doc/uke-waydroid-diagnostics/source-commit install -Dm0644 uke-waydroid-diagnostics-0.1.0/ndk-source.properties %{buildroot}%{_datadir}/doc/uke-waydroid-diagnostics/ndk-source.properties %check cmp uke-waydroid/selinux/uke_waydroid_binder.cil \ %{buildroot}%{_datadir}/selinux/packages/uke_waydroid_binder.cil cmp uke-waydroid/config/uke-waydroid.conf \ %{buildroot}%{_prefix}/lib/tmpfiles.d/uke-waydroid.conf cmp uke-waydroid/config/50-uke-waydroid.conf \ %{buildroot}%{_prefix}/lib/systemd/system/waydroid-container.service.d/50-uke-waydroid.conf cmp uke-waydroid/runtime/uke-waydroid-prepare \ %{buildroot}%{_libexecdir}/uke-waydroid-prepare sh uke-waydroid/tests/prepare.sh sh uke-waydroid/tests/omx-overlay.sh "$PWD/omx-fixtures" # BEGIN folded Android diagnostic check ( cd uke-waydroid-diagnostics-0.1.0 readelf -h uke-vulkan-check | grep -F AArch64 readelf -l uke-vulkan-check | grep -F '/system/bin/linker64' readelf -d uke-vulkan-check | grep -F '[libvulkan.so]' readelf -d uke-vulkan-check | grep -F '[libc.so]' # Fedora strips non-runtime ELF metadata after installation. Verify the actual # executable code, constants, dynamic symbols and relocations instead. for section in .text .rodata .dynamic .dynsym .dynstr .rela.plt; do readelf -x "$section" uke-vulkan-check > expected-section readelf -x "$section" %{buildroot}/var/lib/waydroid/overlay/system/bin/uke-vulkan-check > installed-section cmp expected-section installed-section done ) # END folded Android diagnostic check printf 'Waydroid fold: retained host tests and Android ELF checks pass; no container acceptance.\n' %post %{_bindir}/semodule -X 400 -i %{_datadir}/selinux/packages/uke_waydroid_binder.cil || exit 1 %{_bindir}/systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/uke-waydroid.conf || exit 1 %{_libexecdir}/uke-waydroid-prepare || exit 1 %{_bindir}/systemctl daemon-reload %postun if [ "$1" -eq 0 ]; then %{_bindir}/semodule -X 400 -r uke_waydroid_binder || exit 1 fi %{_bindir}/systemctl daemon-reload %files %doc uke-waydroid/README.md %license uke-waydroid/LICENSE %{_datadir}/selinux/packages/uke_waydroid_binder.cil %{_prefix}/lib/tmpfiles.d/uke-waydroid.conf %{_prefix}/lib/systemd/system/waydroid-container.service.d/50-uke-waydroid.conf %config(noreplace) %{_sysconfdir}/waydroid/uke-defaults.conf %{_libexecdir}/uke-waydroid-prepare %{_libexecdir}/uke-waydroid-media-prepare # Existing diagnostic paths retain their contents and gain one RPM owner. %{_datadir}/licenses/uke-waydroid-diagnostics/ %{_datadir}/doc/uke-waydroid-diagnostics/ /var/lib/waydroid/overlay/system/bin/uke-vulkan-check %changelog * Tue Nov 10 2026 Uke contributors - 0.1.0-9 - Include the unchanged manual Vulkan checker in the existing integration RPM. - Preserve Android ABI, NDK notices, host policy and media preparation. * Thu Nov 05 2026 Uke contributors - 0.1.0-8 - Omit the absent ARM64-only OMX service through an owned pre-mount overlay. - Prefer the existing Codec2 software stack without changing Android images. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-7 - Require a network-capable selected profile on the Uke unstable channel. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-6 - Deliver the Android Vulkan qualification tool with a normal DNF update. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-5 - Align the Uke Android Mesa UBWC hint with the host and select native Turnip. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-4 - Use Fedora's normalized interpreter path and order startup after Binderfs. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-3 - Persist desktop window integration through the original Waydroid properties. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-2 - Permit Binderfs enumeration and create the three aliases before daemon startup. * Wed Nov 04 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 0.1.0-1 - Label the three dynamic Waydroid Binder device paths with Fedora's Binder type.