# # spec file for package kernel-syms@VARIANT@ (Version @RPMVERSION@) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # ( kernel-binary-packages is expanded into the list of all binary kernel # packages for each architecture by Autobuild. ) %define using_buildservice 0%{?opensuse_bs} %if %using_buildservice # Strip off the build number ("y") from the "x.y" release number %define source_rel %(release=%release; echo ${release%.*}) %else # We don't have build numbers internally %define source_rel %release %endif # macro to add the source timestamp to package descriptions %define source_timestamp %(sed '1s/^/Source timestamp: /' %_sourcedir/source-timestamp || :) %define variant @VARIANT@%{nil} Name: kernel-syms@VARIANT@ Summary: Kernel Symbol Versions (modversions) Version: @RPMVERSION@ %if %using_buildservice Release: @RELEASE_PREFIX@ %else %define kernel_source_release %(LC_ALL=C rpm -q kernel-source%variant-%version --qf "%{RELEASE}" | grep -v 'not installed' || echo 0) Release: %kernel_source_release %endif License: GPL Group: Development/Sources AutoReqProv: off BuildRequires: coreutils @REQUIRES@ Source: README.KSYMS Requires: kernel-source%variant = %version-%source_rel BuildRoot: %_tmppath/%name-%version-build Prefix: /usr/src %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 %prep %install install -m 644 -D %{SOURCE0} %buildroot/%_docdir/%name/README.SUSE %files %defattr(-, root, root) %dir %_docdir/%name %_docdir/%name/README.SUSE %changelog