forked from pool/kernel-source
GIT Revision: 00ea2b5681fe1d1f548c5e873b3a9d0ef4c7b829
OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-source?expand=0&rev=7145
This commit is contained in:
committed by
Git OBS Bridge
parent
6a6c76c786
commit
8e1df7838b
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package kernel-@FLAVOR@ (Version @RPMVERSION@)
|
||||
# spec file for package kernel-@FLAVOR@
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) @YEAR@ SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -56,15 +56,10 @@
|
||||
Name: kernel-@FLAVOR@
|
||||
Summary: @SUMMARY@
|
||||
Version: @RPMVERSION@
|
||||
%if %using_buildservice
|
||||
Release: @RELEASE_PREFIX@<RELEASE>
|
||||
%else
|
||||
Release: @RELEASE_PREFIX@0
|
||||
%endif
|
||||
Release: @RELEASE@
|
||||
License: GPL v2 only
|
||||
Group: System/Kernel
|
||||
Url: http://www.kernel.org/
|
||||
AutoReqProv: on
|
||||
BuildRequires: coreutils module-init-tools sparse
|
||||
BuildRequires: fdupes
|
||||
Provides: multiversion(kernel)
|
||||
@@ -176,8 +171,8 @@ Obsoletes: quickcam-kmp-%build_flavor < 0.6.7
|
||||
%description
|
||||
@DESCRIPTION@
|
||||
|
||||
%source_timestamp
|
||||
|
||||
%source_timestamp
|
||||
%prep
|
||||
if ! [ -e %_sourcedir/linux-%srcversion.tar.bz2 ]; then
|
||||
echo "The %name-%version.nosrc.rpm package does not contain the" \
|
||||
@@ -304,7 +299,6 @@ fi
|
||||
make %{?_smp_mflags} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
|
||||
# get rid of /usr/lib/rpm/brp-strip-debug
|
||||
@@ -437,7 +431,6 @@ for sub in '-base' '' '-extra'; do
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
%if %build_kdump || %build_xen || %build_vanilla || %build_ps3
|
||||
# keep this -suffix list in sync with post.sh and postun.sh
|
||||
suffix=-%build_flavor
|
||||
@@ -653,14 +646,18 @@ rm %my_builddir/tmp
|
||||
%fdupes $RPM_BUILD_ROOT/lib
|
||||
|
||||
%preun -f preun.sh
|
||||
|
||||
%postun -f postun.sh
|
||||
|
||||
%pre -f pre.sh
|
||||
|
||||
%post -f post.sh
|
||||
|
||||
|
||||
%if %split_base
|
||||
|
||||
%files -f kernel-main.files
|
||||
%else
|
||||
|
||||
%files -f kernel-base.files
|
||||
%endif
|
||||
%defattr(-, root, root)
|
||||
@@ -670,7 +667,6 @@ Summary: @SUMMARY@ - base modules
|
||||
License: GPL v2 only
|
||||
Group: System/Kernel
|
||||
Url: http://www.kernel.org/
|
||||
AutoReqProv: on
|
||||
Provides: multiversion(kernel)
|
||||
Provides: kernel-base = %version-%source_rel
|
||||
Requires(pre): coreutils awk
|
||||
@@ -686,14 +682,18 @@ Conflicts: libc.so.6()(64bit)
|
||||
|
||||
This package contains only the base modules, required in all installs.
|
||||
|
||||
%source_timestamp
|
||||
|
||||
%source_timestamp
|
||||
%preun base -f preun-base.sh
|
||||
|
||||
%postun base -f postun-base.sh
|
||||
|
||||
%pre base -f pre-base.sh
|
||||
|
||||
%post base -f post-base.sh
|
||||
|
||||
%if %split_base
|
||||
|
||||
%files base -f kernel-base.files
|
||||
%defattr(-, root, root)
|
||||
%endif
|
||||
@@ -703,7 +703,6 @@ Summary: @SUMMARY@ - Unsupported kernel modules
|
||||
License: GPL v2 only
|
||||
Group: System/Kernel
|
||||
Url: http://www.kernel.org/
|
||||
AutoReqProv: on
|
||||
Provides: multiversion(kernel)
|
||||
Provides: %name-extra_%_target_cpu = %version-%release
|
||||
Provides: kernel-extra = %version-%source_rel
|
||||
@@ -722,19 +721,24 @@ Conflicts: libc.so.6()(64bit)
|
||||
|
||||
This package contains additional modules not supported by Novell.
|
||||
|
||||
%source_timestamp
|
||||
|
||||
%source_timestamp
|
||||
%preun extra -f preun-extra.sh
|
||||
|
||||
%postun extra -f postun-extra.sh
|
||||
|
||||
%pre extra -f pre-extra.sh
|
||||
|
||||
%post extra -f post-extra.sh
|
||||
|
||||
%if %split_extra
|
||||
|
||||
%files extra -f kernel-extra.files
|
||||
%defattr(-, root, root)
|
||||
%endif
|
||||
|
||||
%if %CONFIG_KMSG_IDS == "y"
|
||||
|
||||
%package man
|
||||
Summary: The collection of man pages generated by the kmsg script.
|
||||
License: GPL v2 only
|
||||
@@ -744,8 +748,8 @@ Group: System/Kernel
|
||||
This package includes the man pages that have been generated from the
|
||||
kmsg message documentation comments.
|
||||
|
||||
%source_timestamp
|
||||
|
||||
%source_timestamp
|
||||
%files man
|
||||
%defattr(-,root,root)
|
||||
/usr/share/man/man9/*
|
||||
@@ -759,17 +763,19 @@ Provides: multiversion(kernel)
|
||||
Provides: %name-devel = %version-%source_rel
|
||||
Requires: kernel-devel%variant = %version-%source_rel
|
||||
Supplements: packageand(%name:kernel-devel%variant)
|
||||
AutoReqProv: on
|
||||
|
||||
%description devel
|
||||
This package contains files necessary for building kernel modules (and
|
||||
kernel module packages) against the %build_flavor flavor of the kernel.
|
||||
|
||||
%source_timestamp
|
||||
|
||||
%source_timestamp
|
||||
%if %CONFIG_MODULES == "y"
|
||||
|
||||
%pre devel -f devel-pre.sh
|
||||
|
||||
%post devel -f devel-post.sh
|
||||
|
||||
%files devel -f kernel-devel.files
|
||||
%defattr(-,root,root)
|
||||
%dir %obj_install_dir
|
||||
@@ -793,8 +799,8 @@ Group: Development/Debug
|
||||
%description devel-debuginfo
|
||||
Debug information for package %name-devel
|
||||
|
||||
%source_timestamp
|
||||
|
||||
%source_timestamp
|
||||
%files devel-debuginfo -f vmlinux.debug.files
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user