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