LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bbswitch.spec of Package bbswitch (Project home:frostmyname:bumblebee3)

Name:			bbswitch
BuildRequires:		%kernel_module_package_buildreqs 
License:		GPL 
Group:			System/Kernel
Summary:		ACPI module
Url:			http://github.com/Bumblebee-Project/bbswitch
Version:		0.4.1
Release:		0
Source0:		%name-%version.tar.gz 
BuildRoot:		%{_tmppath}/%{name}-%{version}-build

%kernel_module_package

%description 
bbswitch is a kernel module which automatically detects the required ACPI calls for two kinds of Optimus laptops. 

%prep 
%setup
set -- *
mkdir source
mv "$@" source/
mkdir obj

%build
for flavor in %flavors_to_build; do
        rm -rf obj/$flavor
        cp -r source obj/$flavor
        make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done

%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do 
        make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor 
done

%changelog
* Tue Jan 24 2012 frostmyname@gmail.com
- first package version