File lxc-android.spec of Package lxc-android

#
# spec file for package phosh-helpers
#
# 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:           lxc-android
Version:        0.0.1
Release:        1%{?dist}
Summary:        GSI image helpers package
License:        GPL-3.0-or-later
URL:            https://gitlab.com/slem.os/%{name}
Source0:        %{NAME}-%{VERSION}.tar.xz
BuildArch:      noarch
Requires:       lxc
%systemd_requires

%description
GSI image helpers package.

%prep
%autosetup

%build
rm -f etc/udev/rules.d/50-firmware.rules etc/udev/rules.d/60-persistent-v4l.rules etc/udev/rules.d/90-alsa-restore.rules etc/udev/rules.d/90-alsa-ucm.rules


%install
%{__install} -Dm0644 -t %{buildroot}%{_unitdir} lib/systemd/system/*
%{__install} -Dm0755 -t %{buildroot}%{_udevrulesdir} lib/udev/rules.d/*

%{__install} -Dm0755 -t %{buildroot}%{_sysconfdir}/NetworkManager/conf.d etc/NetworkManager/conf.d/*
%{__install} -Dm0644 -t %{buildroot}%{_unitdir} etc/systemd/system/*
%{__install} -Dm0755 -t %{buildroot}%{_udevrulesdir} etc/udev/rules.d/*

%{__install} -Dm0755 -t %{buildroot}/usr/lib/android-tools-adbd/ usr/lib/android-tools-adbd/*
%{__install} -Dm0755 -t %{buildroot}/usr/lib/lxc-android/ usr/lib/lxc-android/*
%{__install} -Dm0755 -t %{buildroot}%{_sbindir} usr/sbin/*

%{__install} -Dm0755 -t %{buildroot}/var/lib/lxc/android/ var/lib/lxc/android/*
%{__install} -d %{buildroot}/var/lib/lxc/android/rootfs


%files
%dir %{_sysconfdir}/NetworkManager/
%dir %{_sysconfdir}/NetworkManager/conf.d/
%config %{_sysconfdir}/NetworkManager/conf.d/*
%{_udevrulesdir}/*
%{_unitdir}/*
%{_udevrulesdir}/*
%dir /usr/lib
%dir /usr/lib/android-tools-adbd
/usr/lib/android-tools-adbd/*
%dir /usr/lib/lxc-android
/usr/lib/lxc-android/*
%{_sbindir}/*
%dir /var/lib
%dir /var/lib/lxc
%dir /var/lib/lxc/android/
%dir /var/lib/lxc/android/rootfs
/var/lib/lxc/android/*

%changelog
openSUSE Build Service is sponsored by