]> git.pld-linux.org Git - packages/v4l-utils.git/blob - v4l-utils.spec
5bb068edf497517fa18eb888b848045d542cf82a
[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.8.1
9 Release:        1
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
13 # Source0-md5:  f86d0938e46fde821dc10d4d2f6636e4
14 URL:            http://hansdegoede.livejournal.com/
15 BuildRequires:  OpenGL-devel
16 BuildRequires:  OpenGL-GLU-devel
17 BuildRequires:  Qt5Core-devel >= 5.0
18 BuildRequires:  Qt5Gui-devel >= 5.0
19 BuildRequires:  Qt5OpenGL-devel >= 5.0
20 BuildRequires:  Qt5Widgets-devel >= 5.0
21 BuildRequires:  alsa-lib-devel
22 BuildRequires:  autoconf >= 2.59
23 BuildRequires:  automake >= 1:1.9
24 BuildRequires:  gettext-tools >= 0.17
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool
28 BuildRequires:  pkgconfig
29 BuildRequires:  qt5-build >= 5.0
30 %{?with_udev:BuildRequires:     udev-devel}
31 BuildRequires:  xorg-lib-libX11-devel
32 Requires:       libv4l = %{version}-%{release}
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
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.
39
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
45 %package qt
46 Summary:        Qt-based V4L2 test Utility
47 Summary(pl.UTF-8):      Narzędzie testowe V4L2 oparte na Qt
48 License:        GPL v2+
49 Group:          X11/Applications
50 Requires:       Qt5Core >= 5.0
51 Requires:       Qt5Gui >= 5.0
52 Requires:       Qt5OpenGL >= 5.0
53 Requires:       Qt5Widgets >= 5.0
54 Requires:       libv4l = %{version}-%{release}
55
56 %description qt
57 Graphical Qt V4L2 control panel.
58
59 %description qt -l pl.UTF-8
60 Graficzny panel kontrolny V4L2 oparty na Qt.
61
62 %package -n ir-keytable
63 Summary:        Alter keymaps of Remote Controller devices
64 Summary(pl.UTF-8):      Zmiana map klawiszy urządzeń do zdalnego sterowania
65 License:        GPL v2+
66 Group:          Applications/Console
67
68 %description -n ir-keytable
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
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.
82
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
88
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.
95
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.
101
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.
114
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
128 %prep
129 %setup -q
130
131 %build
132 %{__libtoolize}
133 %{__aclocal} -I m4
134 %{__autoconf}
135 %{__autoheader}
136 %{__automake}
137 %configure \
138         --disable-silent-rules \
139         --enable-libdvbv5 \
140         %{?with_udev:--with-libudev}
141 %{__make}
142
143 %install
144 rm -rf $RPM_BUILD_ROOT
145
146 %{__make} install \
147         DESTDIR=$RPM_BUILD_ROOT
148
149 install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir}
150 install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware
151
152 # obsoleted by pkg-config
153 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
154 # dlopened modules
155 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/*.la
156 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libv4l/plugins/*.la
157
158 %find_lang libdvbv5
159 %find_lang v4l-utils
160
161 %clean
162 rm -rf $RPM_BUILD_ROOT
163
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
172 %post   -n libv4l -p /sbin/ldconfig
173 %postun -n libv4l -p /sbin/ldconfig
174
175 %files -f v4l-utils.lang
176 %defattr(644,root,root,755)
177 %doc ChangeLog README TODO contrib
178 %attr(755,root,root) %{_bindir}/cx18-ctl
179 %attr(755,root,root) %{_bindir}/decode_tm6000
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
184 %attr(755,root,root) %{_bindir}/ivtv-ctl
185 %attr(755,root,root) %{_bindir}/media-ctl
186 %attr(755,root,root) %{_bindir}/rds-ctl
187 %attr(755,root,root) %{_bindir}/rds-saa6588
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
191 %attr(755,root,root) %{_bindir}/xc3028-firmware
192 %attr(755,root,root) %{_sbindir}/v4l2-dbg
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*
197 %{_mandir}/man1/v4l2-compliance.1*
198 %{_mandir}/man1/v4l2-ctl.1*
199
200 %files qt
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_bindir}/qv4l2
203 %{_desktopdir}/qv4l2.desktop
204 %{_iconsdir}/hicolor/*/apps/qv4l2.*
205 %{_mandir}/man1/qv4l2.1*
206
207 %files -n ir-keytable
208 %defattr(644,root,root,755)
209 %dir %{_sysconfdir}/rc_keymaps
210 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg
211 /lib/udev/rc_keymaps
212 /lib/udev/rules.d/70-infrared.rules
213 %attr(755,root,root) %{_bindir}/ir-keytable
214 %{_mandir}/man1/ir-keytable.1*
215
216 %files -n libv4l -f libdvbv5.lang
217 %defattr(644,root,root,755)
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
230 %dir %{_libdir}/libv4l
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
235 %dir %{_libdir}/libv4l/plugins
236 %attr(755,root,root) %{_libdir}/libv4l/plugins/libv4l-mplane.so
237
238 %files -n libv4l-devel
239 %defattr(644,root,root,755)
240 %doc README.lib*
241 %attr(755,root,root) %{_libdir}/libdvbv5.so
242 %attr(755,root,root) %{_libdir}/libv4l1.so
243 %attr(755,root,root) %{_libdir}/libv4l2.so
244 %attr(755,root,root) %{_libdir}/libv4l2rds.so
245 %attr(755,root,root) %{_libdir}/libv4lconvert.so
246 %{_includedir}/libv4l*.h
247 %{_includedir}/libdvbv5
248 %{_pkgconfigdir}/libdvbv5.pc
249 %{_pkgconfigdir}/libv4l1.pc
250 %{_pkgconfigdir}/libv4l2.pc
251 %{_pkgconfigdir}/libv4l2rds.pc
252 %{_pkgconfigdir}/libv4lconvert.pc
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
This page took 0.436469 seconds and 2 git commands to generate.