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