]>
Commit | Line | Data |
---|---|---|
24a22ca1 JB |
1 | Summary: Collection of video4linux utilities |
2 | Name: v4l-utils | |
5872d924 | 3 | Version: 0.8.5 |
aac6eedb | 4 | Release: 1 |
24a22ca1 JB |
5 | License: GPL v2+ (utilities), LGPL v2.1+ (libraries) |
6 | Group: Applications/System | |
7 | Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2 | |
5872d924 TP |
8 | # Source0-md5: 037bec9f68cfb0b84bcccb00d30e429b |
9 | URL: http://hansdegoede.livejournal.com/ | |
10 | BuildRequires: QtGui-devel | |
11 | BuildRequires: libstdc++-devel | |
12 | BuildRequires: sysfsutils | |
aac6eedb SP |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
24a22ca1 JB |
16 | A series of utilities for media devices, allowing to handle the |
17 | proprietary formats available at most webcams (libv4l), and providing | |
18 | tools to test V4L devices. | |
aac6eedb | 19 | |
24a22ca1 JB |
20 | %package qt |
21 | Summary: Qt V4L2 test Utility | |
22 | License: GPL v2+ | |
23 | Group: X11/Applications | |
335dd8cd | 24 | |
24a22ca1 JB |
25 | %description qt |
26 | Graphical Qt v4l2 control panel. | |
aac6eedb | 27 | |
5872d924 TP |
28 | %package -n ir-keytable |
29 | Summary: Alter keymaps of Remote Controller devices | |
30 | License: GPL v2+ | |
31 | Group: Applications/Console | |
32 | ||
33 | %description -n ir-keytable | |
111595d9 TP |
34 | Dump, Load or Modify IR receiver input tables. This package allows one |
35 | to change the keymap of controller receivers. Those receivers are | |
36 | found as infrared receivers on DVB sticks or on framegrabber cards. | |
37 | Via ir-keytable the mapping from a scancode to the generated event can | |
38 | be customized and made persistent | |
5872d924 | 39 | |
24a22ca1 JB |
40 | %package -n libv4l |
41 | Summary: Abstraction layer on top of video4linux2 devices | |
42 | Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2 | |
43 | License: LGPL v2.1+ | |
44 | Group: Libraries | |
5872d924 | 45 | |
24a22ca1 JB |
46 | %description -n libv4l |
47 | Collection of libraries which adds a thin abstraction layer on top of | |
48 | video4linux2 devices. The purpose of this (thin) layer is to make it | |
49 | easy for application writers to support a wide variety of devices | |
50 | without having to write seperate code for different devices in the | |
51 | same class. | |
5872d924 | 52 | |
24a22ca1 JB |
53 | %description -n libv4l -l pl.UTF-8 |
54 | libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla | |
55 | urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom | |
56 | aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu | |
57 | dla różnych urządzeń tej samej klasy. | |
5872d924 | 58 | |
24a22ca1 JB |
59 | %package -n libv4l-devel |
60 | Summary: Header files for libv4l libraries | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l | |
62 | License: LGPL v2.1+ | |
63 | Group: Development/Libraries | |
64 | Requires: libv4l = %{version}-%{release} | |
65 | ||
66 | %description -n libv4l-devel | |
67 | Header files for libv4l libraries. | |
68 | ||
69 | %description -n libv4l-devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe bibliotek libv4l. | |
5872d924 | 71 | |
aac6eedb | 72 | %prep |
24a22ca1 JB |
73 | %setup -q |
74 | ||
5f209ac2 | 75 | %if "%{pld_release}" == "ac" |
76 | %{__sed} -i 's/-fvisibility=hidden//' */Makefile | |
77 | %endif | |
aac6eedb SP |
78 | |
79 | %build | |
5f209ac2 | 80 | %{__make} \ |
81 | CC="%{__cc}" \ | |
82 | CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall" \ | |
83 | LDFLAGS="%{rpmcflags} %{rpmldflags}" | |
aac6eedb SP |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
76c43ba6 BZ |
87 | |
88 | %{__make} install \ | |
335dd8cd JB |
89 | PREFIX=%{_prefix} \ |
90 | LIBDIR=%{_libdir} \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
aac6eedb | 92 | |
5872d924 TP |
93 | install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir} |
94 | install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware | |
95 | ||
aac6eedb SP |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
24a22ca1 JB |
99 | %post -n libv4l -p /sbin/ldconfig |
100 | %postun -n libv4l -p /sbin/ldconfig | |
aac6eedb SP |
101 | |
102 | %files | |
103 | %defattr(644,root,root,755) | |
5872d924 TP |
104 | %doc ChangeLog README TODO contrib |
105 | %attr(755,root,root) %{_bindir}/*-ctl | |
106 | %attr(755,root,root) %{_bindir}/decode_tm6000 | |
107 | %attr(755,root,root) %{_bindir}/rds-saa6588 | |
108 | %attr(755,root,root) %{_bindir}/v4l2-* | |
109 | %attr(755,root,root) %{_bindir}/xc3028-firmware | |
110 | %attr(755,root,root) %{_sbindir}/v4l2-dbg | |
111 | ||
24a22ca1 JB |
112 | %files qt |
113 | %defattr(644,root,root,755) | |
5872d924 TP |
114 | %attr(755,root,root) %{_bindir}/qv4l2 |
115 | %{_desktopdir}/qv4l2.desktop | |
116 | %{_iconsdir}/hicolor/*/apps/qv4l2.* | |
24a22ca1 JB |
117 | |
118 | %files -n ir-keytable | |
119 | %defattr(644,root,root,755) | |
120 | %config(noreplace) %{_sysconfdir}/rc_* | |
121 | /lib/udev/rules.d/70-infrared.rules | |
122 | %attr(755,root,root) %{_bindir}/ir-keytable | |
123 | %{_mandir}/man1/ir-keytable.1* | |
124 | ||
125 | %files -n libv4l | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libv4l*.so.0 | |
128 | %attr(755,root,root) %{_libdir}/libv4l | |
129 | ||
130 | %files -n libv4l-devel | |
131 | %defattr(644,root,root,755) | |
132 | %doc README.lib* | |
133 | %attr(755,root,root) %{_libdir}/libv4l*.so | |
134 | %{_includedir}/libv4l*.h | |
135 | %{_pkgconfigdir}/libv4l*.pc |