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