File coriander.spec of Package coriander
#
# spec file for package coriander (Version 2.0.2)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: coriander
BuildRequires: SDL-devel autoconf automake gcc-c++ glib2-devel libdc1394-devel libgnomeui-devel libstdc++-devel libtiff-devel update-desktop-files libv4l-devel
%if 0%{?suse_version} > 1210
BuildRequires: libXv-devel
%endif
License: GPL-3.0
Group: Hardware/Camera
AutoReqProv: on
Version: 2.0.2
Release: 1
Summary: GNOME IEEE-1394 Digital Camera Controller
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://damien.douxchamps.net/ieee1394/coriander/
Source: http://prdownloads.sourceforge.net/coriander/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Source2: http://prdownloads.sourceforge.net/sourceforge/coriander/coriander-doc-1.1.0.pdf
Source3: coriander.1
%description
Coriander is a GUI for controlling a digital camera (in the sense of
the IIDC specs issued by the 1394 Trade Association). Due to the
properties of the IEEE1394 protocol, Coriander can control an IEEE1394
camera without interfering with the image flow from that camera. It can
thus be used to set up a camera with Coriander while the video flow is
used by another application (at least if the porthole display is
switched off).
Authors:
--------
Damien Douxchamps <ddouxchamps at users sf net>
Dan Dennedy <dan at dennedy dot org>
%prep
%setup -q
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure
echo "#undef MMX_SUPPORT" >> config.h
echo "#undef SSE_SUPPORT" >> config.h
echo "#undef SSE2_SUPPORT" >> config.h
make %{?jobs:-j%jobs}
%install
#make DESTDIR=${RPM_BUILD_ROOT} install-strip
%makeinstall
mkdir -p \
${RPM_BUILD_ROOT}/usr/share/applications/ \
${RPM_BUILD_ROOT}/%{_defaultdocdir}/coriander
install -m 0644 %SOURCE1 ${RPM_BUILD_ROOT}/usr/share/applications/
cp -a %{S:2} .
mkdir -p %{buildroot}%{_mandir}/man1
#Copy man page
cp %{S:3} %{buildroot}%{_mandir}/man1/
%suse_update_desktop_file coriander AudioVideo AudioVideoEditing
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README coriander-doc-1.1.0.pdf
%{_bindir}/coriander
%{_datadir}/applications/coriander.desktop
%{_datadir}/pixmaps/coriander
%{_mandir}/man1/coriander.1.gz
%changelog