]> git.pld-linux.org Git - packages/v4l-utils.git/blame - v4l-utils.spec
- updated to 1.14.2
[packages/v4l-utils.git] / v4l-utils.spec
CommitLineData
7f6240d5
JB
1#
2# Conditional build:
3%bcond_without udev # using libudev to detect device name
4#
31abdcf1
JB
5Summary: Collection of Video4Linux utilities
6Summary(pl.UTF-8): Zbiór narzędzi do urządzeń Video4Linux
24a22ca1 7Name: v4l-utils
81c0bc61 8Version: 1.14.2
6d6230fe 9Release: 1
24a22ca1
JB
10License: GPL v2+ (utilities), LGPL v2.1+ (libraries)
11Group: Applications/System
dd68ed77 12Source0: https://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
81c0bc61 13# Source0-md5: 330f265c49122042b2340e4257a5c753
1e5a2ab1 14Patch0: %{name}-link.patch
81c0bc61 15Patch1: %{name}-glibc.patch
dd68ed77 16URL: https://linuxtv.org/wiki/index.php/V4l-utils
7f6240d5
JB
17BuildRequires: OpenGL-devel
18BuildRequires: OpenGL-GLU-devel
c4427349
JB
19BuildRequires: Qt5Core-devel >= 5.0
20BuildRequires: Qt5Gui-devel >= 5.0
21BuildRequires: Qt5OpenGL-devel >= 5.0
22BuildRequires: Qt5Widgets-devel >= 5.0
7f6240d5 23BuildRequires: alsa-lib-devel
6ba44786
JB
24BuildRequires: autoconf >= 2.59
25BuildRequires: automake >= 1:1.9
0f571f58 26BuildRequires: gettext-tools >= 0.17
b0bb5368 27BuildRequires: libjpeg-devel
5872d924 28BuildRequires: libstdc++-devel
6ba44786 29BuildRequires: libtool
6081edf3 30BuildRequires: pkgconfig
c4427349 31BuildRequires: qt5-build >= 5.0
7f6240d5 32%{?with_udev:BuildRequires: udev-devel}
6081edf3
JB
33BuildRequires: xorg-lib-libX11-devel
34Requires: libv4l = %{version}-%{release}
aac6eedb
SP
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
24a22ca1
JB
38A series of utilities for media devices, allowing to handle the
39proprietary formats available at most webcams (libv4l), and providing
40tools to test V4L devices.
aac6eedb 41
31abdcf1
JB
42%description -l pl.UTF-8
43Zbiór narzędzi do urządzeń multimedialnych, pozwalający obsługiwać
44wł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
48Summary: Qt-based V4L2 test Utility
49Summary(pl.UTF-8): Narzędzie testowe V4L2 oparte na Qt
24a22ca1
JB
50License: GPL v2+
51Group: X11/Applications
c4427349
JB
52Requires: Qt5Core >= 5.0
53Requires: Qt5Gui >= 5.0
54Requires: Qt5OpenGL >= 5.0
55Requires: Qt5Widgets >= 5.0
6081edf3 56Requires: libv4l = %{version}-%{release}
335dd8cd 57
24a22ca1 58%description qt
31abdcf1
JB
59Graphical Qt V4L2 control panel.
60
61%description qt -l pl.UTF-8
62Graficzny panel kontrolny V4L2 oparty na Qt.
aac6eedb 63
5872d924
TP
64%package -n ir-keytable
65Summary: Alter keymaps of Remote Controller devices
31abdcf1 66Summary(pl.UTF-8): Zmiana map klawiszy urządzeń do zdalnego sterowania
5872d924
TP
67License: GPL v2+
68Group: Applications/Console
69
70%description -n ir-keytable
111595d9
TP
71Dump, Load or Modify IR receiver input tables. This package allows one
72to change the keymap of controller receivers. Those receivers are
73found as infrared receivers on DVB sticks or on framegrabber cards.
74Via ir-keytable the mapping from a scancode to the generated event can
31abdcf1
JB
75be customized and made persistent.
76
77%description -n ir-keytable -l pl.UTF-8
78ir-keytable to narzędzie pozwalające na zrzucanie, wczytywanie i
79modyfikowanie tablic wejściowych odbiorników podczerwieni (IR). Ten
80pakiet pozwala na zmianę tablic klawiszy odbiorników pilotów.
81Odbiorniki podczerwieni występują na interfejsach DVB lub kartach
82framegrabberów. Dzięki użyciu ir-keytable można zmienić i zachować
83odwzorowania między skankodami a generowanymi zdarzeniami.
5872d924 84
24a22ca1
JB
85%package -n libv4l
86Summary: Abstraction layer on top of video4linux2 devices
87Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2
88License: LGPL v2.1+
89Group: Libraries
5872d924 90
24a22ca1
JB
91%description -n libv4l
92Collection of libraries which adds a thin abstraction layer on top of
93video4linux2 devices. The purpose of this (thin) layer is to make it
94easy for application writers to support a wide variety of devices
95without having to write seperate code for different devices in the
96same class.
5872d924 97
24a22ca1
JB
98%description -n libv4l -l pl.UTF-8
99libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla
100urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom
101aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu
102dla różnych urządzeń tej samej klasy.
5872d924 103
24a22ca1
JB
104%package -n libv4l-devel
105Summary: Header files for libv4l libraries
106Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l
107License: LGPL v2.1+
108Group: Development/Libraries
109Requires: libv4l = %{version}-%{release}
81c0bc61 110%{?with_udev:Requires: udev-devel}
24a22ca1
JB
111
112%description -n libv4l-devel
113Header files for libv4l libraries.
114
115%description -n libv4l-devel -l pl.UTF-8
116Pliki nagłówkowe bibliotek libv4l.
5872d924 117
6081edf3
JB
118%package -n libv4l-static
119Summary: Static libv4l libraries
120Summary(pl.UTF-8): Statyczne biblioteki libv4l
121License: LGPL v2.1+
122Group: Development/Libraries
123Requires: libv4l-devel = %{version}-%{release}
124
125%description -n libv4l-static
126Static libv4l libraries.
127
128%description -n libv4l-static -l pl.UTF-8
129Statyczne 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
149rm -rf $RPM_BUILD_ROOT
76c43ba6
BZ
150
151%{__make} install \
335dd8cd 152 DESTDIR=$RPM_BUILD_ROOT
aac6eedb 153
81c0bc61
JB
154install contrib/rds-saa6588/rds-saa6588 $RPM_BUILD_ROOT%{_bindir}
155install 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
167rm -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
171for f in libv4l1 libv4l2 libv4lconvert ; do
172 if [ ! -h %{_libdir}/${f}.so.0 ]; then
173 rm -f %{_libdir}/${f}.so.0
174 fi
175done
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
This page took 0.098181 seconds and 4 git commands to generate.