2007-02-27 15:50:06 +00:00
|
|
|
#
|
2009-10-20 10:46:10 +00:00
|
|
|
# spec file for package lirc-kernel (Version 0.8.6MACRO)
|
2007-02-27 15:50:06 +00:00
|
|
|
#
|
2010-01-14 15:18:10 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-02-27 15:50:06 +00:00
|
|
|
#
|
2008-08-21 22:33:46 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-02-27 15:50:06 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
# icecream 0
|
|
|
|
|
2010-05-25 16:40:53 +00:00
|
|
|
%define snapshot 0.8.7_0CVS201005120922
|
2008-02-22 00:37:43 +00:00
|
|
|
|
2007-02-27 15:50:06 +00:00
|
|
|
Name: lirc-kernel
|
2007-04-04 19:59:59 +00:00
|
|
|
BuildRequires: kernel-source kernel-syms module-init-tools
|
2010-01-14 15:18:10 +00:00
|
|
|
License: GPLv2+
|
2007-02-27 15:50:06 +00:00
|
|
|
Group: System/Kernel
|
|
|
|
Summary: LIRC kernel modules
|
2009-10-20 10:46:10 +00:00
|
|
|
Version: 0.8.6%{?snapshot:_%snapshot}
|
2008-10-13 14:37:52 +00:00
|
|
|
Release: 1
|
|
|
|
Source0: lirc-%{?snapshot}%{!?snapshot:%version}.tar.bz2
|
2007-02-27 15:50:06 +00:00
|
|
|
Source1: Makefile.module
|
|
|
|
Source2: Makefile.modsub
|
2010-05-25 16:40:53 +00:00
|
|
|
Patch1: 0001-add-missing-format-args.diff
|
2007-02-27 15:50:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-11-17 16:21:41 +00:00
|
|
|
ExcludeArch: s390 s390x
|
2007-02-27 15:50:06 +00:00
|
|
|
%suse_kernel_module_package -n lirc kdump um debug
|
|
|
|
|
|
|
|
%description
|
2008-04-10 12:52:02 +00:00
|
|
|
LIRC kernel modules
|
2007-02-27 15:50:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n lirc-KMP
|
2010-01-14 15:18:10 +00:00
|
|
|
License: GPLv2+
|
2007-02-27 15:50:06 +00:00
|
|
|
Summary: LIRC kernel modules
|
|
|
|
Group: System/Kernel
|
2008-04-29 22:26:55 +00:00
|
|
|
Recommends: lirc
|
2007-02-27 15:50:06 +00:00
|
|
|
|
|
|
|
%description -n lirc-KMP
|
|
|
|
LIRC kernel modules are required to support certain hardware such as
|
|
|
|
receivers for the serial port.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-10-13 14:37:52 +00:00
|
|
|
%setup -q -n lirc-%{?snapshot}%{!?snapshot:%version}
|
2010-05-25 16:40:53 +00:00
|
|
|
%patch1 -p1
|
2007-06-01 08:05:01 +00:00
|
|
|
autoreconf -f -i
|
2008-10-13 14:37:52 +00:00
|
|
|
PYTHON=/usr/bin/python \
|
|
|
|
./configure --with-driver=all
|
2007-02-27 15:50:06 +00:00
|
|
|
cp -a drivers source
|
|
|
|
find source -name 'Makefile*'|xargs rm
|
|
|
|
ln -s . source/drivers
|
|
|
|
for i in source/lirc_*; do
|
|
|
|
cp %{SOURCE2} $i/Makefile
|
|
|
|
done
|
|
|
|
cp %{SOURCE1} source/Makefile
|
|
|
|
mkdir obj
|
|
|
|
|
|
|
|
%build
|
|
|
|
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
|
|
|
|
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
|
|
|
|
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
|
2007-11-28 22:42:48 +00:00
|
|
|
|
2007-02-27 15:50:06 +00:00
|
|
|
%changelog
|