forked from pool/ftsteutates
Accepting request 424651 from home:pluskalm:branches:hardware
Use modern macros for KMP (note that they do not work on SLE-11), sadly documentation and rpmlintrc warnings have not been updated yet. For example of their usage see i.e - https://build.opensuse.org/package/show/X11:Bumblebee/bbswitch . OBS-URL: https://build.opensuse.org/request/show/424651 OBS-URL: https://build.opensuse.org/package/show/hardware/ftsteutates?expand=0&rev=4
This commit is contained in:
parent
9424785a68
commit
01edaea967
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 4 06:20:43 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Use url for source
|
||||||
|
- Use modern macros for KMP handling
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 12 10:28:57 UTC 2016 - sweet_f_a@gmx.de
|
Tue Jul 12 10:28:57 UTC 2016 - sweet_f_a@gmx.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ftsteutates
|
# spec file for package ftsteutates
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -23,26 +23,16 @@ Summary: Kernel module ftsteutates
|
|||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: System/Kernel
|
Group: System/Kernel
|
||||||
Url: ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/
|
Url: ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/
|
||||||
Source0: ftsteutates-module_%{version}.zip
|
Source0: ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/Software&Tools/Linux_SystemMonitoring&Watchdog&GPIO/ftsteutates-module_%{version}.zip
|
||||||
Source1: preamble
|
BuildRequires: %{kernel_module_package_buildreqs}
|
||||||
BuildRequires: kernel-source
|
|
||||||
BuildRequires: kernel-syms
|
|
||||||
BuildRequires: module-init-tools
|
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExclusiveArch: %ix86 x86_64
|
%kernel_module_package
|
||||||
%suse_kernel_module_package -p %_sourcedir/preamble
|
ExclusiveArch: %{ix86} x86_64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
System monitoring and thermal management for
|
System monitoring and thermal management for Teutates chips/Fujitsu
|
||||||
Teutates chips/Fujitsu mainboards (D34xx).
|
mainboards (D34xx).
|
||||||
|
|
||||||
%package KMP
|
|
||||||
Summary: Kernel module ftsteutates
|
|
||||||
Group: System/Kernel
|
|
||||||
|
|
||||||
%description KMP
|
|
||||||
System monitoring and thermal management for Fujitsu mainboards (D34xx).
|
|
||||||
|
|
||||||
%package sensors
|
%package sensors
|
||||||
Summary: Sensors config ftsteutates
|
Summary: Sensors config ftsteutates
|
||||||
@ -52,8 +42,8 @@ BuildArch: noarch
|
|||||||
|
|
||||||
%description sensors
|
%description sensors
|
||||||
System monitoring and thermal management for Fujitsu mainboards (D34xx).
|
System monitoring and thermal management for Fujitsu mainboards (D34xx).
|
||||||
This package contains the mainboard model specific config files for
|
This package contains the mainboard model specific config files for nice
|
||||||
nice lm-sensors output.
|
lm-sensors output.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ftsteutates
|
%setup -q -n ftsteutates
|
||||||
@ -62,10 +52,10 @@ mkdir obj
|
|||||||
cp -a Makefile ftsteutates.c source/
|
cp -a Makefile ftsteutates.c source/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
for flavor in %flavors_to_build; do
|
for flavor in %{flavors_to_build}; do
|
||||||
rm -rf obj/$flavor
|
rm -rf obj/$flavor
|
||||||
cp -r source obj/$flavor
|
cp -r source obj/$flavor
|
||||||
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
|
make -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules \
|
||||||
M=$PWD/obj/$flavor
|
M=$PWD/obj/$flavor
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -73,8 +63,8 @@ done
|
|||||||
# install kernel modules
|
# install kernel modules
|
||||||
export INSTALL_MOD_PATH=%{buildroot}
|
export INSTALL_MOD_PATH=%{buildroot}
|
||||||
export INSTALL_MOD_DIR=updates
|
export INSTALL_MOD_DIR=updates
|
||||||
for flavor in %flavors_to_build; do
|
for flavor in %{flavors_to_build}; do
|
||||||
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
|
make -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install \
|
||||||
M=$PWD/obj/$flavor
|
M=$PWD/obj/$flavor
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user