Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
k10temp
> k10temp.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File k10temp.spec of Package k10temp (Revision 7)
Currently displaying revision
7
,
show latest
# # spec file for package k10temp (Version 0.3) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2009 Wolfgang Rosenauer # # 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/ # # nodebuginfo Name: k10temp BuildRequires: kernel-source kernel-syms module-init-tools Group: System/Kernel AutoReqProv: on Summary: Sensors driver for AMD Phenom processors Version: 0.3 Release: 1 Source: %name.tar.bz2 Source1: preamble License: GPL v2 or later BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1310 ExcludeArch: s390 s390x ppc ppc64 ia64 ix86 %else ExcludeArch: s390 s390x ppc ppc64 ia64 %endif %suse_kernel_module_package -n k10temp -p %_sourcedir/preamble kdump um s390 iseries64 %description Sensors driver for AMD Phenom processors %package KMP Group: System/Kernel License: GPL v2 or later Summary: Sensors driver for AMD Phenom processors PreReq: coreutils grep %description KMP Sensors driver for AMD Phenom processors %prep %setup -q -n %name set -- * mkdir source mv "$@" source/ mkdir obj %build export EXTRA_CFLAGS='-DVERSION=\"%version\"' for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \ M=$PWD/obj/$flavor done %install # Kernel module export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/obj/$flavor done cd source %clean rm -rf $RPM_BUILD_ROOT