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