File kernel-syms.spec of Package dtb-aarch64-pinephone

# spec file for package kernel-syms
# 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

%define variant %{nil}

%include %_sourcedir/kernel-spec-macros

Name:           kernel-syms
Summary:        Kernel Symbol Versions (modversions)
License:        GPL-2.0
Group:          Development/Sources
Version:        5.11.11
%if %using_buildservice
%if 0%{?is_kotd}
Release:        <RELEASE>.gdbc4a02
Release:        0
%define kernel_source_release %(LC_ALL=C rpm -q kernel-devel%variant-%version --qf "%{RELEASE}" | grep -v 'not installed' || echo 0)
Release:        %kernel_source_release
AutoReqProv:    off
BuildRequires:  coreutils
%ifarch aarch64
Requires:       kernel-64kb-devel = %version-%source_rel
%ifarch aarch64 armv6hl armv7hl %ix86 ppc64 ppc64le riscv64 s390x x86_64
Requires:       kernel-pinephone-devel = %version-%source_rel
%ifarch armv7hl
Requires:       kernel-lpae-devel = %version-%source_rel
%ifarch %ix86
Requires:       kernel-pae-devel = %version-%source_rel
%ifarch aarch64
Requires:       kernel-pinephone-devel = %version-%source_rel
Requires:       pesign-obs-integration
Provides:       %name = %version-%source_rel
Provides:       %name-srchash-dbc4a02972b5d36d666df3c1b25f429cc24db598
Provides:       multiversion(kernel)
Source:         README.KSYMS
Requires:       kernel-devel%variant = %version-%source_rel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 aarch64 armv6hl armv7hl ppc64 ppc64le riscv64 s390x x86_64
Prefix:         /usr/src

# Force bzip2 instead of lzma compression to
# 1) allow install on older dist versions, and
# 2) decrease build times (bsc#962356 boo#1175882)
%define _binary_payload w9.bzdio

Kernel symbols, such as functions and variables, have version
information attached to them. This package contains the symbol versions
for the standard kernels.

This package is needed for compiling kernel module packages with proper
package dependencies.


install -m 644 -D %{SOURCE0} %buildroot/%_docdir/%name/README.SUSE

%defattr(-, root, root)
%dir %_docdir/%name

openSUSE Build Service is sponsored by