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: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
13 # Source0-md5: f86d0938e46fde821dc10d4d2f6636e4
14 URL: http://hansdegoede.livejournal.com/
15 BuildRequires: OpenGL-devel
16 BuildRequires: OpenGL-GLU-devel
17 BuildRequires: Qt5Core-devel >= 5.0
18 BuildRequires: Qt5Gui-devel >= 5.0
19 BuildRequires: Qt5OpenGL-devel >= 5.0
20 BuildRequires: Qt5Widgets-devel >= 5.0
21 BuildRequires: alsa-lib-devel
22 BuildRequires: autoconf >= 2.59
23 BuildRequires: automake >= 1:1.9
24 BuildRequires: gettext-tools >= 0.17
25 BuildRequires: libjpeg-devel
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool
28 BuildRequires: pkgconfig
29 BuildRequires: qt5-build >= 5.0
30 %{?with_udev:BuildRequires: udev-devel}
31 BuildRequires: xorg-lib-libX11-devel
32 Requires: libv4l = %{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
46 Summary: Qt-based V4L2 test Utility
47 Summary(pl.UTF-8): Narzędzie testowe V4L2 oparte na Qt
49 Group: X11/Applications
50 Requires: Qt5Core >= 5.0
51 Requires: Qt5Gui >= 5.0
52 Requires: Qt5OpenGL >= 5.0
53 Requires: Qt5Widgets >= 5.0
54 Requires: libv4l = %{version}-%{release}
57 Graphical Qt V4L2 control panel.
59 %description qt -l pl.UTF-8
60 Graficzny panel kontrolny V4L2 oparty na Qt.
62 %package -n ir-keytable
63 Summary: Alter keymaps of Remote Controller devices
64 Summary(pl.UTF-8): Zmiana map klawiszy urządzeń do zdalnego sterowania
66 Group: Applications/Console
68 %description -n ir-keytable
69 Dump, Load or Modify IR receiver input tables. This package allows one
70 to change the keymap of controller receivers. Those receivers are
71 found as infrared receivers on DVB sticks or on framegrabber cards.
72 Via ir-keytable the mapping from a scancode to the generated event can
73 be customized and made persistent.
75 %description -n ir-keytable -l pl.UTF-8
76 ir-keytable to narzędzie pozwalające na zrzucanie, wczytywanie i
77 modyfikowanie tablic wejściowych odbiorników podczerwieni (IR). Ten
78 pakiet pozwala na zmianę tablic klawiszy odbiorników pilotów.
79 Odbiorniki podczerwieni występują na interfejsach DVB lub kartach
80 framegrabberów. Dzięki użyciu ir-keytable można zmienić i zachować
81 odwzorowania między skankodami a generowanymi zdarzeniami.
84 Summary: Abstraction layer on top of video4linux2 devices
85 Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2
89 %description -n libv4l
90 Collection of libraries which adds a thin abstraction layer on top of
91 video4linux2 devices. The purpose of this (thin) layer is to make it
92 easy for application writers to support a wide variety of devices
93 without having to write seperate code for different devices in the
96 %description -n libv4l -l pl.UTF-8
97 libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla
98 urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom
99 aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu
100 dla różnych urządzeń tej samej klasy.
102 %package -n libv4l-devel
103 Summary: Header files for libv4l libraries
104 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l
106 Group: Development/Libraries
107 Requires: libv4l = %{version}-%{release}
109 %description -n libv4l-devel
110 Header files for libv4l libraries.
112 %description -n libv4l-devel -l pl.UTF-8
113 Pliki nagłówkowe bibliotek libv4l.
115 %package -n libv4l-static
116 Summary: Static libv4l libraries
117 Summary(pl.UTF-8): Statyczne biblioteki libv4l
119 Group: Development/Libraries
120 Requires: libv4l-devel = %{version}-%{release}
122 %description -n libv4l-static
123 Static libv4l libraries.
125 %description -n libv4l-static -l pl.UTF-8
126 Statyczne biblioteki libv4l.
138 --disable-silent-rules \
140 %{?with_udev:--with-libudev}
144 rm -rf $RPM_BUILD_ROOT
147 DESTDIR=$RPM_BUILD_ROOT
149 install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir}
150 install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware
152 # obsoleted by pkg-config
153 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
155 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/*.la
156 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/plugins/*.la
162 rm -rf $RPM_BUILD_ROOT
164 # handle transition from libv4l 0.8.x (.so.0 used to be libraries, not symlinks)
166 for f in libv4l1 libv4l2 libv4lconvert ; do
167 if [ ! -h %{_libdir}/${f}.so.0 ]; then
168 rm -f %{_libdir}/${f}.so.0
172 %post -n libv4l -p /sbin/ldconfig
173 %postun -n libv4l -p /sbin/ldconfig
175 %files -f v4l-utils.lang
176 %defattr(644,root,root,755)
177 %doc ChangeLog README TODO contrib
178 %attr(755,root,root) %{_bindir}/cx18-ctl
179 %attr(755,root,root) %{_bindir}/decode_tm6000
180 %attr(755,root,root) %{_bindir}/dvb-fe-tool
181 %attr(755,root,root) %{_bindir}/dvb-format-convert
182 %attr(755,root,root) %{_bindir}/dvbv5-scan
183 %attr(755,root,root) %{_bindir}/dvbv5-zap
184 %attr(755,root,root) %{_bindir}/ivtv-ctl
185 %attr(755,root,root) %{_bindir}/media-ctl
186 %attr(755,root,root) %{_bindir}/rds-ctl
187 %attr(755,root,root) %{_bindir}/rds-saa6588
188 %attr(755,root,root) %{_bindir}/v4l2-compliance
189 %attr(755,root,root) %{_bindir}/v4l2-ctl
190 %attr(755,root,root) %{_bindir}/v4l2-sysfs-path
191 %attr(755,root,root) %{_bindir}/xc3028-firmware
192 %attr(755,root,root) %{_sbindir}/v4l2-dbg
193 %{_mandir}/man1/dvb-fe-tool.1*
194 %{_mandir}/man1/dvb-format-convert.1*
195 %{_mandir}/man1/dvbv5-scan.1*
196 %{_mandir}/man1/dvbv5-zap.1*
197 %{_mandir}/man1/v4l2-compliance.1*
198 %{_mandir}/man1/v4l2-ctl.1*
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_bindir}/qv4l2
203 %{_desktopdir}/qv4l2.desktop
204 %{_iconsdir}/hicolor/*/apps/qv4l2.*
205 %{_mandir}/man1/qv4l2.1*
207 %files -n ir-keytable
208 %defattr(644,root,root,755)
209 %dir %{_sysconfdir}/rc_keymaps
210 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg
212 /lib/udev/rules.d/70-infrared.rules
213 %attr(755,root,root) %{_bindir}/ir-keytable
214 %{_mandir}/man1/ir-keytable.1*
216 %files -n libv4l -f libdvbv5.lang
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libdvbv5.so.*.*.*
219 %attr(755,root,root) %ghost %{_libdir}/libdvbv5.so.0
220 %attr(755,root,root) %{_libdir}/libv4l1.so.*.*.*
221 %attr(755,root,root) %ghost %{_libdir}/libv4l1.so.0
222 %attr(755,root,root) %{_libdir}/libv4l2.so.*.*.*
223 %attr(755,root,root) %ghost %{_libdir}/libv4l2.so.0
224 %attr(755,root,root) %{_libdir}/libv4l2rds.so.*.*.*
225 %attr(755,root,root) %ghost %{_libdir}/libv4l2rds.so.0
226 %attr(755,root,root) %{_libdir}/libv4lconvert.so.*.*.*
227 %attr(755,root,root) %ghost %{_libdir}/libv4lconvert.so.0
228 %attr(755,root,root) %{_libdir}/v4l1compat.so
229 %attr(755,root,root) %{_libdir}/v4l2convert.so
230 %dir %{_libdir}/libv4l
231 %attr(755,root,root) %{_libdir}/libv4l/ov511-decomp
232 %attr(755,root,root) %{_libdir}/libv4l/ov518-decomp
233 %attr(755,root,root) %{_libdir}/libv4l/v4l1compat.so
234 %attr(755,root,root) %{_libdir}/libv4l/v4l2convert.so
235 %dir %{_libdir}/libv4l/plugins
236 %attr(755,root,root) %{_libdir}/libv4l/plugins/libv4l-mplane.so
238 %files -n libv4l-devel
239 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libdvbv5.so
242 %attr(755,root,root) %{_libdir}/libv4l1.so
243 %attr(755,root,root) %{_libdir}/libv4l2.so
244 %attr(755,root,root) %{_libdir}/libv4l2rds.so
245 %attr(755,root,root) %{_libdir}/libv4lconvert.so
246 %{_includedir}/libv4l*.h
247 %{_includedir}/libdvbv5
248 %{_pkgconfigdir}/libdvbv5.pc
249 %{_pkgconfigdir}/libv4l1.pc
250 %{_pkgconfigdir}/libv4l2.pc
251 %{_pkgconfigdir}/libv4l2rds.pc
252 %{_pkgconfigdir}/libv4lconvert.pc
254 %files -n libv4l-static
255 %defattr(644,root,root,755)
256 %{_libdir}/libdvbv5.a
259 %{_libdir}/libv4l2rds.a
260 %{_libdir}/libv4lconvert.a