%global branch 24.08 %global version 24.08.2 %global llvm_major 18 %global llvm_version 18.1.8 # Check for updates with: # flatpak remote-info --arch=x86_64 flathub org.freedesktop.Platform//24.08 # flatpak remote-info --arch=x86_64 flathub org.freedesktop.Sdk//24.08 # flatpak remote-info --arch=x86_64 flathub org.freedesktop.Sdk.Extension.llvm18//24.08 %ifarch aarch64 %global platform_commit ad3083106a88505c4a1f0e2bd5fca844b8cb967bd5b96f523c5be979f9d46750 %global sdk_commit 50add9eb717cd1e60a28f575c3cd12965942aea892b335f1eaae8c0c6dce48f1 %global llvm_commit 397caa18dc7859e935316eadd8116cb6b541e30e37e7165925021432d8c850a4 %endif %ifarch x86_64 %global platform_commit 3eead0add96eea28fd9115c3e49eff55503edf7b2d1c543bc16d89a35fcddfb8 %global sdk_commit c18a20191586d7bad6c0e071a6d3e0606e480dfd4b74e9c33a33cb36ceb5b19f %global llvm_commit b4df7e54e59a4121693c0b2bbdf01f1baff078eaa4f53410124f6fdad69596f7 %endif Name: fdo-sdk-%{branch}-flatpak Summary: Flatpak Freedesktop SDK Version: %{version} Release: 1 License: MIT AND Apache-2.0 WITH LLVM-exception URL: https://freedesktop-sdk.gitlab.io/ BuildRequires: flatpak BuildArch: aarch64 x86_64 %{ix86} %description %{summary}. %package -n fdo-runtime-%{branch}-flatpak Summary: Flatpak Freedesktop Runtime %description -n fdo-runtime-%{branch}-flatpak %{summary}. %package -n fdo-sdk-extension-llvm%{llvm_major}-%{branch}-flatpak Version: %{llvm_version} Summary: Flatpak Freedesktop SDK llvm%{llvm_major} extension %description -n fdo-sdk-extension-llvm%{llvm_major}-%{branch}-flatpak %{summary}. %prep flatpak remote-add --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak remote-modify --user --collection-id=org.flathub.Stable flathub %build flatpak install --assumeyes --no-deps --no-related --user flathub org.freedesktop.Platform//%{branch} flatpak update --assumeyes --no-deps --no-related --user --commit=%{platform_commit} org.freedesktop.Platform//%{branch} flatpak install --assumeyes --no-deps --no-related --user flathub org.freedesktop.Sdk//%{branch} flatpak update --assumeyes --no-deps --no-related --user --commit=%{sdk_commit} org.freedesktop.Sdk//%{branch} flatpak install --assumeyes --no-deps --no-related --user flathub org.freedesktop.Sdk.Extension.llvm%{llvm_major}//%{branch} flatpak update --assumeyes --no-deps --no-related --user --commit=%{llvm_commit} org.freedesktop.Sdk.Extension.llvm%{llvm_major}//%{branch} %install mkdir -p %{buildroot}%{_datadir}/flatpak-sideload/{fdo-sdk,fdo-runtime,fdo-sdk-extension-llvm%{llvm_major}}-%{branch} flatpak create-usb --user %{buildroot}%{_datadir}/flatpak-sideload/fdo-sdk-%{branch} org.freedesktop.Sdk//%{branch} flatpak create-usb --user %{buildroot}%{_datadir}/flatpak-sideload/fdo-runtime-%{branch} org.freedesktop.Platform//%{branch} flatpak create-usb --user %{buildroot}%{_datadir}/flatpak-sideload/fdo-sdk-extension-llvm%{llvm_major}-%{branch} org.freedesktop.Sdk.Extension.llvm%{llvm_major}//%{branch} %files %{_datadir}/flatpak-sideload/fdo-sdk-%branch %files -n fdo-runtime-%{branch}-flatpak %{_datadir}/flatpak-sideload/fdo-runtime-%branch %files -n fdo-sdk-extension-llvm%{llvm_major}-%{branch}-flatpak %{_datadir}/flatpak-sideload/fdo-sdk-extension-llvm%{llvm_major}-%branch %changelog * Wed Sep 25 2024 Janne Grunau - 24.08.2-1 - Update to fdo-sdk 24.08.02 * Mon Jul 15 2024 Hector Martin - 23.08.20-1 - Initial release