File waydroid.spec of Package waydroid-0.0.1-5.8
#
# spec file for package waydroid
#
# Copyright (c) 2021 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/
#
Name: waydroid
Version: 0.0.1
Release: 5.8
Summary: Waydroid is a container-based approach to boot a full Android
License: LGPL-3.0-only
URL: https://github.com/waydroid/waydroid
Source0: %{name}-%{version}.tar.xz
Source1: gbinder.conf
Source2: id.waydro.setup-waydroid.policy
Requires: Python(gbinder-python)
Requires: libgbinder
Requires: lxc
Requires: python3-gobject
Requires: waydroid-image
Requires: waydroid-sensors
%description
Waydroid is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.
%prep
%setup -q -n %{name}-%{version}/
%install
%{__install} -dm755 %{buildroot}%{_libdir}/waydroid
%{__install} -dm755 %{buildroot}%{_datadir}/applications
%{__install} -dm755 %{buildroot}%{_bindir}/
cp -r tools data %{buildroot}%{_libdir}/waydroid/
mv %{buildroot}/%{_libdir}/waydroid/data/Waydroid.desktop %{buildroot}%{_datadir}/applications
cp waydroid.py %{buildroot}%{_libdir}/waydroid/
ln -s %{_libdir}/waydroid/waydroid.py %{buildroot}%{_bindir}/waydroid
%{__install} -Dm644 -t %{buildroot}%{_sysconfdir}/ %{SOURCE1}
%{__install} -Dm644 -t %{buildroot}%{_sysconfdir}/gbinder.d gbinder/anbox.conf
%{__install} -Dm644 -t %{buildroot}%{_unitdir}/ debian/waydroid-container.service
%{__install} -Dm644 -t %{buildroot}%{_datadir}/polkit-1/actions/ %{SOURCE2}
%files
%license LICENSE
%{_bindir}/waydroid
%dir %{_libdir}/waydroid/
%{_libdir}/waydroid/*
%{_datadir}/applications/Waydroid.desktop
%{_sysconfdir}/gbinder.conf
%dir %{_sysconfdir}/gbinder.d/
%{_sysconfdir}/gbinder.d/*
%{_unitdir}/waydroid-container.service
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/*
%changelog
* Mon Sep 20 2021 Adrian Campos Garrido <adriancampos@teachelp.com>
- First build for Waydroid