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