]> git.pld-linux.org Git - packages/libwebcam.git/blob - libwebcam.spec
- undebianize
[packages/libwebcam.git] / libwebcam.spec
1 Summary:        The Webcam Library
2 #Summary(pl.UTF-8):     -
3 Name:           libwebcam
4 Version:        0.2.1
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
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)
18
19 %description
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.
27
28 #%description -l pl.UTF-8
29
30 %package devel
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}
35
36 %description devel
37 Header files for the Webcam Library library.
38
39 #%description devel -l pl.UTF-8
40 #Pliki nagłówkowe biblioteki FOO.
41
42 %package -n uvcdynctrl
43 Summary:        Command line tool to control v4l2 devices
44 #Summary(pl.UTF-8):     Dokumentacja API biblioteki FOO
45 License:        GPL
46 Group:          Applications/Multimedia
47
48 %description -n uvcdynctrl
49 This package provides the tools needed to add vendor specific
50 controls to uvc devices.
51
52 #%description -n uvcdynctrl -l pl.UTF-8
53 #Dokumentacja API biblioteki FOO.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58 %patch1 -p1
59 %patch2 -p0
60
61 %build
62 install -d build
63 cd build
64 %cmake \
65         -DCMAKE_INCLUDE_PATH=../common/include \
66         ../
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_includedir}/libwebcam
72
73 %{__make} -C build install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 cp -a common/include/*.h $RPM_BUILD_ROOT%{_includedir}/libwebcam
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc libwebcam/README
87 %attr(755,root,root) %{_libdir}/libwebcam.so.*.*.*
88
89 %files devel
90 %defattr(644,root,root,755)
91 %{_libdir}/libwebcam.so
92 %{_includedir}/libwebcam
93 %{_pkgconfigdir}/libwebcam.pc
94
95 %files -n uvcdynctrl
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
This page took 0.41967 seconds and 3 git commands to generate.