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