Name: v4l2ucp Version: 2.0.1 Release: 5%{?dist} Summary: Video4linux universal control panel Group: Applications/Multimedia License: GPLv2+ URL: http://v4l2ucp.sourceforge.net/ Source0: http://downloads.sourceforge.net/v4l2ucp/v4l2ucp-%{version}.tar.gz Patch0: v4l2ucp-1.3-libv4l.patch Patch1: v4l2ucp-2.0.1-desktop.patch Patch2: v4l2ucp-2.0.1-better-textinput.patch Patch3: v4l2ucp-2.0.1-no-more-v4l1.patch Patch4: v4l2ucp-2.0.1-flags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt-devel libXi-devel libXmu-devel libv4l-devel cmake BuildRequires: desktop-file-utils Requires: hicolor-icon-theme %description v4l2 is a control panel for video4linux2 devices, it reads a description of the controls that the V4L2 device supports from the device, and presents the user with a graphical means for adjusting those controls. It allows for controlling multiple devices. Controls can be updated with the device status either manually, or periodically and there is an easy way to reset one or all the controls to their default state. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %cmake . make VERBOSE=1 %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # below is the desktop file and icon stuff. desktop-file-install --delete-original --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps mv $RPM_BUILD_ROOT%{_datadir}/icons/%{name}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %defattr(-,root,root,-) %doc COPYING README %{_bindir}/%{name} %{_bindir}/v4l2ctrl %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/icons/hicolor/128x128/apps/%{name}.png %changelog * Sat Mar 12 2011 Hans de Goede <hdegoede@redhat.com> - 2.0.1-5 - Fix handling of special control flags * Thu Feb 17 2011 Hans de Goede <hdegoede@redhat.com> - 2.0.1-4 - Fix building with newer kernel headers (no more linux/videodev.h) * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Nov 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.0.1-2 - Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI) * Tue Nov 10 2009 Hans de Goede <hdegoede@redhat.com> 2.0.1-1 - New upstream release 2.0.1 using qt4 * Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 1.3-4 - Update desktop file according to F-12 FedoraStudio feature * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon May 25 2009 Hans de Goede <hdegoede@redhat.com> 1.3-2 - Add libv4l support * Mon May 25 2009 Hans de Goede <hdegoede@redhat.com> 1.3-1 - New upstream release 1.3 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Oct 23 2008 Hans de Goede <hdegoede@redhat.com> 1.2-2 - Fix the rpm group - Add a comment about the source of the icon we're using * Thu Oct 23 2008 Hans de Goede <hdegoede@redhat.com> 1.2-1 - Initial Fedora package