Michal Marek 411abb
#
Michal Marek aebe2d
# spec file for package kernel-syms@VARIANT@
Michal Marek 411abb
#
Takashi Iwai 39a1fc
# Copyright (c) @YEAR@ SUSE LLC
Michal Marek 411abb
#
Michal Marek 411abb
# All modifications and additions to the file contributed by third parties
Michal Marek 411abb
# remain the property of their copyright owners, unless otherwise agreed
Michal Marek 411abb
# upon. The license for this file, and modifications and additions to the
Michal Marek 411abb
# file, is the same license as for the pristine package itself (unless the
Michal Marek 411abb
# license for the pristine package is not an Open Source License, in which
Michal Marek 411abb
# case the license is the MIT License). An "Open Source License" is a
Michal Marek 411abb
# license that conforms to the Open Source Definition (Version 1.9)
Michal Marek 411abb
# published by the Open Source Initiative.
Michal Marek 411abb
77b5f8
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Michal Marek 411abb
#
Michal Marek 411abb
Michal Marek 411abb
Michal Marek 411abb
%define variant @VARIANT@%{nil}
Michal Marek 411abb
Michal Marek 411abb
%include %_sourcedir/kernel-spec-macros
Michal Marek 411abb
Michal Marek 411abb
Name:           kernel-syms@VARIANT@
Michal Marek 411abb
Summary:        Kernel Symbol Versions (modversions)
Michal Kubecek f888e0
License:        GPL-2.0-only
Michal Marek 0b9e9a
Group:          Development/Sources
Michal Marek 411abb
Version:        @RPMVERSION@
Michal Marek 411abb
%if %using_buildservice
Michal Marek a80e5e
%if 0%{?is_kotd}
Michal Marek a80e5e
Release:        <RELEASE>.g@COMMIT@
Michal Marek a80e5e
%else
Michal Marek aebe2d
Release:        @RELEASE@
Michal Marek a80e5e
%endif
Michal Marek 411abb
%else
Michal Marek 411abb
%define kernel_source_release %(LC_ALL=C rpm -q kernel-devel%variant-%version --qf "%{RELEASE}" | grep -v 'not installed' || echo 0)
Michal Marek 411abb
Release:        %kernel_source_release
Michal Marek 411abb
%endif
77b5f8
URL:            https://www.kernel.org/
Michal Marek 411abb
AutoReqProv:    off
Michal Marek 411abb
BuildRequires:  coreutils
Michal Marek 411abb
@REQUIRES@
Michal Marek e68d5f
Requires:       pesign-obs-integration
Michal Marek 411abb
Provides:       %name = %version-%source_rel
Michal Suchanek 219bce
Provides:       %name-srchash-@COMMIT_FULL@
Michal Marek 0b9e9a
Provides:       multiversion(kernel)
Michal Marek 411abb
Source:         README.KSYMS
Michal Marek 411abb
Requires:       kernel-devel%variant = %version-%source_rel
Michal Marek 411abb
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Michal Marek 411abb
ExclusiveArch:  @ARCHS@
Michal Marek 411abb
Prefix:         /usr/src
Michal Marek 411abb
Michal Suchanek ecaf78
# Force bzip2 instead of lzma compression to
Michal Suchanek ecaf78
# 1) allow install on older dist versions, and
Michal Suchanek ecaf78
# 2) decrease build times (bsc#962356 boo#1175882)
Michal Suchanek ecaf78
%define _binary_payload w9.bzdio
Michal Suchanek ecaf78
Michal Marek 411abb
%description
Michal Marek 411abb
Kernel symbols, such as functions and variables, have version
Michal Marek 411abb
information attached to them. This package contains the symbol versions
Michal Marek 411abb
for the standard kernels.
Michal Marek 411abb
Michal Marek 411abb
This package is needed for compiling kernel module packages with proper
Michal Marek 411abb
package dependencies.
Michal Marek 411abb
Michal Marek 411abb
Michal Marek aebe2d
%source_timestamp
Michal Marek 411abb
%prep
Michal Marek aebe2d
Michal Marek 411abb
%install
Michal Marek 411abb
install -m 644 -D %{SOURCE0} %buildroot/%_docdir/%name/README.SUSE
Michal Marek 411abb
Michal Marek 411abb
%files
Michal Marek 411abb
%defattr(-, root, root)
Michal Marek 411abb
%dir %_docdir/%name
Michal Marek 411abb
%_docdir/%name/README.SUSE
Michal Marek 411abb
Michal Marek 411abb
%changelog