]>
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 |
b0bb5368 | 4 | Version: 0.8.6 |
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 | |
b0bb5368 | 9 | # Source0-md5: 80062780ae90e5955473b09b31e9828a |
5872d924 TP |
10 | URL: http://hansdegoede.livejournal.com/ |
11 | BuildRequires: QtGui-devel | |
b0bb5368 | 12 | BuildRequires: libjpeg-devel |
5872d924 | 13 | BuildRequires: libstdc++-devel |
aac6eedb SP |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
24a22ca1 JB |
17 | A series of utilities for media devices, allowing to handle the |
18 | proprietary formats available at most webcams (libv4l), and providing | |
19 | tools to test V4L devices. | |
aac6eedb | 20 | |
31abdcf1 JB |
21 | %description -l pl.UTF-8 |
22 | Zbiór narzędzi do urządzeń multimedialnych, pozwalający obsługiwać | |
23 | własnościowe formaty dostępne w większości kamer internetowych | |
24 | (libv4l) oraz testować urządzenia V4L. | |
25 | ||
24a22ca1 | 26 | %package qt |
31abdcf1 JB |
27 | Summary: Qt-based V4L2 test Utility |
28 | Summary(pl.UTF-8): Narzędzie testowe V4L2 oparte na Qt | |
24a22ca1 JB |
29 | License: GPL v2+ |
30 | Group: X11/Applications | |
335dd8cd | 31 | |
24a22ca1 | 32 | %description qt |
31abdcf1 JB |
33 | Graphical Qt V4L2 control panel. |
34 | ||
35 | %description qt -l pl.UTF-8 | |
36 | Graficzny panel kontrolny V4L2 oparty na Qt. | |
aac6eedb | 37 | |
5872d924 TP |
38 | %package -n ir-keytable |
39 | Summary: Alter keymaps of Remote Controller devices | |
31abdcf1 | 40 | Summary(pl.UTF-8): Zmiana map klawiszy urządzeń do zdalnego sterowania |
5872d924 TP |
41 | License: GPL v2+ |
42 | Group: Applications/Console | |
43 | ||
44 | %description -n ir-keytable | |
111595d9 TP |
45 | Dump, Load or Modify IR receiver input tables. This package allows one |
46 | to change the keymap of controller receivers. Those receivers are | |
47 | found as infrared receivers on DVB sticks or on framegrabber cards. | |
48 | Via ir-keytable the mapping from a scancode to the generated event can | |
31abdcf1 JB |
49 | be customized and made persistent. |
50 | ||
51 | %description -n ir-keytable -l pl.UTF-8 | |
52 | ir-keytable to narzędzie pozwalające na zrzucanie, wczytywanie i | |
53 | modyfikowanie tablic wejściowych odbiorników podczerwieni (IR). Ten | |
54 | pakiet pozwala na zmianę tablic klawiszy odbiorników pilotów. | |
55 | Odbiorniki podczerwieni występują na interfejsach DVB lub kartach | |
56 | framegrabberów. Dzięki użyciu ir-keytable można zmienić i zachować | |
57 | odwzorowania między skankodami a generowanymi zdarzeniami. | |
5872d924 | 58 | |
24a22ca1 JB |
59 | %package -n libv4l |
60 | Summary: Abstraction layer on top of video4linux2 devices | |
61 | Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2 | |
62 | License: LGPL v2.1+ | |
63 | Group: Libraries | |
5872d924 | 64 | |
24a22ca1 JB |
65 | %description -n libv4l |
66 | Collection of libraries which adds a thin abstraction layer on top of | |
67 | video4linux2 devices. The purpose of this (thin) layer is to make it | |
68 | easy for application writers to support a wide variety of devices | |
69 | without having to write seperate code for different devices in the | |
70 | same class. | |
5872d924 | 71 | |
24a22ca1 JB |
72 | %description -n libv4l -l pl.UTF-8 |
73 | libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla | |
74 | urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom | |
75 | aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu | |
76 | dla różnych urządzeń tej samej klasy. | |
5872d924 | 77 | |
24a22ca1 JB |
78 | %package -n libv4l-devel |
79 | Summary: Header files for libv4l libraries | |
80 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l | |
81 | License: LGPL v2.1+ | |
82 | Group: Development/Libraries | |
83 | Requires: libv4l = %{version}-%{release} | |
84 | ||
85 | %description -n libv4l-devel | |
86 | Header files for libv4l libraries. | |
87 | ||
88 | %description -n libv4l-devel -l pl.UTF-8 | |
89 | Pliki nagłówkowe bibliotek libv4l. | |
5872d924 | 90 | |
aac6eedb | 91 | %prep |
24a22ca1 JB |
92 | %setup -q |
93 | ||
5f209ac2 | 94 | %if "%{pld_release}" == "ac" |
95 | %{__sed} -i 's/-fvisibility=hidden//' */Makefile | |
96 | %endif | |
aac6eedb SP |
97 | |
98 | %build | |
5f209ac2 | 99 | %{__make} \ |
100 | CC="%{__cc}" \ | |
31abdcf1 | 101 | CXX="%{__cxx}" \ |
5f209ac2 | 102 | CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall" \ |
31abdcf1 | 103 | CXXFLAGS="%{rpmcppflags} %{rpmcxxflags} -Wall" \ |
5f209ac2 | 104 | LDFLAGS="%{rpmcflags} %{rpmldflags}" |
aac6eedb SP |
105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
76c43ba6 BZ |
108 | |
109 | %{__make} install \ | |
335dd8cd JB |
110 | PREFIX=%{_prefix} \ |
111 | LIBDIR=%{_libdir} \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
aac6eedb | 113 | |
5872d924 TP |
114 | install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir} |
115 | install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware | |
116 | ||
aac6eedb SP |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
24a22ca1 JB |
120 | %post -n libv4l -p /sbin/ldconfig |
121 | %postun -n libv4l -p /sbin/ldconfig | |
aac6eedb SP |
122 | |
123 | %files | |
124 | %defattr(644,root,root,755) | |
5872d924 | 125 | %doc ChangeLog README TODO contrib |
31abdcf1 | 126 | %attr(755,root,root) %{_bindir}/cx18-ctl |
5872d924 | 127 | %attr(755,root,root) %{_bindir}/decode_tm6000 |
31abdcf1 | 128 | %attr(755,root,root) %{_bindir}/ivtv-ctl |
5872d924 TP |
129 | %attr(755,root,root) %{_bindir}/rds-saa6588 |
130 | %attr(755,root,root) %{_bindir}/v4l2-* | |
131 | %attr(755,root,root) %{_bindir}/xc3028-firmware | |
132 | %attr(755,root,root) %{_sbindir}/v4l2-dbg | |
133 | ||
24a22ca1 JB |
134 | %files qt |
135 | %defattr(644,root,root,755) | |
5872d924 TP |
136 | %attr(755,root,root) %{_bindir}/qv4l2 |
137 | %{_desktopdir}/qv4l2.desktop | |
138 | %{_iconsdir}/hicolor/*/apps/qv4l2.* | |
24a22ca1 JB |
139 | |
140 | %files -n ir-keytable | |
141 | %defattr(644,root,root,755) | |
31abdcf1 JB |
142 | %dir %{_sysconfdir}/rc_keymaps |
143 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_keymaps/* | |
144 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rc_maps.cfg | |
24a22ca1 JB |
145 | /lib/udev/rules.d/70-infrared.rules |
146 | %attr(755,root,root) %{_bindir}/ir-keytable | |
147 | %{_mandir}/man1/ir-keytable.1* | |
148 | ||
149 | %files -n libv4l | |
150 | %defattr(644,root,root,755) | |
31abdcf1 JB |
151 | %attr(755,root,root) %{_libdir}/libv4l1.so.0 |
152 | %attr(755,root,root) %{_libdir}/libv4l2.so.0 | |
153 | %attr(755,root,root) %{_libdir}/libv4lconvert.so.0 | |
154 | %dir %{_libdir}/libv4l | |
155 | %attr(755,root,root) %{_libdir}/libv4l/* | |
24a22ca1 JB |
156 | |
157 | %files -n libv4l-devel | |
158 | %defattr(644,root,root,755) | |
159 | %doc README.lib* | |
31abdcf1 JB |
160 | %attr(755,root,root) %{_libdir}/libv4l1.so |
161 | %attr(755,root,root) %{_libdir}/libv4l2.so | |
162 | %attr(755,root,root) %{_libdir}/libv4lconvert.so | |
24a22ca1 | 163 | %{_includedir}/libv4l*.h |
31abdcf1 JB |
164 | %{_pkgconfigdir}/libv4l1.pc |
165 | %{_pkgconfigdir}/libv4l2.pc | |
166 | %{_pkgconfigdir}/libv4lconvert.pc |