Name: v4l2ucp Version: 1.2 Release: 2%{?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 Source1: %{name}.desktop # This image was taken from camorama, which is also licensed GPLv2+ Source2: %{name}.png BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt3-devel libXi-devel libXmu-devel 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 %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps install -p -m 644 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-,root,root,-) %doc COPYING README %{_bindir}/%{name} %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/icons/hicolor/24x24/apps/%{name}.png %changelog * Thu Oct 23 2008 Hans de Goede 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 1.2-1 - Initial Fedora package