File omnibook.spec of Package omnibook
#
# spec file for package omnibook
#
# Copyright (c) 2011 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/
#
# nodebuginfo
Name: omnibook
Version: 20110911
Release: 1
License: GPL-2.0+
Summary: Kernel modules for Omnibooks
Url: http://sourceforge.net/projects/omnibook
Group: Hardware/Other
# Tar archive created from git://omnibook.git.sourceforge.net/gitroot/omnibook/omnibook
Source: %{name}-2.%{version}.tar.bz2
Source2: preamble
Patch1: omnibook-kernel-3.0.patch
BuildRequires: kernel-syms
BuildRequires: module-init-tools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64
%suse_kernel_module_package -p %_sourcedir/preamble um
%package -n omnibook-KMP
License: GPL-2.0+
Summary: Kernel modules for Omnibooks from omke-project
Group: Hardware/Other
%description
Linux kernel modules for several HP Omnibooks/HP Pavilion, HP/Compaq
nx*, Compal, Fujitsu Siemens Amilo, Acer Aspire and Toshiba Satellite
machines. This module include ac, battery, fan, lcd, ec, onetouch,
temperature, touchpad and util support.
%description -n omnibook-KMP
Linux kernel modules for several HP Omnibooks/HP Pavilion, HP/Compaq
nx*, Compal, Fujitsu Siemens Amilo, Acer Aspire and Toshiba Satellite
machines. This module include ac, battery, fan, lcd, ec, onetouch,
temperature, touchpad and util support.
%prep
%setup -q -n %{name}-2.%{version}
%if %suse_version >= 1210
%patch1
%endif
%build
cd ..
mkdir -p obj
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r %{name}-2.%{version} obj/$flavor
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
M=$PWD/obj/$flavor
done
%install
cd ..
# 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
%changelog