Changes of Revision 8
wxcam.spec
Changed
x
1
2
Source2: Licence_CeCILL_V2-en.txt
3
Patch1: %{name}-fix_no_return_in_nonvoid_function.patch
4
Patch2: wxcam-fix_desktop_file.patch
5
-%if 0%{?suse_version} <= 1140
6
-Patch3: remove-libv4l1-videdev.h.patch
7
-%endif
8
+Patch4: CImg-139.h.patch
9
Buildrequires: gcc-c++ pkg-config perl-XML-Parser update-desktop-files
10
BuildRequires: gtk2-devel libglade2-devel libtiff-devel libjpeg-devel
11
Buildrequires: xvid-devel intltool alsa-devel
12
13
14
%patch1 -p1
15
%patch2 -p0
16
-%if 0%{?suse_version} <= 1140
17
-%patch3 -p1
18
-%endif
19
+%patch4 -p0
20
21
22
# set some reasonable permissions for documentation files
23
chmod 0644 COPYING
24
25
%build
26
+%if 0%{?suse_version} > 1140
27
+%else
28
+export CFLAGS="$RPM_OPT_FLAGS -DHAVE_CAMV4L"
29
+export CXXFLAGS="$RPM_OPT_FLAGS -DHAVE_CAMV4L"
30
+%endif
31
%configure --docdir=%{_defaultdocdir}
32
33
%__make %{?_smp_mflags} V=1
34
remove-libv4l1-videdev.h.patch
Deleted
30
1
2
---- wxcam-1.1/src/v4l.h.bak 2012-03-07 22:04:36.850877420 +0100
3
-+++ wxcam-1.1/src/v4l.h 2012-03-07 22:04:53.200831746 +0100
4
-@@ -24,11 +24,7 @@
5
- #include <unistd.h>
6
- #include <fcntl.h>
7
- #include <sys/mman.h>
8
--#ifdef HAVE_CAMV4L
9
- #include <linux/videodev.h>
10
--#else
11
--#include <libv4l1-videodev.h>
12
--#endif
13
- #include <sys/ioctl.h>
14
- #include <sys/types.h>
15
- #include <sys/stat.h>
16
---- wxcam-1.1/src/device.h.bak 2012-03-07 22:04:29.855896961 +0100
17
-+++ wxcam-1.1/src/device.h 2012-03-07 22:05:03.023804303 +0100
18
-@@ -24,11 +24,7 @@
19
- #include <unistd.h>
20
- #include <fcntl.h>
21
- #include <sys/mman.h>
22
--#ifdef HAVE_CAMV4L
23
- #include <linux/videodev.h>
24
--#else
25
--#include <libv4l1-videodev.h>
26
--#endif
27
- #include <sys/ioctl.h>
28
- #include <sys/types.h>
29
- #include <sys/stat.h>
30