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