]>
Commit | Line | Data |
---|---|---|
7f6240d5 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without udev # using libudev to detect device name | |
4 | # | |
31abdcf1 JB |
5 | Summary: Collection of Video4Linux utilities |
6 | Summary(pl.UTF-8): Zbiór narzędzi do urządzeń Video4Linux | |
24a22ca1 | 7 | Name: v4l-utils |
8549f537 | 8 | Version: 1.4.0 |
aac6eedb | 9 | Release: 1 |
24a22ca1 JB |
10 | License: GPL v2+ (utilities), LGPL v2.1+ (libraries) |
11 | Group: Applications/System | |
12 | Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2 | |
8549f537 | 13 | # Source0-md5: 7ce03062482b8963694251b45da93f42 |
6ba44786 | 14 | Patch0: %{name}-link.patch |
5872d924 | 15 | URL: http://hansdegoede.livejournal.com/ |
7f6240d5 JB |
16 | BuildRequires: OpenGL-devel |
17 | BuildRequires: OpenGL-GLU-devel | |
6081edf3 JB |
18 | BuildRequires: QtCore-devel >= 4.4 |
19 | BuildRequires: QtGui-devel >= 4.4 | |
7f6240d5 JB |
20 | BuildRequires: QtOpenGL-devel >= 4.4 |
21 | BuildRequires: alsa-lib-devel | |
6ba44786 JB |
22 | BuildRequires: autoconf >= 2.59 |
23 | BuildRequires: automake >= 1:1.9 | |
6081edf3 | 24 | BuildRequires: gettext-devel >= 0.17 |
b0bb5368 | 25 | BuildRequires: libjpeg-devel |
5872d924 | 26 | BuildRequires: libstdc++-devel |
6ba44786 | 27 | BuildRequires: libtool |
6081edf3 JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: qt4-build >= 4.4 | |
7f6240d5 | 30 | %{?with_udev:BuildRequires: udev-devel} |
6081edf3 JB |
31 | BuildRequires: xorg-lib-libX11-devel |
32 | Requires: libv4l = %{version}-%{release} | |
aac6eedb SP |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
24a22ca1 JB |
36 | A series of utilities for media devices, allowing to handle the |
37 | proprietary formats available at most webcams (libv4l), and providing | |
38 | tools to test V4L devices. | |
aac6eedb | 39 | |
31abdcf1 JB |
40 | %description -l pl.UTF-8 |
41 | Zbiór narzędzi do urządzeń multimedialnych, pozwalający obsługiwać | |
42 | własnościowe formaty dostępne w większości kamer internetowych | |
43 | (libv4l) oraz testować urządzenia V4L. | |
44 | ||
24a22ca1 | 45 | %package qt |
31abdcf1 JB |
46 | Summary: Qt-based V4L2 test Utility |
47 | Summary(pl.UTF-8): Narzędzie testowe V4L2 oparte na Qt | |
24a22ca1 JB |
48 | License: GPL v2+ |
49 | Group: X11/Applications | |
43cad090 JB |
50 | Requires: QtCore >= 4.4 |
51 | Requires: QtGui >= 4.4 | |
6081edf3 | 52 | Requires: libv4l = %{version}-%{release} |
335dd8cd | 53 | |
24a22ca1 | 54 | %description qt |
31abdcf1 JB |
55 | Graphical Qt V4L2 control panel. |
56 | ||
57 | %description qt -l pl.UTF-8 | |
58 | Graficzny panel kontrolny V4L2 oparty na Qt. | |
aac6eedb | 59 | |
5872d924 TP |
60 | %package -n ir-keytable |
61 | Summary: Alter keymaps of Remote Controller devices | |
31abdcf1 | 62 | Summary(pl.UTF-8): Zmiana map klawiszy urządzeń do zdalnego sterowania |
5872d924 TP |
63 | License: GPL v2+ |
64 | Group: Applications/Console | |
65 | ||
66 | %description -n ir-keytable | |
111595d9 TP |
67 | Dump, Load or Modify IR receiver input tables. This package allows one |
68 | to change the keymap of controller receivers. Those receivers are | |
69 | found as infrared receivers on DVB sticks or on framegrabber cards. | |
70 | Via ir-keytable the mapping from a scancode to the generated event can | |
31abdcf1 JB |
71 | be customized and made persistent. |
72 | ||
73 | %description -n ir-keytable -l pl.UTF-8 | |
74 | ir-keytable to narzędzie pozwalające na zrzucanie, wczytywanie i | |
75 | modyfikowanie tablic wejściowych odbiorników podczerwieni (IR). Ten | |
76 | pakiet pozwala na zmianę tablic klawiszy odbiorników pilotów. | |
77 | Odbiorniki podczerwieni występują na interfejsach DVB lub kartach | |
78 | framegrabberów. Dzięki użyciu ir-keytable można zmienić i zachować | |
79 | odwzorowania między skankodami a generowanymi zdarzeniami. | |
5872d924 | 80 | |
24a22ca1 JB |
81 | %package -n libv4l |
82 | Summary: Abstraction layer on top of video4linux2 devices | |
83 | Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2 | |
84 | License: LGPL v2.1+ | |
85 | Group: Libraries | |
5872d924 | 86 | |
24a22ca1 JB |
87 | %description -n libv4l |
88 | Collection of libraries which adds a thin abstraction layer on top of | |
89 | video4linux2 devices. The purpose of this (thin) layer is to make it | |
90 | easy for application writers to support a wide variety of devices | |
91 | without having to write seperate code for different devices in the | |
92 | same class. | |
5872d924 | 93 | |
24a22ca1 JB |
94 | %description -n libv4l -l pl.UTF-8 |
95 | libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla | |
96 | urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom | |
97 | aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu | |
98 | dla różnych urządzeń tej samej klasy. | |
5872d924 | 99 | |
24a22ca1 JB |
100 | %package -n libv4l-devel |
101 | Summary: Header files for libv4l libraries | |
102 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l | |
103 | License: LGPL v2.1+ | |
104 | Group: Development/Libraries | |
105 | Requires: libv4l = %{version}-%{release} | |
106 | ||
107 | %description -n libv4l-devel | |
108 | Header files for libv4l libraries. | |
109 | ||
110 | %description -n libv4l-devel -l pl.UTF-8 | |
111 | Pliki nagłówkowe bibliotek libv4l. | |
5872d924 | 112 | |
6081edf3 JB |
113 | %package -n libv4l-static |
114 | Summary: Static libv4l libraries | |
115 | Summary(pl.UTF-8): Statyczne biblioteki libv4l | |
116 | License: LGPL v2.1+ | |
117 | Group: Development/Libraries | |
118 | Requires: libv4l-devel = %{version}-%{release} | |
119 | ||
120 | %description -n libv4l-static | |
121 | Static libv4l libraries. | |
122 | ||
123 | %description -n libv4l-static -l pl.UTF-8 | |
124 | Statyczne biblioteki libv4l. | |
125 | ||
aac6eedb | 126 | %prep |
24a22ca1 | 127 | %setup -q |
6ba44786 | 128 | %patch0 -p1 |
24a22ca1 | 129 | |
aac6eedb | 130 | %build |
6ba44786 JB |
131 | %{__libtoolize} |
132 | %{__aclocal} -I m4 | |
133 | %{__autoconf} | |
134 | %{__autoheader} | |
135 | %{__automake} | |
6081edf3 | 136 | %configure \ |
b0322f93 | 137 | --disable-silent-rules \ |
7f6240d5 JB |
138 | --enable-libdvbv5 \ |
139 | %{?with_udev:--with-libudev} | |
6081edf3 | 140 | %{__make} |
aac6eedb SP |
141 | |
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
76c43ba6 BZ |
144 | |
145 | %{__make} install \ | |
335dd8cd | 146 | DESTDIR=$RPM_BUILD_ROOT |
aac6eedb | 147 | |
5872d924 TP |
148 | install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir} |
149 | install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware | |
150 | ||
6081edf3 JB |
151 | # obsoleted by pkg-config |
152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
153 | # dlopened modules | |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/*.la | |
d6976fe7 | 155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/plugins/*.la |
6081edf3 | 156 | |
aac6eedb SP |
157 | %clean |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
311fd358 JB |
160 | # handle transition from libv4l 0.8.x (.so.0 used to be libraries, not symlinks) |
161 | %pretrans -n libv4l | |
162 | for f in libv4l1 libv4l2 libv4lconvert ; do | |
163 | if [ ! -h %{_libdir}/${f}.so.0 ]; then | |
164 | rm -f %{_libdir}/${f}.so.0 | |
165 | fi | |
166 | done | |
167 | ||
24a22ca1 JB |
168 | %post -n libv4l -p /sbin/ldconfig |
169 | %postun -n libv4l -p /sbin/ldconfig | |
aac6eedb SP |
170 | |
171 | %files | |
172 | %defattr(644,root,root,755) | |
5872d924 | 173 | %doc ChangeLog README TODO contrib |
31abdcf1 | 174 | %attr(755,root,root) %{_bindir}/cx18-ctl |
5872d924 | 175 | %attr(755,root,root) %{_bindir}/decode_tm6000 |
a82e0b64 JB |
176 | %attr(755,root,root) %{_bindir}/dvb-fe-tool |
177 | %attr(755,root,root) %{_bindir}/dvb-format-convert | |
178 | %attr(755,root,root) %{_bindir}/dvbv5-scan | |
179 | %attr(755,root,root) %{_bindir}/dvbv5-zap | |
31abdcf1 | 180 | %attr(755,root,root) %{_bindir}/ivtv-ctl |
7f6240d5 | 181 | %attr(755,root,root) %{_bindir}/media-ctl |
6081edf3 | 182 | %attr(755,root,root) %{_bindir}/rds-ctl |
5872d924 | 183 | %attr(755,root,root) %{_bindir}/rds-saa6588 |
6081edf3 JB |
184 | %attr(755,root,root) %{_bindir}/v4l2-compliance |
185 | %attr(755,root,root) %{_bindir}/v4l2-ctl | |
186 | %attr(755,root,root) %{_bindir}/v4l2-sysfs-path | |
5872d924 TP |
187 | %attr(755,root,root) %{_bindir}/xc3028-firmware |
188 | %attr(755,root,root) %{_sbindir}/v4l2-dbg | |
189 | ||
24a22ca1 JB |
190 | %files qt |
191 | %defattr(644,root,root,755) | |
5872d924 TP |
192 | %attr(755,root,root) %{_bindir}/qv4l2 |
193 | %{_desktopdir}/qv4l2.desktop | |
194 | %{_iconsdir}/hicolor/*/apps/qv4l2.* | |
7f6240d5 | 195 | %{_mandir}/man1/qv4l2.1* |
24a22ca1 JB |
196 | |
197 | %files -n ir-keytable | |
198 | %defattr(644,root,root,755) | |
31abdcf1 | 199 | %dir %{_sysconfdir}/rc_keymaps |
31abdcf1 | 200 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg |
6081edf3 | 201 | /lib/udev/rc_keymaps |
24a22ca1 JB |
202 | /lib/udev/rules.d/70-infrared.rules |
203 | %attr(755,root,root) %{_bindir}/ir-keytable | |
204 | %{_mandir}/man1/ir-keytable.1* | |
205 | ||
206 | %files -n libv4l | |
207 | %defattr(644,root,root,755) | |
6081edf3 JB |
208 | %attr(755,root,root) %{_libdir}/libdvbv5.so.*.*.* |
209 | %attr(755,root,root) %ghost %{_libdir}/libdvbv5.so.0 | |
210 | %attr(755,root,root) %{_libdir}/libv4l1.so.*.*.* | |
211 | %attr(755,root,root) %ghost %{_libdir}/libv4l1.so.0 | |
212 | %attr(755,root,root) %{_libdir}/libv4l2.so.*.*.* | |
213 | %attr(755,root,root) %ghost %{_libdir}/libv4l2.so.0 | |
214 | %attr(755,root,root) %{_libdir}/libv4l2rds.so.*.*.* | |
215 | %attr(755,root,root) %ghost %{_libdir}/libv4l2rds.so.0 | |
216 | %attr(755,root,root) %{_libdir}/libv4lconvert.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libv4lconvert.so.0 | |
218 | %attr(755,root,root) %{_libdir}/v4l1compat.so | |
219 | %attr(755,root,root) %{_libdir}/v4l2convert.so | |
31abdcf1 | 220 | %dir %{_libdir}/libv4l |
6081edf3 JB |
221 | %attr(755,root,root) %{_libdir}/libv4l/ov511-decomp |
222 | %attr(755,root,root) %{_libdir}/libv4l/ov518-decomp | |
223 | %attr(755,root,root) %{_libdir}/libv4l/v4l1compat.so | |
224 | %attr(755,root,root) %{_libdir}/libv4l/v4l2convert.so | |
d6976fe7 JB |
225 | %dir %{_libdir}/libv4l/plugins |
226 | %attr(755,root,root) %{_libdir}/libv4l/plugins/libv4l-mplane.so | |
24a22ca1 JB |
227 | |
228 | %files -n libv4l-devel | |
229 | %defattr(644,root,root,755) | |
230 | %doc README.lib* | |
6081edf3 | 231 | %attr(755,root,root) %{_libdir}/libdvbv5.so |
31abdcf1 JB |
232 | %attr(755,root,root) %{_libdir}/libv4l1.so |
233 | %attr(755,root,root) %{_libdir}/libv4l2.so | |
6081edf3 | 234 | %attr(755,root,root) %{_libdir}/libv4l2rds.so |
31abdcf1 | 235 | %attr(755,root,root) %{_libdir}/libv4lconvert.so |
24a22ca1 | 236 | %{_includedir}/libv4l*.h |
7f6240d5 | 237 | %{_includedir}/libdvbv5 |
6081edf3 | 238 | %{_pkgconfigdir}/libdvbv5.pc |
31abdcf1 JB |
239 | %{_pkgconfigdir}/libv4l1.pc |
240 | %{_pkgconfigdir}/libv4l2.pc | |
6081edf3 | 241 | %{_pkgconfigdir}/libv4l2rds.pc |
31abdcf1 | 242 | %{_pkgconfigdir}/libv4lconvert.pc |
6081edf3 JB |
243 | |
244 | %files -n libv4l-static | |
245 | %defattr(644,root,root,755) | |
246 | %{_libdir}/libdvbv5.a | |
247 | %{_libdir}/libv4l1.a | |
248 | %{_libdir}/libv4l2.a | |
249 | %{_libdir}/libv4l2rds.a | |
250 | %{_libdir}/libv4lconvert.a |