]> git.pld-linux.org Git - packages/v4l-utils.git/blob - v4l-utils.spec
13200107371cbb11c137095bd12c867c32b1dacd
[packages/v4l-utils.git] / v4l-utils.spec
1 #
2 # Conditional build:
3 %bcond_without  udev    # using libudev to detect device name
4 #
5 Summary:        Collection of Video4Linux utilities
6 Summary(pl.UTF-8):      Zbiór narzędzi do urządzeń Video4Linux
7 Name:           v4l-utils
8 Version:        1.18.0
9 Release:        1
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:  18996bd5e9d83d47055c05de376708cd
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 # for bpf
27 BuildRequires:  clang
28 BuildRequires:  elfutils-devel
29 BuildRequires:  gettext-tools >= 0.19.8
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtool
33 BuildRequires:  pkgconfig
34 BuildRequires:  qt5-build >= 5.0
35 %{?with_udev:BuildRequires:     udev-devel}
36 BuildRequires:  xorg-lib-libX11-devel
37 Requires:       libv4l = %{version}-%{release}
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 # ELF files with some special architecture inside
41 %define         _noautostrip    /lib/udev/rc_keymaps/.*
42
43 %description
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.
47
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
53 %package qt
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
56 License:        GPL v2+
57 Group:          X11/Applications
58 Requires:       Qt5Core >= 5.0
59 Requires:       Qt5Gui >= 5.0
60 Requires:       Qt5OpenGL >= 5.0
61 Requires:       Qt5Widgets >= 5.0
62 Requires:       libv4l = %{version}-%{release}
63
64 %description qt
65 Graphical Qt V4L2 control panel and capture utility.
66
67 %description qt -l pl.UTF-8
68 Graficzny panel kontrolny V4L2 i narzędzie do przechwytywania obrazu
69 oparte na Qt.
70
71 %package -n ir-keytable
72 Summary:        Alter keymaps of Remote Controller devices
73 Summary(pl.UTF-8):      Zmiana map klawiszy urządzeń do zdalnego sterowania
74 License:        GPL v2+
75 Group:          Applications/Console
76
77 %description -n ir-keytable
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
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.
91
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
97
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.
104
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.
110
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}
117 %{?with_udev:Requires:  udev-devel}
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.
124
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
138 %prep
139 %setup -q
140 %patch0 -p1
141 %patch1 -p1
142
143 %build
144 %{__libtoolize}
145 %{__aclocal} -I m4
146 %{__autoconf}
147 %{__autoheader}
148 %{__automake}
149 %configure \
150         --disable-silent-rules \
151         --enable-libdvbv5 \
152         %{?with_udev:--with-libudev}
153 %{__make}
154
155 %install
156 rm -rf $RPM_BUILD_ROOT
157
158 %{__make} install \
159         DESTDIR=$RPM_BUILD_ROOT
160
161 install contrib/rds-saa6588/rds-saa6588 $RPM_BUILD_ROOT%{_bindir}
162 install contrib/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware
163
164 # obsoleted by pkg-config
165 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
166 # dlopened modules
167 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/*.la
168 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/plugins/*.la
169
170 %find_lang libdvbv5
171 %find_lang v4l-utils
172
173 # for find-debuginfo.sh
174 export EXCLUDE_FROM_STRIP="%{_noautostrip}"
175
176 %clean
177 rm -rf $RPM_BUILD_ROOT
178
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
187 %post   -n libv4l -p /sbin/ldconfig
188 %postun -n libv4l -p /sbin/ldconfig
189
190 %files -f v4l-utils.lang
191 %defattr(644,root,root,755)
192 %doc ChangeLog README TODO contrib
193 %attr(755,root,root) %{_bindir}/cec-compliance
194 %attr(755,root,root) %{_bindir}/cec-ctl
195 %attr(755,root,root) %{_bindir}/cec-follower
196 %attr(755,root,root) %{_bindir}/cx18-ctl
197 %attr(755,root,root) %{_bindir}/decode_tm6000
198 %attr(755,root,root) %{_bindir}/dvb-fe-tool
199 %attr(755,root,root) %{_bindir}/dvb-format-convert
200 %attr(755,root,root) %{_bindir}/dvbv5-daemon
201 %attr(755,root,root) %{_bindir}/dvbv5-scan
202 %attr(755,root,root) %{_bindir}/dvbv5-zap
203 %attr(755,root,root) %{_bindir}/ir-ctl
204 %attr(755,root,root) %{_bindir}/ivtv-ctl
205 %attr(755,root,root) %{_bindir}/media-ctl
206 %attr(755,root,root) %{_bindir}/rds-ctl
207 %attr(755,root,root) %{_bindir}/rds-saa6588
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
211 %attr(755,root,root) %{_bindir}/xc3028-firmware
212 %attr(755,root,root) %{_sbindir}/v4l2-dbg
213 %{_mandir}/man1/cec-compliance.1*
214 %{_mandir}/man1/cec-ctl.1*
215 %{_mandir}/man1/cec-follower.1*
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*
220 %{_mandir}/man1/ir-ctl.1*
221 %{_mandir}/man1/v4l2-compliance.1*
222 %{_mandir}/man1/v4l2-ctl.1*
223
224 %files qt
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_bindir}/qv4l2
227 %attr(755,root,root) %{_bindir}/qvidcap
228 %{_desktopdir}/qv4l2.desktop
229 %{_desktopdir}/qvidcap.desktop
230 %{_iconsdir}/hicolor/*/apps/qv4l2.*
231 %{_iconsdir}/hicolor/*/apps/qvidcap.*
232 %{_mandir}/man1/qv4l2.1*
233 %{_mandir}/man1/qvidcap.1*
234
235 %files -n ir-keytable
236 %defattr(644,root,root,755)
237 %dir %{_sysconfdir}/rc_keymaps
238 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg
239 /lib/udev/rc_keymaps
240 /lib/udev/rules.d/70-infrared.rules
241 %attr(755,root,root) %{_bindir}/ir-keytable
242 %{_mandir}/man1/ir-keytable.1*
243 %{_mandir}/man5/rc_keymap.5*
244
245 %files -n libv4l -f libdvbv5.lang
246 %defattr(644,root,root,755)
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
259 %dir %{_libdir}/libv4l
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
264 %dir %{_libdir}/libv4l/plugins
265 %attr(755,root,root) %{_libdir}/libv4l/plugins/libv4l-mplane.so
266
267 %files -n libv4l-devel
268 %defattr(644,root,root,755)
269 %doc README.lib*
270 %attr(755,root,root) %{_libdir}/libdvbv5.so
271 %attr(755,root,root) %{_libdir}/libv4l1.so
272 %attr(755,root,root) %{_libdir}/libv4l2.so
273 %attr(755,root,root) %{_libdir}/libv4l2rds.so
274 %attr(755,root,root) %{_libdir}/libv4lconvert.so
275 %{_includedir}/libv4l*.h
276 %{_includedir}/libdvbv5
277 %{_pkgconfigdir}/libdvbv5.pc
278 %{_pkgconfigdir}/libv4l1.pc
279 %{_pkgconfigdir}/libv4l2.pc
280 %{_pkgconfigdir}/libv4l2rds.pc
281 %{_pkgconfigdir}/libv4lconvert.pc
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
This page took 0.098778 seconds and 2 git commands to generate.