ftsteutates/ftsteutates.spec
Ismail Dönmez 0c32a9b4e0 Accepting request 423888 from home:rudi_m:musthave
Add new new kernel module ftsteutates to let sensors work
on recent Fujitsu mainboards. See Documentation
ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/Software&Tools/Linux_SystemMonitoring&Watchdog&GPIO/Fujitsu_mainboards-1-Sensors_HowTo-en-US.pdf

Note this initial kmp  package may need some more improvements. I'll
do it when I know that this package would be accepted at all. I've
tested this module with kernel 4.4.x from Leap 42.2 on openSUSE 13.1
and Leap 42.1. Fujitsu is trying to get this module into kernel
upstream. I would really like to get this kmp package into Leap 42.2.

OBS-URL: https://build.opensuse.org/request/show/423888
OBS-URL: https://build.opensuse.org/package/show/hardware/ftsteutates?expand=0&rev=1
2016-09-02 08:05:46 +00:00

79 lines
2.2 KiB
RPMSpec

#
# spec file for package ftsteutates
#
# Copyright (c) 2016 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: ftsteutates
Version: 20160601
Release: 0
Summary: Kernel module ftsteutates
License: GPL-2.0+
Group: System/Kernel
Url: ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/
Source0: ftsteutates-module_%{version}.zip
Source1: preamble
BuildRequires: kernel-source
BuildRequires: kernel-syms
BuildRequires: module-init-tools
BuildRequires: unzip
Requires: ftsteutates-kmp
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64
%suse_kernel_module_package -p %_sourcedir/preamble
%description
System monitoring and thermal management for
Teutates chips/Fujitsu mainboards (D34xx).
%package KMP
Summary: Kernel module ftsteutates
Group: System/Kernel
%description KMP
System monitoring and thermal management for Fujitsu mainboards (D34xx).
%prep
%setup -q -n ftsteutates
mkdir source
mkdir obj
cp -a Makefile ftsteutates.c source/
%build
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
# install kernel modules
export INSTALL_MOD_PATH=%{buildroot}
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
%files
%defattr(-,root,root)
%doc assets test
%clean
rm -rf %{buildroot}
%changelog