File waydroid-image-vanilla.spec of Package waydroid-image-vanilla

#
# spec file for package waydroid-image
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define lineagever 20.0
%define buildver 20250726

Name:           waydroid-image
Version:        %{lineagever}.%{buildver}
Release:        2
Summary:        LineageOS-based Android images for Waydroid
License:        LGPL-3.0-only
URL:            https://sourceforge.net/projects/waydroid/files/images/

Source0: https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86_64/lineage-%{lineagever}-%{buildver}-VANILLA-waydroid_x86_64-system.zip
Source1: https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86_64/lineage-%{lineagever}-%{buildver}-MAINLINE-waydroid_x86_64-vendor.zip
Source2: https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_arm64/lineage-%{lineagever}-%{buildver}-VANILLA-waydroid_arm64-system.zip
Source3: https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_arm64/lineage-%{lineagever}-%{buildver}-MAINLINE-waydroid_arm64-vendor.zip

BuildRequires:  unzip
Requires:       waydroid
Requires:       %{name}-system
Requires:       %{name}-vendor

%description
LineageOS-based Android images for Waydroid

%package vendor
Summary: %{summary}
Provides: waydroid(images/vendor.img)

%description vendor
LineageOS-based Android images for Waydroid (vendor)

%package system
Summary: %{summary}
Provides: waydroid(images/system.img)

%description system
LineageOS-based Android images for Waydroid (system)

%{!?x86_64:%define x86_64 x86_64}
%{!?arm64:%define arm64 aarch64}

ExclusiveArch: %{?x86_64} %{?arm64}

%ifarch %{x86_64}
%define wayarch x86_64
%define sys 0
%define ven 1
%elifarch %{arm64}
%define wayarch arm64
%define sys 2
%define ven 3
%endif

%prep
%setup -q -c -T -a %{sys} -a %{ven}

%install
%{__install} -dm755 %{buildroot}%{_datadir}/waydroid-extra/images
mv system.img %{buildroot}%{_datadir}/waydroid-extra/images
mv vendor.img %{buildroot}%{_datadir}/waydroid-extra/images

%files system
%dir %{_datadir}/waydroid-extra
%dir %{_datadir}/waydroid-extra/images
%{_datadir}/waydroid-extra/images/system.img

%files vendor
%dir %{_datadir}/waydroid-extra
%dir %{_datadir}/waydroid-extra/images
%{_datadir}/waydroid-extra/images/vendor.img

%files

%changelog
* Fri Aug 29 2025 itachi_re <xanbenson99@gmail.com> - %{lineagever}.%{buildver}
- Maintain an package %{name}
openSUSE Build Service is sponsored by