File wacom.spec of Package wacom
#
# spec file for package wacom (Version 0.8.1)
#
# Copyright (c) 2009 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/
#
# norootforbuild
# nodebuginfo
%define revision 4
Name: wacom
BuildRequires: kernel-source kernel-syms module-init-tools
Summary: Kernel modules for Wacom Tablets
Version: 0.8.1
Release: 6.<RELEASE1>
Group: Hardware/Other
License: GPL v2 or later
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://linuxwacom.sourceforge.net/
AutoReqProv: on
Source: wacom-%{version}-%{revision}.tar.bz2
Source2: preamble
Patch: wacom-0.8.1-4.dif
ExclusiveArch: %ix86 x86_64
%define kernel_version_ %(echo `rpm -q --queryformat '%{VERSION}_%{RELEASE}' kernel-source`)
%define debug_package_requires wacom-kmp-default = %{version}_%{kernel_version_}-%{release}
%suse_kernel_module_package -p %_sourcedir/preamble um
%package -n wacom-KMP
Group: Hardware/Other
License: GPL v2 or later
Summary: Kernel modules for Wacom Tablets
%description
This package contains the wacom kernel driver.
Authors:
--------
Ping Cheng <pingc@wacom.com>
%description -n wacom-KMP
This package contains the wacom kernel driver.
Authors:
--------
Ping Cheng <pingc@wacom.com>
%prep
%if 0%{?suse_version} == 1020
%define kernelname 2.6.19
%endif
%if 0%{?suse_version} == 1030
%define kernelname 2.6.22
%endif
%if 0%{?suse_version} >= 1100
%define kernelname 2.6.26
%endif
%setup -n wacom-%{version}-%{revision}
%patch
%build
mkdir -p obj
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r %{kernelname} 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=$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
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Nov 28 2008 ro@suse.de
- fix debug package requires
* Mon Oct 27 2008 ro@suse.de
- change sequence in specfile to fix build
* Fri Oct 17 2008 dkukawka@suse.de
- fixed spec file with:
%%define debug_package_requires wacom-kmp-default = %%{version}
* Tue Sep 30 2008 ro@suse.de
- fix build (typo in wacom_sys.c)
* Mon Sep 01 2008 dkukawka@suse.de
- updated package to latest driver version of linuxwacom (0.8.1-4)
* Thu Aug 07 2008 dkukawka@suse.de
- updated package to latest driver version of linuxwacom (0.8.1-2)
* Tue Jul 29 2008 dkukawka@suse.de
- new package with the wacom kernel driver, took source from the
latest linuxwacom package (v0.8.1-1)