File kernel-nexus9.spec of Package kernel-nexus9

#
# spec file for package kernel-nexus9
#
# Copyright (c) 2015 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
# 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 http://bugs.opensuse.org/
#


Name:           kernel-nexus9
Summary:        Linux kernel for Nexus 9
License:        GPL-2.0
Group:          System/Kernel
Version:        3.10.40
Release:        0.0
BuildRequires:  bc
BuildRequires:  coreutils
BuildRequires:  module-init-tools
BuildRequires:  u-boot-tools
Provides:       kernel = %version
Provides:       kernel-base = %version
Provides:       multiversion(kernel)
# git archive --prefix kernel-nexus9/ -o kernel-nexus9.tar.gz android-tegra-flounder-3.10-lollipop-mr1
Source0:        kernel-nexus9.tar.gz
Source1:        config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  aarch64

%description
Linux kernel for the HTC Nexus 9

%prep
%setup -q -n kernel-nexus9

%build
make mrproper
cp %SOURCE1 .config
#make %{?_smp_mflags} Image
#make %{?_smp_mflags} modules
#make %{?_smp_mflags} dtbs
make %{?_smp_mflags}

%install
install -d $RPM_BUILD_ROOT/boot
install -m644 arch/arm64/boot/Image.gz-dtb $RPM_BUILD_ROOT/boot/
#make INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install
#rm $RPM_BUILD_ROOT/lib/modules/*/build
#rm $RPM_BUILD_ROOT/lib/modules/*/source

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/boot/*
#/lib/modules/*
%doc COPYING CREDITS MAINTAINERS README REPORTING-BUGS

%changelog