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