]>
Commit | Line | Data |
---|---|---|
335dd8cd JB |
1 | Summary: libv4l - abstraction layer on top of video4linux2 devices |
2 | Summary(pl.UTF-8): libv4l - warstwa abstrakcji dla urządzeń video4linux2 | |
aac6eedb | 3 | Name: libv4l |
3d72ab60 | 4 | Version: 0.6.4 |
aac6eedb | 5 | Release: 1 |
335dd8cd JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
3d72ab60 BZ |
8 | Source0: http://people.fedoraproject.org/~jwrdegoede/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 7ef58595dc36252be7f83f69b379a715 | |
aac6eedb SP |
10 | URL: http://hansdegoede.livejournal.com/3636.html |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | libv4l is a collection of libraries which adds a thin abstraction | |
15 | layer on top of video4linux2 devices. The purpose of this (thin) layer | |
16 | is to make it easy for application writers to support a wide variety | |
17 | of devices without having to write seperate code for different devices | |
18 | in the same class. | |
19 | ||
335dd8cd JB |
20 | %description -l pl.UTF-8 |
21 | libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla | |
22 | urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom | |
23 | aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu | |
24 | dla różnych urządzeń tej samej klasy. | |
25 | ||
aac6eedb | 26 | %package devel |
335dd8cd JB |
27 | Summary: Header files for libv4l libraries |
28 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l | |
aac6eedb SP |
29 | Group: Development/Libraries |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
335dd8cd JB |
33 | Header files for libv4l libraries. |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe bibliotek libv4l. | |
aac6eedb SP |
37 | |
38 | %prep | |
39 | %setup -q | |
5f209ac2 | 40 | %if "%{pld_release}" == "ac" |
41 | %{__sed} -i 's/-fvisibility=hidden//' */Makefile | |
42 | %endif | |
aac6eedb SP |
43 | |
44 | %build | |
5f209ac2 | 45 | %{__make} \ |
46 | CC="%{__cc}" \ | |
47 | CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall" \ | |
48 | LDFLAGS="%{rpmcflags} %{rpmldflags}" | |
aac6eedb SP |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
76c43ba6 BZ |
52 | |
53 | %{__make} install \ | |
335dd8cd JB |
54 | PREFIX=%{_prefix} \ |
55 | LIBDIR=%{_libdir} \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
aac6eedb SP |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post -p /sbin/ldconfig | |
62 | %postun -p /sbin/ldconfig | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc ChangeLog README TODO | |
335dd8cd JB |
67 | %attr(755,root,root) %{_libdir}/libv4l1.so.0 |
68 | %attr(755,root,root) %{_libdir}/libv4l2.so.0 | |
69 | %attr(755,root,root) %{_libdir}/libv4lconvert.so.0 | |
76c43ba6 | 70 | %dir %{_libdir}/libv4l |
335dd8cd JB |
71 | %attr(755,root,root) %{_libdir}/libv4l/v4l1compat.so |
72 | %attr(755,root,root) %{_libdir}/libv4l/v4l2convert.so | |
5f209ac2 | 73 | %attr(755,root,root) %{_libdir}/libv4l/ov511-decomp |
74 | %attr(755,root,root) %{_libdir}/libv4l/ov518-decomp | |
aac6eedb SP |
75 | |
76 | %files devel | |
77 | %defattr(644,root,root,755) | |
335dd8cd | 78 | %doc README.multi-threading |
5f209ac2 | 79 | %attr(755,root,root) %{_libdir}/libv4l1.so |
80 | %attr(755,root,root) %{_libdir}/libv4l2.so | |
81 | %attr(755,root,root) %{_libdir}/libv4lconvert.so | |
82 | %{_includedir}/libv4l1.h | |
83 | %{_includedir}/libv4l2.h | |
84 | %{_includedir}/libv4lconvert.h | |
85 | %{_pkgconfigdir}/libv4l1.pc | |
86 | %{_pkgconfigdir}/libv4l2.pc | |
87 | %{_pkgconfigdir}/libv4lconvert.pc |