3 %bcond_without udev # using libudev to detect device name
5 Summary: Collection of Video4Linux utilities
6 Summary(pl.UTF-8): Zbiór narzędzi do urządzeń Video4Linux
10 License: GPL v2+ (utilities), LGPL v2.1+ (libraries)
11 Group: Applications/System
12 Source0: https://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
13 # Source0-md5: 9805ff48a4d470669b707731386b67c9
14 Patch0: %{name}-link.patch
15 URL: https://linuxtv.org/wiki/index.php/V4l-utils
16 BuildRequires: OpenGL-devel
17 BuildRequires: OpenGL-GLU-devel
18 BuildRequires: Qt5Core-devel >= 5.0
19 BuildRequires: Qt5Gui-devel >= 5.0
20 BuildRequires: Qt5OpenGL-devel >= 5.0
21 BuildRequires: Qt5Widgets-devel >= 5.0
22 BuildRequires: alsa-lib-devel
23 BuildRequires: autoconf >= 2.59
24 BuildRequires: automake >= 1:1.9
25 BuildRequires: gettext-tools >= 0.17
26 BuildRequires: libjpeg-devel
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtool
29 BuildRequires: pkgconfig
30 BuildRequires: qt5-build >= 5.0
31 %{?with_udev:BuildRequires: udev-devel}
32 BuildRequires: xorg-lib-libX11-devel
33 Requires: libv4l = %{version}-%{release}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 A series of utilities for media devices, allowing to handle the
38 proprietary formats available at most webcams (libv4l), and providing
39 tools to test V4L devices.
41 %description -l pl.UTF-8
42 Zbiór narzędzi do urządzeń multimedialnych, pozwalający obsługiwać
43 własnościowe formaty dostępne w większości kamer internetowych
44 (libv4l) oraz testować urządzenia V4L.
47 Summary: Qt-based V4L2 test Utility
48 Summary(pl.UTF-8): Narzędzie testowe V4L2 oparte na Qt
50 Group: X11/Applications
51 Requires: Qt5Core >= 5.0
52 Requires: Qt5Gui >= 5.0
53 Requires: Qt5OpenGL >= 5.0
54 Requires: Qt5Widgets >= 5.0
55 Requires: libv4l = %{version}-%{release}
58 Graphical Qt V4L2 control panel.
60 %description qt -l pl.UTF-8
61 Graficzny panel kontrolny V4L2 oparty na Qt.
63 %package -n ir-keytable
64 Summary: Alter keymaps of Remote Controller devices
65 Summary(pl.UTF-8): Zmiana map klawiszy urządzeń do zdalnego sterowania
67 Group: Applications/Console
69 %description -n ir-keytable
70 Dump, Load or Modify IR receiver input tables. This package allows one
71 to change the keymap of controller receivers. Those receivers are
72 found as infrared receivers on DVB sticks or on framegrabber cards.
73 Via ir-keytable the mapping from a scancode to the generated event can
74 be customized and made persistent.
76 %description -n ir-keytable -l pl.UTF-8
77 ir-keytable to narzędzie pozwalające na zrzucanie, wczytywanie i
78 modyfikowanie tablic wejściowych odbiorników podczerwieni (IR). Ten
79 pakiet pozwala na zmianę tablic klawiszy odbiorników pilotów.
80 Odbiorniki podczerwieni występują na interfejsach DVB lub kartach
81 framegrabberów. Dzięki użyciu ir-keytable można zmienić i zachować
82 odwzorowania między skankodami a generowanymi zdarzeniami.
85 Summary: Abstraction layer on top of video4linux2 devices
86 Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2
90 %description -n libv4l
91 Collection of libraries which adds a thin abstraction layer on top of
92 video4linux2 devices. The purpose of this (thin) layer is to make it
93 easy for application writers to support a wide variety of devices
94 without having to write seperate code for different devices in the
97 %description -n libv4l -l pl.UTF-8
98 libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla
99 urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom
100 aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu
101 dla różnych urządzeń tej samej klasy.
103 %package -n libv4l-devel
104 Summary: Header files for libv4l libraries
105 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l
107 Group: Development/Libraries
108 Requires: libv4l = %{version}-%{release}
110 %description -n libv4l-devel
111 Header files for libv4l libraries.
113 %description -n libv4l-devel -l pl.UTF-8
114 Pliki nagłówkowe bibliotek libv4l.
116 %package -n libv4l-static
117 Summary: Static libv4l libraries
118 Summary(pl.UTF-8): Statyczne biblioteki libv4l
120 Group: Development/Libraries
121 Requires: libv4l-devel = %{version}-%{release}
123 %description -n libv4l-static
124 Static libv4l libraries.
126 %description -n libv4l-static -l pl.UTF-8
127 Statyczne biblioteki libv4l.
140 --disable-silent-rules \
142 %{?with_udev:--with-libudev}
146 rm -rf $RPM_BUILD_ROOT
149 DESTDIR=$RPM_BUILD_ROOT
151 install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir}
152 install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware
154 # obsoleted by pkg-config
155 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
157 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/*.la
158 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/plugins/*.la
164 rm -rf $RPM_BUILD_ROOT
166 # handle transition from libv4l 0.8.x (.so.0 used to be libraries, not symlinks)
168 for f in libv4l1 libv4l2 libv4lconvert ; do
169 if [ ! -h %{_libdir}/${f}.so.0 ]; then
170 rm -f %{_libdir}/${f}.so.0
174 %post -n libv4l -p /sbin/ldconfig
175 %postun -n libv4l -p /sbin/ldconfig
177 %files -f v4l-utils.lang
178 %defattr(644,root,root,755)
179 %doc ChangeLog README TODO contrib
180 %attr(755,root,root) %{_bindir}/cec-compliance
181 %attr(755,root,root) %{_bindir}/cec-ctl
182 %attr(755,root,root) %{_bindir}/cec-follower
183 %attr(755,root,root) %{_bindir}/cx18-ctl
184 %attr(755,root,root) %{_bindir}/decode_tm6000
185 %attr(755,root,root) %{_bindir}/dvb-fe-tool
186 %attr(755,root,root) %{_bindir}/dvb-format-convert
187 %attr(755,root,root) %{_bindir}/dvbv5-daemon
188 %attr(755,root,root) %{_bindir}/dvbv5-scan
189 %attr(755,root,root) %{_bindir}/dvbv5-zap
190 %attr(755,root,root) %{_bindir}/ir-ctl
191 %attr(755,root,root) %{_bindir}/ivtv-ctl
192 %attr(755,root,root) %{_bindir}/media-ctl
193 %attr(755,root,root) %{_bindir}/rds-ctl
194 %attr(755,root,root) %{_bindir}/rds-saa6588
195 %attr(755,root,root) %{_bindir}/v4l2-compliance
196 %attr(755,root,root) %{_bindir}/v4l2-ctl
197 %attr(755,root,root) %{_bindir}/v4l2-sysfs-path
198 %attr(755,root,root) %{_bindir}/xc3028-firmware
199 %attr(755,root,root) %{_sbindir}/v4l2-dbg
200 %{_mandir}/man1/cec-compliance.1*
201 %{_mandir}/man1/cec-ctl.1*
202 %{_mandir}/man1/cec-follower.1*
203 %{_mandir}/man1/dvb-fe-tool.1*
204 %{_mandir}/man1/dvb-format-convert.1*
205 %{_mandir}/man1/dvbv5-scan.1*
206 %{_mandir}/man1/dvbv5-zap.1*
207 %{_mandir}/man1/ir-ctl.1*
208 %{_mandir}/man1/v4l2-compliance.1*
209 %{_mandir}/man1/v4l2-ctl.1*
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_bindir}/qv4l2
214 %{_desktopdir}/qv4l2.desktop
215 %{_iconsdir}/hicolor/*/apps/qv4l2.*
216 %{_mandir}/man1/qv4l2.1*
218 %files -n ir-keytable
219 %defattr(644,root,root,755)
220 %dir %{_sysconfdir}/rc_keymaps
221 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg
223 /lib/udev/rules.d/70-infrared.rules
224 %attr(755,root,root) %{_bindir}/ir-keytable
225 %{_mandir}/man1/ir-keytable.1*
227 %files -n libv4l -f libdvbv5.lang
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/libdvbv5.so.*.*.*
230 %attr(755,root,root) %ghost %{_libdir}/libdvbv5.so.0
231 %attr(755,root,root) %{_libdir}/libv4l1.so.*.*.*
232 %attr(755,root,root) %ghost %{_libdir}/libv4l1.so.0
233 %attr(755,root,root) %{_libdir}/libv4l2.so.*.*.*
234 %attr(755,root,root) %ghost %{_libdir}/libv4l2.so.0
235 %attr(755,root,root) %{_libdir}/libv4l2rds.so.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libv4l2rds.so.0
237 %attr(755,root,root) %{_libdir}/libv4lconvert.so.*.*.*
238 %attr(755,root,root) %ghost %{_libdir}/libv4lconvert.so.0
239 %attr(755,root,root) %{_libdir}/v4l1compat.so
240 %attr(755,root,root) %{_libdir}/v4l2convert.so
241 %dir %{_libdir}/libv4l
242 %attr(755,root,root) %{_libdir}/libv4l/ov511-decomp
243 %attr(755,root,root) %{_libdir}/libv4l/ov518-decomp
244 %attr(755,root,root) %{_libdir}/libv4l/v4l1compat.so
245 %attr(755,root,root) %{_libdir}/libv4l/v4l2convert.so
246 %dir %{_libdir}/libv4l/plugins
247 %attr(755,root,root) %{_libdir}/libv4l/plugins/libv4l-mplane.so
249 %files -n libv4l-devel
250 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libdvbv5.so
253 %attr(755,root,root) %{_libdir}/libv4l1.so
254 %attr(755,root,root) %{_libdir}/libv4l2.so
255 %attr(755,root,root) %{_libdir}/libv4l2rds.so
256 %attr(755,root,root) %{_libdir}/libv4lconvert.so
257 %{_includedir}/libv4l*.h
258 %{_includedir}/libdvbv5
259 %{_pkgconfigdir}/libdvbv5.pc
260 %{_pkgconfigdir}/libv4l1.pc
261 %{_pkgconfigdir}/libv4l2.pc
262 %{_pkgconfigdir}/libv4l2rds.pc
263 %{_pkgconfigdir}/libv4lconvert.pc
265 %files -n libv4l-static
266 %defattr(644,root,root,755)
267 %{_libdir}/libdvbv5.a
270 %{_libdir}/libv4l2rds.a
271 %{_libdir}/libv4lconvert.a