]>
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 |
81c0bc61 | 8 | Version: 1.14.2 |
6d6230fe | 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 |
81c0bc61 | 13 | # Source0-md5: 330f265c49122042b2340e4257a5c753 |
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 | |
0f571f58 | 26 | BuildRequires: gettext-tools >= 0.17 |
b0bb5368 | 27 | BuildRequires: libjpeg-devel |
5872d924 | 28 | BuildRequires: libstdc++-devel |
6ba44786 | 29 | BuildRequires: libtool |
6081edf3 | 30 | BuildRequires: pkgconfig |
c4427349 | 31 | BuildRequires: qt5-build >= 5.0 |
7f6240d5 | 32 | %{?with_udev:BuildRequires: udev-devel} |
6081edf3 JB |
33 | BuildRequires: xorg-lib-libX11-devel |
34 | Requires: libv4l = %{version}-%{release} | |
aac6eedb SP |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
24a22ca1 JB |
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. | |
aac6eedb | 41 | |
31abdcf1 JB |
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. | |
46 | ||
24a22ca1 | 47 | %package qt |
31abdcf1 JB |
48 | Summary: Qt-based V4L2 test Utility |
49 | Summary(pl.UTF-8): Narzędzie testowe V4L2 oparte na Qt | |
24a22ca1 JB |
50 | License: GPL v2+ |
51 | Group: X11/Applications | |
c4427349 JB |
52 | Requires: Qt5Core >= 5.0 |
53 | Requires: Qt5Gui >= 5.0 | |
54 | Requires: Qt5OpenGL >= 5.0 | |
55 | Requires: Qt5Widgets >= 5.0 | |
6081edf3 | 56 | Requires: libv4l = %{version}-%{release} |
335dd8cd | 57 | |
24a22ca1 | 58 | %description qt |
31abdcf1 JB |
59 | Graphical Qt V4L2 control panel. |
60 | ||
61 | %description qt -l pl.UTF-8 | |
62 | Graficzny panel kontrolny V4L2 oparty na Qt. | |
aac6eedb | 63 | |
5872d924 TP |
64 | %package -n ir-keytable |
65 | Summary: Alter keymaps of Remote Controller devices | |
31abdcf1 | 66 | Summary(pl.UTF-8): Zmiana map klawiszy urządzeń do zdalnego sterowania |
5872d924 TP |
67 | License: GPL v2+ |
68 | Group: Applications/Console | |
69 | ||
70 | %description -n ir-keytable | |
111595d9 TP |
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 | |
31abdcf1 JB |
75 | be customized and made persistent. |
76 | ||
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. | |
5872d924 | 84 | |
24a22ca1 JB |
85 | %package -n libv4l |
86 | Summary: Abstraction layer on top of video4linux2 devices | |
87 | Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2 | |
88 | License: LGPL v2.1+ | |
89 | Group: Libraries | |
5872d924 | 90 | |
24a22ca1 JB |
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 | |
96 | same class. | |
5872d924 | 97 | |
24a22ca1 JB |
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. | |
5872d924 | 103 | |
24a22ca1 JB |
104 | %package -n libv4l-devel |
105 | Summary: Header files for libv4l libraries | |
106 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l | |
107 | License: LGPL v2.1+ | |
108 | Group: Development/Libraries | |
109 | Requires: libv4l = %{version}-%{release} | |
81c0bc61 | 110 | %{?with_udev:Requires: udev-devel} |
24a22ca1 JB |
111 | |
112 | %description -n libv4l-devel | |
113 | Header files for libv4l libraries. | |
114 | ||
115 | %description -n libv4l-devel -l pl.UTF-8 | |
116 | Pliki nagłówkowe bibliotek libv4l. | |
5872d924 | 117 | |
6081edf3 JB |
118 | %package -n libv4l-static |
119 | Summary: Static libv4l libraries | |
120 | Summary(pl.UTF-8): Statyczne biblioteki libv4l | |
121 | License: LGPL v2.1+ | |
122 | Group: Development/Libraries | |
123 | Requires: libv4l-devel = %{version}-%{release} | |
124 | ||
125 | %description -n libv4l-static | |
126 | Static libv4l libraries. | |
127 | ||
128 | %description -n libv4l-static -l pl.UTF-8 | |
129 | Statyczne biblioteki libv4l. | |
130 | ||
aac6eedb | 131 | %prep |
24a22ca1 | 132 | %setup -q |
1e5a2ab1 | 133 | %patch0 -p1 |
81c0bc61 | 134 | %patch1 -p1 |
24a22ca1 | 135 | |
aac6eedb | 136 | %build |
6ba44786 JB |
137 | %{__libtoolize} |
138 | %{__aclocal} -I m4 | |
139 | %{__autoconf} | |
140 | %{__autoheader} | |
141 | %{__automake} | |
6081edf3 | 142 | %configure \ |
b0322f93 | 143 | --disable-silent-rules \ |
7f6240d5 JB |
144 | --enable-libdvbv5 \ |
145 | %{?with_udev:--with-libudev} | |
6081edf3 | 146 | %{__make} |
aac6eedb SP |
147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
76c43ba6 BZ |
150 | |
151 | %{__make} install \ | |
335dd8cd | 152 | DESTDIR=$RPM_BUILD_ROOT |
aac6eedb | 153 | |
81c0bc61 JB |
154 | install contrib/rds-saa6588/rds-saa6588 $RPM_BUILD_ROOT%{_bindir} |
155 | install contrib/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware | |
5872d924 | 156 | |
6081edf3 JB |
157 | # obsoleted by pkg-config |
158 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
159 | # dlopened modules | |
160 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/*.la | |
d6976fe7 | 161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/plugins/*.la |
6081edf3 | 162 | |
c4427349 JB |
163 | %find_lang libdvbv5 |
164 | %find_lang v4l-utils | |
165 | ||
aac6eedb SP |
166 | %clean |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
311fd358 JB |
169 | # handle transition from libv4l 0.8.x (.so.0 used to be libraries, not symlinks) |
170 | %pretrans -n libv4l | |
171 | for f in libv4l1 libv4l2 libv4lconvert ; do | |
172 | if [ ! -h %{_libdir}/${f}.so.0 ]; then | |
173 | rm -f %{_libdir}/${f}.so.0 | |
174 | fi | |
175 | done | |
176 | ||
24a22ca1 JB |
177 | %post -n libv4l -p /sbin/ldconfig |
178 | %postun -n libv4l -p /sbin/ldconfig | |
aac6eedb | 179 | |
c4427349 | 180 | %files -f v4l-utils.lang |
aac6eedb | 181 | %defattr(644,root,root,755) |
5872d924 | 182 | %doc ChangeLog README TODO contrib |
1e5a2ab1 JB |
183 | %attr(755,root,root) %{_bindir}/cec-compliance |
184 | %attr(755,root,root) %{_bindir}/cec-ctl | |
185 | %attr(755,root,root) %{_bindir}/cec-follower | |
31abdcf1 | 186 | %attr(755,root,root) %{_bindir}/cx18-ctl |
5872d924 | 187 | %attr(755,root,root) %{_bindir}/decode_tm6000 |
a82e0b64 JB |
188 | %attr(755,root,root) %{_bindir}/dvb-fe-tool |
189 | %attr(755,root,root) %{_bindir}/dvb-format-convert | |
1e5a2ab1 | 190 | %attr(755,root,root) %{_bindir}/dvbv5-daemon |
a82e0b64 JB |
191 | %attr(755,root,root) %{_bindir}/dvbv5-scan |
192 | %attr(755,root,root) %{_bindir}/dvbv5-zap | |
1e5a2ab1 | 193 | %attr(755,root,root) %{_bindir}/ir-ctl |
31abdcf1 | 194 | %attr(755,root,root) %{_bindir}/ivtv-ctl |
7f6240d5 | 195 | %attr(755,root,root) %{_bindir}/media-ctl |
6081edf3 | 196 | %attr(755,root,root) %{_bindir}/rds-ctl |
5872d924 | 197 | %attr(755,root,root) %{_bindir}/rds-saa6588 |
6081edf3 JB |
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 | |
5872d924 TP |
201 | %attr(755,root,root) %{_bindir}/xc3028-firmware |
202 | %attr(755,root,root) %{_sbindir}/v4l2-dbg | |
1e5a2ab1 JB |
203 | %{_mandir}/man1/cec-compliance.1* |
204 | %{_mandir}/man1/cec-ctl.1* | |
205 | %{_mandir}/man1/cec-follower.1* | |
66a59e17 JB |
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* | |
1e5a2ab1 | 210 | %{_mandir}/man1/ir-ctl.1* |
c4427349 JB |
211 | %{_mandir}/man1/v4l2-compliance.1* |
212 | %{_mandir}/man1/v4l2-ctl.1* | |
5872d924 | 213 | |
24a22ca1 JB |
214 | %files qt |
215 | %defattr(644,root,root,755) | |
5872d924 TP |
216 | %attr(755,root,root) %{_bindir}/qv4l2 |
217 | %{_desktopdir}/qv4l2.desktop | |
218 | %{_iconsdir}/hicolor/*/apps/qv4l2.* | |
7f6240d5 | 219 | %{_mandir}/man1/qv4l2.1* |
24a22ca1 JB |
220 | |
221 | %files -n ir-keytable | |
222 | %defattr(644,root,root,755) | |
31abdcf1 | 223 | %dir %{_sysconfdir}/rc_keymaps |
31abdcf1 | 224 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg |
6081edf3 | 225 | /lib/udev/rc_keymaps |
24a22ca1 JB |
226 | /lib/udev/rules.d/70-infrared.rules |
227 | %attr(755,root,root) %{_bindir}/ir-keytable | |
228 | %{_mandir}/man1/ir-keytable.1* | |
229 | ||
c4427349 | 230 | %files -n libv4l -f libdvbv5.lang |
24a22ca1 | 231 | %defattr(644,root,root,755) |
6081edf3 JB |
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 | |
31abdcf1 | 244 | %dir %{_libdir}/libv4l |
6081edf3 JB |
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 | |
d6976fe7 JB |
249 | %dir %{_libdir}/libv4l/plugins |
250 | %attr(755,root,root) %{_libdir}/libv4l/plugins/libv4l-mplane.so | |
24a22ca1 JB |
251 | |
252 | %files -n libv4l-devel | |
253 | %defattr(644,root,root,755) | |
254 | %doc README.lib* | |
6081edf3 | 255 | %attr(755,root,root) %{_libdir}/libdvbv5.so |
31abdcf1 JB |
256 | %attr(755,root,root) %{_libdir}/libv4l1.so |
257 | %attr(755,root,root) %{_libdir}/libv4l2.so | |
6081edf3 | 258 | %attr(755,root,root) %{_libdir}/libv4l2rds.so |
31abdcf1 | 259 | %attr(755,root,root) %{_libdir}/libv4lconvert.so |
24a22ca1 | 260 | %{_includedir}/libv4l*.h |
7f6240d5 | 261 | %{_includedir}/libdvbv5 |
6081edf3 | 262 | %{_pkgconfigdir}/libdvbv5.pc |
31abdcf1 JB |
263 | %{_pkgconfigdir}/libv4l1.pc |
264 | %{_pkgconfigdir}/libv4l2.pc | |
6081edf3 | 265 | %{_pkgconfigdir}/libv4l2rds.pc |
31abdcf1 | 266 | %{_pkgconfigdir}/libv4lconvert.pc |
6081edf3 JB |
267 | |
268 | %files -n libv4l-static | |
269 | %defattr(644,root,root,755) | |
270 | %{_libdir}/libdvbv5.a | |
271 | %{_libdir}/libv4l1.a | |
272 | %{_libdir}/libv4l2.a | |
273 | %{_libdir}/libv4l2rds.a | |
274 | %{_libdir}/libv4lconvert.a |