]> git.pld-linux.org Git - packages/v4l-utils.git/blame - v4l-utils.spec
- spec renamed from libv4l.spec to v4l-utils.spec; subpackage namespaces swapped
[packages/v4l-utils.git] / v4l-utils.spec
CommitLineData
24a22ca1
JB
1Summary: Collection of video4linux utilities
2Name: v4l-utils
5872d924 3Version: 0.8.5
aac6eedb 4Release: 1
24a22ca1
JB
5License: GPL v2+ (utilities), LGPL v2.1+ (libraries)
6Group: Applications/System
7Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
5872d924
TP
8# Source0-md5: 037bec9f68cfb0b84bcccb00d30e429b
9URL: http://hansdegoede.livejournal.com/
10BuildRequires: QtGui-devel
11BuildRequires: libstdc++-devel
12BuildRequires: sysfsutils
aac6eedb
SP
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
24a22ca1
JB
16A series of utilities for media devices, allowing to handle the
17proprietary formats available at most webcams (libv4l), and providing
18tools to test V4L devices.
aac6eedb 19
24a22ca1
JB
20%package qt
21Summary: Qt V4L2 test Utility
22License: GPL v2+
23Group: X11/Applications
335dd8cd 24
24a22ca1
JB
25%description qt
26Graphical Qt v4l2 control panel.
aac6eedb 27
5872d924
TP
28%package -n ir-keytable
29Summary: Alter keymaps of Remote Controller devices
30License: GPL v2+
31Group: Applications/Console
32
33%description -n ir-keytable
111595d9
TP
34Dump, Load or Modify IR receiver input tables. This package allows one
35to change the keymap of controller receivers. Those receivers are
36found as infrared receivers on DVB sticks or on framegrabber cards.
37Via ir-keytable the mapping from a scancode to the generated event can
38be customized and made persistent
5872d924 39
24a22ca1
JB
40%package -n libv4l
41Summary: Abstraction layer on top of video4linux2 devices
42Summary(pl.UTF-8): Warstwa abstrakcji dla urządzeń video4linux2
43License: LGPL v2.1+
44Group: Libraries
5872d924 45
24a22ca1
JB
46%description -n libv4l
47Collection of libraries which adds a thin abstraction layer on top of
48video4linux2 devices. The purpose of this (thin) layer is to make it
49easy for application writers to support a wide variety of devices
50without having to write seperate code for different devices in the
51same class.
5872d924 52
24a22ca1
JB
53%description -n libv4l -l pl.UTF-8
54libv4l to zestaw bibliotek dodający niewielką warstwę abstrakcji dla
55urządzeń video4linux2. Celem tej warstwy jest ułatwienie autorom
56aplikacji obsługi szerokiej gamy urządzeń bez pisania osobnego kodu
57dla różnych urządzeń tej samej klasy.
5872d924 58
24a22ca1
JB
59%package -n libv4l-devel
60Summary: Header files for libv4l libraries
61Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libv4l
62License: LGPL v2.1+
63Group: Development/Libraries
64Requires: libv4l = %{version}-%{release}
65
66%description -n libv4l-devel
67Header files for libv4l libraries.
68
69%description -n libv4l-devel -l pl.UTF-8
70Pliki nagłówkowe bibliotek libv4l.
5872d924 71
aac6eedb 72%prep
24a22ca1
JB
73%setup -q
74
5f209ac2 75%if "%{pld_release}" == "ac"
76%{__sed} -i 's/-fvisibility=hidden//' */Makefile
77%endif
aac6eedb
SP
78
79%build
5f209ac2 80%{__make} \
81 CC="%{__cc}" \
82 CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall" \
83 LDFLAGS="%{rpmcflags} %{rpmldflags}"
aac6eedb
SP
84
85%install
86rm -rf $RPM_BUILD_ROOT
76c43ba6
BZ
87
88%{__make} install \
335dd8cd
JB
89 PREFIX=%{_prefix} \
90 LIBDIR=%{_libdir} \
91 DESTDIR=$RPM_BUILD_ROOT
aac6eedb 92
5872d924
TP
93install utils/rds/rds-saa6588 $RPM_BUILD_ROOT%{_bindir}
94install utils/xc3028-firmware/firmware-tool $RPM_BUILD_ROOT%{_bindir}/xc3028-firmware
95
aac6eedb
SP
96%clean
97rm -rf $RPM_BUILD_ROOT
98
24a22ca1
JB
99%post -n libv4l -p /sbin/ldconfig
100%postun -n libv4l -p /sbin/ldconfig
aac6eedb
SP
101
102%files
103%defattr(644,root,root,755)
5872d924
TP
104%doc ChangeLog README TODO contrib
105%attr(755,root,root) %{_bindir}/*-ctl
106%attr(755,root,root) %{_bindir}/decode_tm6000
107%attr(755,root,root) %{_bindir}/rds-saa6588
108%attr(755,root,root) %{_bindir}/v4l2-*
109%attr(755,root,root) %{_bindir}/xc3028-firmware
110%attr(755,root,root) %{_sbindir}/v4l2-dbg
111
24a22ca1
JB
112%files qt
113%defattr(644,root,root,755)
5872d924
TP
114%attr(755,root,root) %{_bindir}/qv4l2
115%{_desktopdir}/qv4l2.desktop
116%{_iconsdir}/hicolor/*/apps/qv4l2.*
24a22ca1
JB
117
118%files -n ir-keytable
119%defattr(644,root,root,755)
120%config(noreplace) %{_sysconfdir}/rc_*
121/lib/udev/rules.d/70-infrared.rules
122%attr(755,root,root) %{_bindir}/ir-keytable
123%{_mandir}/man1/ir-keytable.1*
124
125%files -n libv4l
126%defattr(644,root,root,755)
127%attr(755,root,root) %{_libdir}/libv4l*.so.0
128%attr(755,root,root) %{_libdir}/libv4l
129
130%files -n libv4l-devel
131%defattr(644,root,root,755)
132%doc README.lib*
133%attr(755,root,root) %{_libdir}/libv4l*.so
134%{_includedir}/libv4l*.h
135%{_pkgconfigdir}/libv4l*.pc
This page took 0.045973 seconds and 4 git commands to generate.