File quickcam.spec of Package quickcam
#
# spec file for package quickcam (Version 0.6.6)
#
# 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
Name: quickcam
ExcludeArch: s390 s390x
BuildRequires: kernel-syms module-init-tools
Url: http://qce-ga.sourceforge.net/
Version: 0.6.6
Release: 9.<RELEASE1>
%define qc_usb_messenger qc-usb-messenger-1.8
License: LGPL v2.1 or later
Group: System/Kernel
Summary: Logitech USB QuickCam Kernel Module
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: http://mesh.dl.sourceforge.net/sourceforge/qce-ga/qc-usb-%{version}.tar.bz2
Source1: http://home.mag.cx/messenger/source/%{qc_usb_messenger}.tar.bz2
Patch0: qc-usb-support.patch
Patch1: qc-usb-BIT.patch
Patch2: qc-usb-hardware.patch
Patch3: qc-usb-qc_v4l_read-prototype.patch
Patch4: qc-usb-remove-linux-pagemap.patch
Patch5: qc-usb.UTS_RELEASE.patch
Patch6: qc-usb-urb_lock.patch
Patch8: qc-usb.pt_regs.patch
Patch9: qc-usb-mem_map_reserve.patch
Patch10: qc-usb.video_device-type.patch
Patch21: qc-usb-messenger.UTS_RELEASE.patch
Patch25: qc-usb-messenger-mem_map_reserve.patch
Patch26: qc-usb-messenger-sem_getcount.patch
Patch27: qc-usb-messenger-input_dev-private.patch
Patch28: qc-usb-messenger.video_device-type.patch
%suse_kernel_module_package -x default ppc64 smp bigsmp pae
%description
Logitech USB QuickCam video driver with V4L support. Derived from
qce-ga, linux V4L driver for the QuickCam Express and Dexxa QuickCam
http://qce-ga.sourceforge.net/
Authors:
--------
Tuukka Toivonen <tuukkat@ee.oulu.fi>
%package KMP
License: LGPL v2.1 or later
Summary: Logitech USB QuickCam Kernel Module
Group: System/Kernel
%description KMP
Logitech USB QuickCam video driver with V4L support. Derived from
qce-ga, linux V4L driver for the QuickCam Express and Dexxa QuickCam
http://qce-ga.sourceforge.net/
Authors:
--------
Tuukka Toivonen <tuukkat@ee.oulu.fi>
%prep
%setup -q -n qc-usb-%{version} -a 1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
cd %{qc_usb_messenger}
%patch21 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
%patch28 -p1
%build
mkdir source obj
cp qc-driver.c qc-hdcs.c qc-pb0100.c qc-vv6410.c qc-formats.c qc-mjpeg.c \
qc-memory.c qc-memory.h quickcam.h videodev2.h videodevfix.h source/
cat > source/Kbuild <<-'EOF'
EXTRA_CFLAGS += -I$(src) -DNOKERNEL
obj-m := quickcam.o
quickcam-objs := qc-driver.o qc-hdcs.o qc-pb0100.o qc-vv6410.o \
qc-formats.o qc-mjpeg.o qc-memory.o
EOF
cat > mybuild <<-'EOF'
: a
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make -k -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
V=1 \
M=$PWD/obj/$flavor
done
: b
EOF
cat mybuild
source mybuild
cd %{qc_usb_messenger}
mkdir source obj
cp -v qc-driver.c qc-vv6450.c qc-formats.c qc-memory.c \
quickcam.h qc-memory.h source/
cat > source/Kbuild <<-'EOF'
EXTRA_CFLAGS += -I$(src) -DNOKERNEL
obj-m := quickcam-messenger.o
quickcam-messenger-objs := qc-driver.o qc-vv6450.o qc-formats.o qc-memory.o
EOF
cat > mybuild <<-'EOF'
: c
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make -k -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
M=$PWD/obj/$flavor
done
: d
EOF
cat mybuild
source mybuild
%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
cd %{qc_usb_messenger}
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
M=$PWD/obj/$flavor
done
%changelog
* Mon Oct 20 2008 ihno@suse.de
- Excludearch for s390 s390x
* Thu Aug 28 2008 olh@suse.de
- build fixes for 2.6.27
* Mon Jul 21 2008 olh@suse.de
- update to qc-usb-messenger-1.8
build fixes for 2.6.26
* Mon Mar 03 2008 olh@suse.de
- build for pae kernel (bnc#366348)
* Tue Nov 27 2007 olh@suse.de
- update for 2.6.24 API changes
* Sat Apr 21 2007 olh@suse.de
- add debug to spec file
* Wed Apr 04 2007 lrupp@suse.de
- added module-init-tools to BuildRequires
* Fri Jan 19 2007 olh@suse.de
- update to 0.6.6, update to qc-usb-messenger-1.6
adapt for 2.6.20 interface changes
* Fri Aug 18 2006 olh@suse.de
- UTS_RELEASE was removed, include media/v4l2-dev.h
* Tue Aug 01 2006 olh@suse.de
- build also quickcam-messenger.ko from qc-usb-messenger-1.3
* Thu Jul 20 2006 olh@suse.de
- update to 0.6.4
use spin_lock_irqsave
* Mon Apr 03 2006 ro@suse.de
- fix module_param patch
* Mon Apr 03 2006 ro@suse.de
- change MODULE_PARM to module_param
* Wed Feb 08 2006 olh@suse.de
- remove inclusion of linux/pagemap.h
* Tue Feb 07 2006 ro@suse.de
- skip debuginfo package
there is no main package we could attach to/require
* Mon Feb 06 2006 olh@suse.de
- qc_v4l_read must return ssize_t (#148257)
* Sat Feb 04 2006 agruen@suse.de
- Convert to a Kermel Module Package.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 olh@suse.de
- fix uninizialized variable
* Wed Jan 18 2006 olh@suse.de
- .owner was removed from struct usb_driver in 2.6.16-rc1
* Sat Oct 29 2005 olh@suse.de
- create package version 0.6.3 (#6244, #47497, #63972, #103076, #121895)