1 Summary: The Webcam Library
8 # svn co http://svn.quickcamteam.net/svn/qct/webcam-tools/trunk/
9 Source0: %{name}-%{version}.tar.xz
10 # Source0-md5: 2046d9a568d0a2b989f9d218ff04ad78
11 Patch0: %{name}-uvcvideo_h.patch
12 Patch1: %{name}-pkgconfig.patch
13 Patch2: %{name}-undebian.patch
14 URL: http://www.quickcamteam.net/software/libwebcam/
15 BuildRequires: cmake >= 2.6.0
16 BuildRequires: libxml2-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The Webcam Library libwebcam is designed to simplify
21 the development of webcam applications, primarily on Linux but
22 with an option to be ported to other platforms, in particular
23 Solaris. It realizes part of what the unwritten Video4Linux user
24 space library was always supposed to be: an easy to use library
25 that shields its users from many of the difficulties and problems
26 of using the V4L2 API directly.
28 #%description -l pl.UTF-8
31 Summary: Header files for the Webcam Library
32 #Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOO
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Header files for the Webcam Library library.
39 #%description devel -l pl.UTF-8
40 #Pliki nagłówkowe biblioteki FOO.
42 %package -n uvcdynctrl
43 Summary: Command line tool to control v4l2 devices
44 #Summary(pl.UTF-8): Dokumentacja API biblioteki FOO
46 Group: Applications/Multimedia
48 %description -n uvcdynctrl
49 This package provides the tools needed to add vendor specific
50 controls to uvc devices.
52 #%description -n uvcdynctrl -l pl.UTF-8
53 #Dokumentacja API biblioteki FOO.
65 -DCMAKE_INCLUDE_PATH=../common/include \
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_includedir}/libwebcam
73 %{__make} -C build install \
74 DESTDIR=$RPM_BUILD_ROOT
76 cp -a common/include/*.h $RPM_BUILD_ROOT%{_includedir}/libwebcam
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_libdir}/libwebcam.so.*.*.*
90 %defattr(644,root,root,755)
91 %{_libdir}/libwebcam.so
92 %{_includedir}/libwebcam
93 %{_pkgconfigdir}/libwebcam.pc
96 %defattr(644,root,root,755)
97 %doc uvcdynctrl/README
98 %attr(755,root,root) %{_bindir}/*
99 #%{_sysconfdir}/udev/data/046d/logitech.xml
100 %{_sysconfdir}/udev/data
101 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/80-uvcdynctrl.rules
102 %attr(755,root,root) /lib/udev/uvcdynctrl