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