5e9c6e8
Name:           v4l-utils
Mauro Carvalho Chehab 63e3449
Version:        1.6.2
Mauro Carvalho Chehab 63e3449
Release:        1%{?dist}
5e9c6e8
Summary:        Utilities for video4linux and DVB devices
5e9c6e8
Group:          Applications/System
Mauro Carvalho Chehab 178a9cf
# libdvbv5, dvbv5 utils, ir-keytable and v4l2-sysfs-path are GPLv2 only
5e9c6e8
License:        GPLv2+ and GPLv2
5e9c6e8
URL:            http://www.linuxtv.org/downloads/v4l-utils/
5e9c6e8
Source0:        http://linuxtv.org/downloads/v4l-utils/v4l-utils-%{version}.tar.bz2
Mauro Carvalho Chehab d81c4aa
BuildRequires:  libjpeg-devel qt4-devel kernel-headers desktop-file-utils
Mauro Carvalho Chehab d81c4aa
BuildRequires:  alsa-lib-devel doxygen
851a3b0
# For /lib/udev/rules.d ownership
5e9c6e8
Requires:       udev
6447e71
Requires:       libv4l%{?_isa} = %{version}-%{release}
5e9c6e8
5e9c6e8
%description
5e9c6e8
v4l-utils is a collection of various video4linux (V4L) and DVB utilities. The
5e9c6e8
main v4l-utils package contains cx18-ctl, ir-keytable, ivtv-ctl, v4l2-ctl and
5e9c6e8
v4l2-sysfs-path.
5e9c6e8
5e9c6e8
5e9c6e8
%package        devel-tools
5e9c6e8
Summary:        Utilities for v4l2 / DVB driver development and debugging
5e9c6e8
# decode_tm6000 is GPLv2 only
5e9c6e8
License:        GPLv2+ and GPLv2
6447e71
Requires:       libv4l%{?_isa} = %{version}-%{release}
5e9c6e8
5e9c6e8
%description    devel-tools
5e9c6e8
Utilities for v4l2 / DVB driver authors: decode_tm6000, v4l2-compliance and
5e9c6e8
v4l2-dbg.
5e9c6e8
5e9c6e8
5e9c6e8
%package -n     qv4l2
5e9c6e8
Summary:        QT v4l2 test control and streaming test application
5e9c6e8
License:        GPLv2+
6447e71
Requires:       libv4l%{?_isa} = %{version}-%{release}
5e9c6e8
5e9c6e8
%description -n qv4l2
5e9c6e8
QT v4l2 test control and streaming test application.
5e9c6e8
5e9c6e8
5e9c6e8
%package -n     libv4l
5e9c6e8
Summary:        Collection of video4linux support libraries 
5e9c6e8
Group:          System Environment/Libraries
5e9c6e8
# Some of the decompression helpers are GPLv2, the rest is LGPLv2+
5e9c6e8
License:        LGPLv2+ and GPLv2
5e9c6e8
URL:            http://hansdegoede.livejournal.com/3636.html
5e9c6e8
5e9c6e8
%description -n libv4l
5e9c6e8
libv4l is a collection of libraries which adds a thin abstraction layer on
5e9c6e8
top of video4linux2 devices. The purpose of this (thin) layer is to make it
5e9c6e8
easy for application writers to support a wide variety of devices without
5e9c6e8
having to write separate code for different devices in the same class. libv4l
5e9c6e8
consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
5e9c6e8
5e9c6e8
libv4lconvert offers functions to convert from any (known) pixel-format
5e9c6e8
to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420.
5e9c6e8
5e9c6e8
libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
5e9c6e8
of the drivers for those devices supporting v4l1 compatibility (which many
5e9c6e8
v4l2 drivers do not).
5e9c6e8
5e9c6e8
libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
5e9c6e8
application transparent libv4lconvert conversion where necessary.
5e9c6e8
5e9c6e8
Mauro Carvalho Chehab 178a9cf
%package -n     libdvbv5
Mauro Carvalho Chehab 178a9cf
Summary:        Libraries to control, scan and zap on Digital TV channels
Mauro Carvalho Chehab 178a9cf
Group:          Development/Libraries
Mauro Carvalho Chehab 6692f6e
License:        GPLv2
Mauro Carvalho Chehab 178a9cf
Mauro Carvalho Chehab 178a9cf
%description -n libdvbv5
Mauro Carvalho Chehab 178a9cf
Libraries to control, scan and zap on Digital TV channels
Mauro Carvalho Chehab 178a9cf
5e9c6e8
%package -n     libv4l-devel
5e9c6e8
Summary:        Development files for libv4l
5e9c6e8
Group:          Development/Libraries
5e9c6e8
License:        LGPLv2+
5e9c6e8
URL:            http://hansdegoede.livejournal.com/3636.html
6447e71
Requires:       libv4l%{?_isa} = %{version}-%{release}
5e9c6e8
5e9c6e8
%description -n libv4l-devel
5e9c6e8
The libv4l-devel package contains libraries and header files for
5e9c6e8
developing applications that use libv4l.
5e9c6e8
5e9c6e8
Mauro Carvalho Chehab 178a9cf
%package -n     libdvbv5-devel
Mauro Carvalho Chehab 178a9cf
Summary:        Development files for libdvbv5
Mauro Carvalho Chehab 178a9cf
Group:          Development/Libraries
Mauro Carvalho Chehab 178a9cf
License:        GPLv2
Mauro Carvalho Chehab 178a9cf
Requires:       libdvbv5%{?_isa} = %{version}-%{release}
Mauro Carvalho Chehab 178a9cf
Mauro Carvalho Chehab 178a9cf
%description -n libdvbv5-devel
Mauro Carvalho Chehab 178a9cf
The libdvbv5-devel package contains libraries and header
Mauro Carvalho Chehab 178a9cf
files for developing applications that use libdvbv5.
Mauro Carvalho Chehab 178a9cf
Mauro Carvalho Chehab 178a9cf
5e9c6e8
%prep
5e9c6e8
%setup -q
5e9c6e8
5e9c6e8
5e9c6e8
%build
Mauro Carvalho Chehab d81c4aa
%configure --disable-static --enable-libdvbv5 --enable-doxygen-man
6447e71
# Don't use rpath!
6447e71
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
6447e71
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
6447e71
make %{?_smp_mflags}
Mauro Carvalho Chehab d81c4aa
make doxygen-run
5e9c6e8
5e9c6e8
5e9c6e8
%install
6447e71
%make_install
6447e71
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
6447e71
rm $RPM_BUILD_ROOT%{_libdir}/{v4l1compat.so,v4l2convert.so}
Mauro Carvalho Chehab d81c4aa
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
Mauro Carvalho Chehab d81c4aa
cp -arv %{_builddir}/%{name}-%{version}/doxygen-doc/man/man3 $RPM_BUILD_ROOT%{_mandir}/
Mauro Carvalho Chehab d81c4aa
rm $RPM_BUILD_ROOT%{_mandir}/man3/_*3
851a3b0
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/qv4l2.desktop
5e9c6e8
5e9c6e8
5e9c6e8
%post -n libv4l -p /sbin/ldconfig
5e9c6e8
5e9c6e8
%postun -n libv4l -p /sbin/ldconfig
5e9c6e8
Mauro Carvalho Chehab 178a9cf
%post -n libdvbv5 -p /sbin/ldconfig
Mauro Carvalho Chehab 178a9cf
Mauro Carvalho Chehab 178a9cf
%postun -n libdvbv5 -p /sbin/ldconfig
Mauro Carvalho Chehab 178a9cf
5e9c6e8
%post -n qv4l2
5e9c6e8
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
5e9c6e8
5e9c6e8
%postun -n qv4l2
5e9c6e8
if [ $1 -eq 0 ] ; then
5e9c6e8
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
5e9c6e8
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
5e9c6e8
fi
5e9c6e8
5e9c6e8
%posttrans -n qv4l2
5e9c6e8
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
5e9c6e8
5e9c6e8
5e9c6e8
%files
5e9c6e8
%doc README
5e9c6e8
%dir %{_sysconfdir}/rc_keymaps
5e9c6e8
%config(noreplace) %{_sysconfdir}/rc_maps.cfg
6447e71
%{_udevrulesdir}/70-infrared.rules
6447e71
%{_prefix}/lib/udev/rc_keymaps/*
5e9c6e8
%{_bindir}/cx18-ctl
4a60185
%{_bindir}/dvb*
5e9c6e8
%{_bindir}/ir-keytable
5e9c6e8
%{_bindir}/ivtv-ctl
Mauro Carvalho Chehab 178a9cf
%{_bindir}/media-ctl
6447e71
%{_bindir}/rds-ctl
5e9c6e8
%{_bindir}/v4l2-ctl
5e9c6e8
%{_bindir}/v4l2-sysfs-path
Mauro Carvalho Chehab 84d6e19
%{_mandir}/man1/*.1*
5e9c6e8
5e9c6e8
%files devel-tools
5e9c6e8
%doc README
5e9c6e8
%{_bindir}/decode_tm6000
5e9c6e8
%{_bindir}/v4l2-compliance
5e9c6e8
%{_sbindir}/v4l2-dbg
5e9c6e8
5e9c6e8
%files -n qv4l2
5e9c6e8
%doc README
5e9c6e8
%{_bindir}/qv4l2
5e9c6e8
%{_datadir}/applications/qv4l2.desktop
db19a96
%{_datadir}/icons/hicolor/*/apps/qv4l2.*
5e9c6e8
5e9c6e8
%files -n libv4l
eca0f09
%doc COPYING.libv4l COPYING ChangeLog README.libv4l TODO
5e9c6e8
%{_libdir}/libv4l
6447e71
%{_libdir}/libv4l*.so.*
5e9c6e8
5e9c6e8
%files -n libv4l-devel
5e9c6e8
%doc README.lib-multi-threading
5e9c6e8
%{_includedir}/libv4l*.h
5e9c6e8
%{_libdir}/libv4l*.so
5e9c6e8
%{_libdir}/pkgconfig/libv4l*.pc
5e9c6e8
Mauro Carvalho Chehab 178a9cf
%files -n libdvbv5
Mauro Carvalho Chehab 178a9cf
%doc COPYING ChangeLog lib/libdvbv5/README
Mauro Carvalho Chehab 178a9cf
%{_libdir}/libdvbv5*.so.*
Mauro Carvalho Chehab 178a9cf
Mauro Carvalho Chehab 178a9cf
%files -n libdvbv5-devel
Mauro Carvalho Chehab 178a9cf
%{_includedir}/libdvbv5/*.h
Mauro Carvalho Chehab 178a9cf
%{_libdir}/libdvbv5*.so
Mauro Carvalho Chehab 178a9cf
%{_libdir}/pkgconfig/libdvbv5*.pc
Mauro Carvalho Chehab d81c4aa
%{_mandir}/man3/*.3*
Mauro Carvalho Chehab 178a9cf
5e9c6e8
5e9c6e8
%changelog
Mauro Carvalho Chehab 63e3449
* Sat Nov 22 2014 Mauro Carvalho Chehab <mchehab@osg.samsung.com> - 1.6.2-1
Mauro Carvalho Chehab 63e3449
- Update to version 1.6.2 with contains several bugfixes
Mauro Carvalho Chehab 63e3449
6c2ea0f
* Thu Nov 20 2014 Hans de Goede <hdegoede@redhat.com> - 1.6.0-2
6c2ea0f
- Fix crash when decoding 1920x1080 jpeg to YUV420
6c2ea0f
Mauro Carvalho Chehab 84d6e19
* Sun Oct 05 2014 Mauro Carvalho Chehab - 1.6.0-1
Mauro Carvalho Chehab 84d6e19
- Upgrade to version 1.6.0
Mauro Carvalho Chehab 84d6e19
Mauro Carvalho Chehab d81c4aa
* Mon Sep 08 2014 Mauro Carvalho Chehab - 1.4.0-1
Mauro Carvalho Chehab d81c4aa
- Upgrade to version 1.4.0
Mauro Carvalho Chehab d81c4aa
Mauro Carvalho Chehab ffd6d62
* Fri Aug 22 2014 Mauro Carvalho Chehab - 1.2.1-3
Mauro Carvalho Chehab 6692f6e
- Add ALSA support on qv4l2 and fix a couple issues at spec file
Mauro Carvalho Chehab 6692f6e
Mauro Carvalho Chehab 5b1abf7
* Thu Aug 21 2014 Mauro Carvalho Chehab - 1.2.1-2
Mauro Carvalho Chehab 178a9cf
- Update to version 1.2.1 and add package for libdvbv5
Mauro Carvalho Chehab 178a9cf
a2f18e6
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
a2f18e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a2f18e6
6ec39b0
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
6ec39b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6ec39b0
eca0f09
* Sat Aug  3 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.0-1
eca0f09
- New upstream release 1.0.0 final
eca0f09
- Drop libdvb5 (made private upstream for now)
eca0f09
fedd942
* Fri Jun 14 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.5-2
fedd942
- Add a few libv4l2rds patches from upstream, which bring libv4l2rds to its
fedd942
  final API / ABI, so that apps build against it won't need a rebuild in the
fedd942
  future
fedd942
6447e71
* Sun Jun  9 2013 Hans de Goede <hdegoede@redhat.com> - 0.9.5-1
6447e71
- New upstream release 0.9.5 (rhbz#970412)
6447e71
- Modernize specfile a bit
6447e71
207249f
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-6
207249f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
207249f
Adam Tkac d674c70
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 0.8.8-5
Adam Tkac d674c70
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac d674c70
c7de5e3
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.8.8-4
c7de5e3
- rebuild against new libjpeg
c7de5e3
66dae01
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-3
66dae01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
66dae01
a1e20fe
* Mon Jul  9 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.8-2
a1e20fe
- Cherry-pick 2 patches from upstream git fixing an exotic crash (rhbz#838279)
a1e20fe
352a2ee
* Tue May 22 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.8-1
352a2ee
- New upstream release 0.8.8
352a2ee
- Add patches from upstream git to improve Pixart JPEG decoding
352a2ee
- Add patch from upstream git to fix building with latest kernels (rhbz#823863)
352a2ee
4a60185
* Mon Apr  9 2012 Hans de Goede <hdegoede@redhat.com> - 0.8.7-1
4a60185
- New upstream release 0.8.7
4a60185
- Fixes rhbz#807656
4a60185
ed6fb24
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-2
ed6fb24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ed6fb24
db19a96
* Sun Jul 17 2011 Hans de Goede <hdegoede@redhat.com> 0.8.5-1
db19a96
- New upstream release 0.8.5
db19a96
- Fixes rhbz#711492
db19a96
851a3b0
* Wed Jun  1 2011 Hans de Goede <hdegoede@redhat.com> 0.8.4-1
851a3b0
- New upstream release 0.8.4
851a3b0
5e9c6e8
* Sat Mar 12 2011 Hans de Goede <hdegoede@redhat.com> 0.8.3-2
5e9c6e8
- Add a .desktop file for qv4l2
5e9c6e8
- Add fully versioned Requires on libv4l to other (sub)packages
5e9c6e8
5e9c6e8
* Thu Feb 10 2011 Hans de Goede <hdegoede@redhat.com> 0.8.3-1
5e9c6e8
- New upstream release 0.8.3
5e9c6e8
5e9c6e8
* Wed Jan 26 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-3
5e9c6e8
- Add missing BuildRequires: kernel-headers
5e9c6e8
5e9c6e8
* Mon Jan 24 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-2
5e9c6e8
- Change tarbal to official upstream 0.8.2 release
5e9c6e8
- This fixes multiple Makefile issues pointed out in the review (#671883)
5e9c6e8
- Add ir-keytable config files
5e9c6e8
- Explicitly specify CXXFLAGS so that qv4l2 gets build with rpm_opt_flags too
5e9c6e8
5e9c6e8
* Sat Jan 22 2011 Hans de Goede <hdegoede@redhat.com> 0.8.2-1
5e9c6e8
- Initial Fedora package