diff --git a/libdc1394-v4l-2.6.38.patch b/libdc1394-v4l-2.6.38.patch new file mode 100644 index 0000000..95dd6cf --- /dev/null +++ b/libdc1394-v4l-2.6.38.patch @@ -0,0 +1,11 @@ +--- libdc1394-2.1.3/examples/dc1394_vloopback.c 2009-05-25 08:49:17.000000000 +0200 ++++ libdc1394-2.1.3/examples/dc1394_vloopback.c 2011-07-07 11:47:18.326089352 +0200 +@@ -46,7 +46,7 @@ + #include + #define _LINUX_TIME_H + #define _DEVICE_H_ +-#include ++#include + #include + #include + #include diff --git a/libdc1394.changes b/libdc1394.changes index 39af5a9..4214101 100644 --- a/libdc1394.changes +++ b/libdc1394.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 7 09:47:56 UTC 2011 - idonmez@novell.com + +- Add libdc1394-v4l-2.6.38.patch: use the new v4l interface + ------------------------------------------------------------------- Fri Apr 14 13:38:21 UTC 2011 - toddrme2178@gmail.com diff --git a/libdc1394.spec b/libdc1394.spec index a8f32b9..2155ccb 100644 --- a/libdc1394.spec +++ b/libdc1394.spec @@ -28,6 +28,9 @@ BuildRequires: libraw1394-devel # no IIDC-over-USB support for openSUSE 11.0 BuildRequires: libusb-1_0-devel pkg-config %endif +%if 0%{?suse_version} >= 1210 +BuildRequires: libv4l-devel >= 0.8.4 +%endif License: LGPLv2.1+ Group: Hardware/Camera AutoReqProv: on @@ -43,6 +46,7 @@ Patch0: libdc1394.no-x11.patch Patch1: libdc1394.ac.patch Patch2: libdc1394-swab_fix.patch Patch3: libdc1394.raw1394_set_iso_handler.patch +Patch4: libdc1394-v4l-2.6.38.patch %description This library provides functionality for controlling any camera that @@ -176,6 +180,9 @@ Authors: %patch1 -p1 %patch2 -p1 %patch3 -p1 +%if 0%{?suse_version} >= 1210 +%patch4 +%endif %build doit() {