2024-05-03 14:13:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package kernel-syms
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-09-06 15:27:23 +02:00
|
|
|
%define git_commit 6524e29997232b714e07a3528b494f81d5398a10
|
2024-05-03 14:13:15 +02:00
|
|
|
%define variant %{nil}
|
|
|
|
|
|
|
|
%include %_sourcedir/kernel-spec-macros
|
|
|
|
|
|
|
|
Name: kernel-syms
|
|
|
|
Version: 6.4.0
|
|
|
|
%if %using_buildservice
|
|
|
|
%if 0%{?is_kotd}
|
2024-09-06 15:27:23 +02:00
|
|
|
Release: <RELEASE>.g6524e29
|
2024-05-03 14:13:15 +02:00
|
|
|
%else
|
|
|
|
Release: 0
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
%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
|
|
|
|
%endif
|
|
|
|
Summary: Kernel Symbol Versions (modversions)
|
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: Development/Sources
|
|
|
|
URL: https://www.kernel.org/
|
|
|
|
BuildRequires: coreutils
|
|
|
|
%if ! 0%{?is_kotd} || ! %{?is_kotd_qa}%{!?is_kotd_qa:0}
|
|
|
|
ExclusiveArch: aarch64 ppc64le s390x x86_64
|
|
|
|
%else
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
%endif
|
|
|
|
Prefix: /usr/src
|
|
|
|
AutoReqProv: off
|
|
|
|
Source: README.KSYMS
|
|
|
|
%ifarch aarch64
|
|
|
|
Requires: kernel-64kb-devel = %version-%source_rel
|
|
|
|
%endif
|
|
|
|
%ifarch aarch64 ppc64le s390x x86_64
|
|
|
|
Requires: kernel-default-devel = %version-%source_rel
|
|
|
|
%endif
|
|
|
|
Requires: pesign-obs-integration
|
|
|
|
Requires: kernel-devel%variant = %version-%source_rel
|
|
|
|
Provides: %name = %version-%source_rel
|
|
|
|
Provides: %name-srchash-%git_commit
|
|
|
|
Provides: multiversion(kernel)
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
%source_timestamp
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %_docdir/%name
|
|
|
|
%_docdir/%name/README.SUSE
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -m 644 -D %{SOURCE0} %buildroot/%_docdir/%name/README.SUSE
|
|
|
|
|
|
|
|
%changelog
|