2011-05-12 21:34:56 +02:00
|
|
|
#
|
|
|
|
# spec file for package v4l-utils
|
|
|
|
#
|
2015-02-02 09:04:52 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-12 21:34:56 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%define _udevdir %(pkg-config --variable udevdir udev)
|
|
|
|
%define so_ver 0
|
2011-05-12 21:34:56 +02:00
|
|
|
Name: v4l-utils
|
2015-09-26 21:10:06 +02:00
|
|
|
Version: 1.8.0
|
2012-02-26 22:28:44 +01:00
|
|
|
Release: 0
|
2015-02-02 09:04:52 +01:00
|
|
|
Summary: Utilities for video4linux
|
2011-12-06 19:11:06 +01:00
|
|
|
License: GPL-2.0+ and GPL-2.0
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: Hardware/TV
|
2012-02-26 22:28:44 +01:00
|
|
|
Url: http://linuxtv.org/downloads/v4l-utils/
|
2011-05-12 21:34:56 +02:00
|
|
|
Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
|
2015-09-26 21:10:06 +02:00
|
|
|
Source1: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
2011-05-12 21:34:56 +02:00
|
|
|
Source100: baselibs.conf
|
2014-07-27 14:22:14 +02:00
|
|
|
BuildRequires: alsa-devel
|
2015-02-02 09:04:52 +01:00
|
|
|
BuildRequires: doxygen
|
2011-05-12 21:34:56 +02:00
|
|
|
BuildRequires: kernel-headers
|
2012-02-26 22:28:44 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
2014-06-05 08:18:07 +02:00
|
|
|
BuildRequires: pkg-config
|
2011-08-21 19:43:38 +02:00
|
|
|
BuildRequires: udev
|
2015-03-13 15:55:41 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2011-05-12 21:34:56 +02:00
|
|
|
Requires: libv4l = %{version}
|
|
|
|
Requires: udev
|
2012-02-26 22:28:44 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-09-26 21:10:06 +02:00
|
|
|
%if 0%{?suse_version} > 1310
|
|
|
|
BuildRequires: glu-devel
|
|
|
|
BuildRequires: libqt5-qtbase-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1230
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: libtool
|
|
|
|
%endif
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%description
|
2015-02-02 09:04:52 +01:00
|
|
|
v4l-utils is a collection of various video4linux (V4L) utilities.
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2015-09-26 21:10:06 +02:00
|
|
|
%lang_package
|
|
|
|
%lang_package -n libdvbv5-%{so_ver}
|
|
|
|
|
2011-05-12 21:34:56 +02:00
|
|
|
%package devel-tools
|
|
|
|
Summary: Utilities for v4l2 / DVB driver development and debugging
|
2012-02-26 22:28:44 +01:00
|
|
|
License: GPL-2.0+ and GPL-2.0
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: Hardware/TV
|
|
|
|
Requires: libv4l = %{version}
|
|
|
|
|
|
|
|
%description devel-tools
|
2014-07-27 14:22:14 +02:00
|
|
|
Utilities for v4l2 / DVB driver authors for development and debugging.
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2015-02-02 09:04:52 +01:00
|
|
|
%package -n dvb-utils
|
|
|
|
Summary: Utilities for DVB devices
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Hardware/TV
|
|
|
|
|
|
|
|
%description -n dvb-utils
|
|
|
|
dvb-utils is a collection of various DVB utilities.
|
|
|
|
|
|
|
|
%package -n libdvbv5-%{so_ver}
|
|
|
|
Summary: Library that provides access to DVB adapter cards
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdvbv5-%{so_ver}
|
|
|
|
libdvbv5 is a library meant to be used by digital TV applications that need to
|
|
|
|
talk with media hardware.
|
|
|
|
|
|
|
|
This package contains shared lib for packages that use libdvbv5.
|
|
|
|
|
|
|
|
%package -n libdvbv5-devel
|
|
|
|
Summary: Development files for libdvbv5
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libdvbv5-%{so_ver} = %{version}
|
|
|
|
|
|
|
|
%description -n libdvbv5-devel
|
|
|
|
The libdvbv5-devel package contains libraries and header files for
|
|
|
|
developing applications that use libdvbv5.
|
|
|
|
|
2011-05-12 21:34:56 +02:00
|
|
|
%package -n libv4l
|
|
|
|
Summary: Collection of video4linux support libraries
|
2012-02-26 22:28:44 +01:00
|
|
|
License: LGPL-2.1+ and GPL-2.0
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libv4l
|
|
|
|
libv4l is a collection of libraries which adds a thin abstraction layer on
|
|
|
|
top of video4linux2 devices. The purpose of this (thin) layer is to make it
|
|
|
|
easy for application writers to support a wide variety of devices without
|
2014-06-05 08:18:07 +02:00
|
|
|
having to write separate code for different devices in the same class.
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%package -n libv4l1-%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
Summary: Video4linux support library
|
2012-02-26 22:28:44 +01:00
|
|
|
License: LGPL-2.1+
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: System/Libraries
|
2011-06-26 21:11:59 +02:00
|
|
|
Requires: libv4l
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%description -n libv4l1-%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
|
|
|
|
of the drivers for those devices supporting v4l1 compatibility (which many
|
|
|
|
v4l2 drivers do not).
|
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
This package contains shared lib for packages that use libv4l1.
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%package -n libv4l2-%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
Summary: Video4linux support library
|
2012-02-26 22:28:44 +01:00
|
|
|
License: LGPL-2.1+
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: System/Libraries
|
2011-06-26 21:11:59 +02:00
|
|
|
Requires: libv4l
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%description -n libv4l2-%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
|
|
|
|
application transparent libv4lconvert conversion where necessary.
|
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
This package contains shared lib for packages that use libv4l2.
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%package -n libv4l2rds%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
Summary: Video4linux support library
|
2012-02-26 22:28:44 +01:00
|
|
|
License: LGPL-2.1+
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: System/Libraries
|
2011-06-26 21:11:59 +02:00
|
|
|
Requires: libv4l
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%description -n libv4l2rds%{so_ver}
|
|
|
|
libv4l2rds offers decoding raw RDS data from V4L2 Radio devices and simple ways
|
|
|
|
to access the received RDS information.
|
|
|
|
|
|
|
|
This package contains shared lib for packages that use libv4l2rds.
|
|
|
|
|
|
|
|
%package -n libv4lconvert%{so_ver}
|
|
|
|
Summary: Video4linux support library
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libv4l
|
|
|
|
|
|
|
|
%description -n libv4lconvert%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
libv4lconvert offers functions to convert from any (known) pixel-format
|
|
|
|
to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420.
|
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
This package contains shared lib for packages that use libv4lconvert.
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%package -n libv4l-devel
|
|
|
|
Summary: Development files for libv4l
|
2012-02-26 22:28:44 +01:00
|
|
|
License: LGPL-2.1+
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-06-05 08:18:07 +02:00
|
|
|
Requires: libv4l1-%{so_ver} = %{version}
|
|
|
|
Requires: libv4l2-%{so_ver} = %{version}
|
|
|
|
Requires: libv4l2rds%{so_ver} = %{version}
|
|
|
|
Requires: libv4lconvert%{so_ver} = %{version}
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%description -n libv4l-devel
|
|
|
|
The libv4l-devel package contains libraries and header files for
|
|
|
|
developing applications that use libv4l.
|
|
|
|
|
|
|
|
%package -n qv4l2
|
|
|
|
Summary: Video4linux test control and streaming test application
|
2012-02-26 22:28:44 +01:00
|
|
|
License: GPL-2.0+
|
2011-05-12 21:34:56 +02:00
|
|
|
Group: Hardware/TV
|
|
|
|
Requires: libv4l = %{version}
|
|
|
|
|
|
|
|
%description -n qv4l2
|
|
|
|
qv4l2 is a test control and streaming test application for video4linux.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-07-27 14:22:14 +02:00
|
|
|
%if 0%{?suse_version} < 1230
|
|
|
|
autoreconf -vif
|
|
|
|
%endif
|
2015-03-13 15:55:41 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--with-udevdir=%{_udevdir}
|
2014-06-05 08:18:07 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%install
|
2015-09-26 21:10:06 +02:00
|
|
|
make DESTDIR=%{buildroot} install --jobs=1
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%find_lang "%{name}"
|
|
|
|
%find_lang "libdvbv5" libdvbv5.lang
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
# Not needed (links to plugins in libv4l subdir)
|
|
|
|
rm %{buildroot}%{_libdir}/{v4l1compat.so,v4l2convert.so}
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2011-06-26 21:11:59 +02:00
|
|
|
%suse_update_desktop_file -N "QV4l2" -G "V4L2 Test Utility" -r qv4l2 Qt AudioVideo Video TV
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2015-02-02 09:04:52 +01:00
|
|
|
%post -n libdvbv5-%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdvbv5-%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%post -n libv4l1-%{so_ver} -p /sbin/ldconfig
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%postun -n libv4l1-%{so_ver} -p /sbin/ldconfig
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%post -n libv4l2-%{so_ver} -p /sbin/ldconfig
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%postun -n libv4l2-%{so_ver} -p /sbin/ldconfig
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%post -n libv4l2rds%{so_ver} -p /sbin/ldconfig
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%postun -n libv4l2rds%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libv4lconvert%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libv4lconvert%{so_ver} -p /sbin/ldconfig
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2015-09-26 21:10:06 +02:00
|
|
|
%files -f "%{name}.lang" lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%files -f "libdvbv5.lang" -n libdvbv5-%{so_ver}-lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2011-05-12 21:34:56 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog README TODO
|
2014-06-05 08:18:07 +02:00
|
|
|
%dir %{_sysconfdir}/rc_keymaps/
|
2011-05-12 21:34:56 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/rc_maps.cfg
|
2014-06-05 08:18:07 +02:00
|
|
|
%{_udevdir}/rc_keymaps/
|
|
|
|
%if 0%{?suse_version} <= 1310
|
|
|
|
%dir %{_udevdir}/rules.d/
|
|
|
|
%endif
|
|
|
|
%{_udevdir}/rules.d/70-infrared.rules
|
2011-05-12 21:34:56 +02:00
|
|
|
%{_bindir}/cx18-ctl
|
|
|
|
%{_bindir}/ir-keytable
|
|
|
|
%{_bindir}/ivtv-ctl
|
2014-07-27 14:22:14 +02:00
|
|
|
%{_bindir}/media-ctl
|
2014-06-05 08:18:07 +02:00
|
|
|
%{_bindir}/rds-ctl
|
2011-05-12 21:34:56 +02:00
|
|
|
%{_bindir}/v4l2-ctl
|
|
|
|
%{_bindir}/v4l2-sysfs-path
|
|
|
|
%{_mandir}/man1/ir-keytable.1%{ext_man}
|
2015-09-26 21:10:06 +02:00
|
|
|
%{_mandir}/man1/v4l2-ctl.1%{ext_man}
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%files devel-tools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog README TODO
|
|
|
|
%{_bindir}/decode_tm6000
|
|
|
|
%{_bindir}/v4l2-compliance
|
|
|
|
%{_sbindir}/v4l2-dbg
|
2015-09-26 21:10:06 +02:00
|
|
|
%{_mandir}/man1/v4l2-compliance.1%{ext_man}
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2015-02-02 09:04:52 +01:00
|
|
|
%files -n dvb-utils
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog README TODO
|
|
|
|
%{_bindir}/dvb-*
|
|
|
|
%{_bindir}/dvbv5-*
|
|
|
|
%{_mandir}/man1/dvb-*1%{ext_man}
|
|
|
|
%{_mandir}/man1/dvbv5-*1%{ext_man}
|
|
|
|
|
|
|
|
%files -n libdvbv5-%{so_ver}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libdvbv5.so.%{so_ver}*
|
|
|
|
|
|
|
|
%files -n libdvbv5-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_includedir}/libdvbv5/
|
|
|
|
%{_libdir}/libdvbv5.so
|
|
|
|
%{_libdir}/pkgconfig/libdvbv5*.pc
|
|
|
|
|
2011-05-12 21:34:56 +02:00
|
|
|
%files -n libv4l
|
|
|
|
%defattr(-,root,root,-)
|
2014-06-05 08:18:07 +02:00
|
|
|
%doc COPYING.libv4l ChangeLog README README.libv4l TODO
|
2011-05-12 21:34:56 +02:00
|
|
|
%{_libdir}/libv4l/
|
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%files -n libv4l1-%{so_ver}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libv4l1.so.%{so_ver}*
|
|
|
|
|
|
|
|
%files -n libv4l2-%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-06-05 08:18:07 +02:00
|
|
|
%{_libdir}/libv4l2.so.%{so_ver}*
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%files -n libv4l2rds%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-06-05 08:18:07 +02:00
|
|
|
%{_libdir}/libv4l2rds.so.%{so_ver}*
|
2011-05-12 21:34:56 +02:00
|
|
|
|
2014-06-05 08:18:07 +02:00
|
|
|
%files -n libv4lconvert%{so_ver}
|
2011-05-12 21:34:56 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-06-05 08:18:07 +02:00
|
|
|
%{_libdir}/libv4lconvert.so.%{so_ver}*
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%files -n libv4l-devel
|
|
|
|
%defattr(-,root,root,-)
|
2015-02-02 09:04:52 +01:00
|
|
|
%doc COPYING.libv4l README.lib-multi-threading
|
2011-05-12 21:34:56 +02:00
|
|
|
%{_includedir}/libv4l*.h
|
|
|
|
%{_libdir}/libv4l*.so
|
2015-02-02 09:04:52 +01:00
|
|
|
%{_libdir}/pkgconfig/libv4l*.pc
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%files -n qv4l2
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog README TODO
|
|
|
|
%{_bindir}/qv4l2
|
|
|
|
%{_datadir}/applications/qv4l2.desktop
|
|
|
|
%dir %{_datadir}/icons/hicolor
|
2011-06-26 21:11:59 +02:00
|
|
|
%dir %{_datadir}/icons/hicolor/??x??
|
|
|
|
%dir %{_datadir}/icons/hicolor/??x??/apps
|
2011-05-12 21:34:56 +02:00
|
|
|
%dir %{_datadir}/icons/hicolor/scalable
|
|
|
|
%dir %{_datadir}/icons/hicolor/scalable/apps
|
2011-06-26 21:11:59 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/qv4l2.*
|
2014-07-27 14:22:14 +02:00
|
|
|
%{_mandir}/man1/qv4l2.1%{ext_man}
|
2011-05-12 21:34:56 +02:00
|
|
|
|
|
|
|
%changelog
|