Name: uke-gbos-drm-composer-android Version: 17.0.0 Release: 1%{?dist} Summary: Android AArch64 DRM Composer 3 service and atom reporter License: Apache-2.0 AND MIT AND Apache-2.0 WITH LLVM-exception URL: https://android.googlesource.com/platform/external/drm_hwcomposer/ Source0: %{name}-%{version}.tar.gz Source1: build-drm-composer-android.sh Source2: uke-gbos-minigbm-android-17.0.0.tar.gz Source3: uke-gbos-allocator-aidl-android-17.0.0.tar.gz Source4: uke-gbos-minigbm-hal-android-17.0.0.tar.gz ExclusiveArch: x86_64 AutoReqProv: no BuildRequires: bash BuildRequires: binutils BuildRequires: clang BuildRequires: curl BuildRequires: lld BuildRequires: python3 BuildRequires: unzip %global debug_package %{nil} %global __os_install_post %{nil} %description Carries the AOSP DRM Composer service with Composer 3 AIDL v5 and the default atom reporter. The Android vendor runtime supplies the DRM, graphics, Binder and Bionic libraries. %prep %autosetup sha256sum --check --strict INPUTS.sha256 printf '%%s %%s\n' \ 90060130aa791493529cd6116d66d9295257f46d3451c5054adfc117f8ecc782 %{SOURCE2} \ 98d711fd2f00246f3b306c2a50bfc22298ded55aeaa6551c5f503ca220202f13 %{SOURCE3} \ 3da81b6249f93c2fcdcb3377e1dfdf0a93cb4161cf00ec54f88a579db39291b4 %{SOURCE4} | sha256sum --check --strict - mkdir minigbm-source android-platform hal-source tar -xzf %{SOURCE2} --strip-components=1 -C minigbm-source tar -xzf %{SOURCE3} --strip-components=1 -C android-platform tar -xzf %{SOURCE4} --strip-components=1 -C hal-source (cd minigbm-source && sha256sum --check --strict INPUTS.sha256) (cd android-platform && sha256sum --check --strict INPUTS.sha256) (cd hal-source && sha256sum --check --strict INPUTS.sha256) %build ndk_archive=android-ndk-r30-linux.zip test "$(df -B1 --output=avail . | tail -n1)" -gt 2147483648 curl -qfsSL --proto '=https' --retry 1 --max-time 140 --max-filesize 738633529 \ https://dl.google.com/android/repository/android-ndk-r30-linux.zip -o "$ndk_archive" test "$(stat -c %%s "$ndk_archive")" = 738633529 printf '%%s %%s\n' 753611f410d002cfcd3f3dc2ef49aad532089d3180b436c060a90bf0fcb64df2 "$ndk_archive" | sha256sum --check --strict - toolchain=android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64 unzip -q "$ndk_archive" "$toolchain/sysroot/usr/include/*" \ "$toolchain/sysroot/usr/lib/aarch64-linux-android/37/*" \ "$toolchain/lib/clang/21/lib/linux/libclang_rt.builtins-aarch64-android.a" bash %{SOURCE1} inputs minigbm-source/inputs android-platform/inputs hal-source/inputs android-ndk-r30 output %install target="%{buildroot}%{_datadir}/%{name}" install -d "$target/bin/hw" "$target/lib64" install -m755 output/bin/hw/android.hardware.composer.hwc3-service.drm "$target/bin/hw/" install -m644 output/lib64/drm_hwcomposer_atom_reporter.so "$target/lib64/" install -m644 output/SHA256SUMS output/*.needed "$target/" %check (cd output && sha256sum --check --strict SHA256SUMS) %files %license output/DRM-HWCOMPOSER-LICENSE output/LIBDISPLAY-INFO-LICENSE android-platform/inputs/notices/LLVM-NOTICE.txt %{_datadir}/%{name} %changelog * Sun Nov 29 2026 MCC45TR <75160848+MCC45TR@users.noreply.github.com> - 17.0.0-1 - Build the AOSP DRM Composer service and default reporter for Android AArch64.