Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Emulators
anbox-modules
anbox-modules.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File anbox-modules.spec of Package anbox-modules
# # spec file for package anbox-modules # # Copyright (c) 2023 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/ # %global _pver %(rpm -q --qf "%{VERSION}" kernel-devel | cut -d'.' -f-2) %global _kver %(printf "%%d%%03d" $(echo "%{_pver}" | tr '.' ' ')) Name: anbox-modules Version: 20240402.2c06452 Release: 0 Summary: Anbox binder (ashmem) kernel module License: GPL-2.0-only Group: System/Kernel URL: https://github.com/choff/anbox-modules Source0: %{name}-%{version}.tar.xz Source1: %{name}-preamble Patch0: fix-binder-devices.patch BuildRequires: %{kernel_module_package_buildreqs} BuildRequires: libelf-devel BuildRequires: pkgconfig(libsystemd) BuildRequires: gcc14 Requires: anbox-kmp %kernel_module_package -n anbox -p %{SOURCE1} Provides: %{name}-dkms = %{version} Obsoletes: %{name}-dkms < %{version} Provides: dkms-%{name} = %{version} Obsoletes: dkms-%{name} < %{version} BuildArch: noarch %description Anbox binder (ashmem) out-of-tree kernel module. %prep %autosetup -p1 %define _mods ashmem binder set -- * mkdir source mv "$@" source/ mkdir obj %check %build for flavor in %{flavors_to_build} ; do rm -rf obj/$flavor cp -r source obj/$flavor for _mod in %{_mods} ; do %make_build V=1 -C %{kernel_source $flavor} %{?linux_make_arch} modules M=$PWD/obj/$flavor/$_mod done done %install export INSTALL_MOD_PATH=%{buildroot} export INSTALL_MOD_DIR=updates for flavor in %{flavors_to_build} ; do for _mod in %{_mods} ; do make V=1 -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor/$_mod done done export BRP_PESIGN_FILES='*.ko' install -d %{buildroot}%{_datadir}/ install -D -m 0644 -t %{buildroot}%{_modulesloaddir} source/anbox.conf install -D -m 0644 -t %{buildroot}%{_udevrulesdir} source/99-anbox.rules %post for _f in %{?modprobe_d_files}; do [ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \ mv -f "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}.rpmsave.old" || : done echo "Please restart your system to apply the updates." %postun for _f in %{?modprobe_d_files}; do [ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \ mv -fv "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}" || : done echo "Please restart your system to complete the package removal." %files /usr/share/ %license source/debian/copyright %doc source/README.md %dir %{_modulesloaddir} %{_modulesloaddir}/anbox.conf %{_udevrulesdir}/99-anbox.rules %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor