Blob Blame History Raw
# $Id: coriander.spec,v 1.1 2008/01/19 23:33:17 timn Exp $

#define cvs_snapshot .cvs20080116
%define cvs_build %{?cvs_snapshot:1}%{!?cvs_snapshot:0}
%define real_version 2.0.0-rc6%{?cvs_snapshot}

Summary: Control a 1394 digital camera interactively
Name: coriander
Version: 2.0.0
Release: 0.6.rc6%{?cvs_snapshot}%{?dist}
License: GPLv2+
Group: Applications/Multimedia
URL: http://damien.douxchamps.net/ieee1394/coriander/
Source: http://download.sourceforge.net/coriander/coriander-%{real_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: libgnomeui-devel, gettext, libraw1394-devel, libdc1394-devel >= 2.0.0
BuildRequires: desktop-file-utils, SDL-devel
BuildRequires: libXv-devel
BuildRequires: ftplib-devel
%if %{cvs_build}
BuildRequires: libtool
%endif

%description
Coriander is a GUI that let you control your 1394 digital video camera
interactively. It features SDL display, FTP image posting, file saving,
and video streaming. It is for IIDC cameras, not for consumer grade DV
cameras.

%prep
%setup -q -n coriander-%{real_version}

%{__cat} <<EOF >%{name}.desktop
[Desktop Entry]
Name=Coriander
Comment=Control a 1394 digital video camera
Exec=coriander
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;
Icon=%{_datadir}/pixmaps/%{name}/%{name}-icon.png
EOF

%build
%if %{cvs_build}
./autogen.sh
%endif
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall

%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
desktop-file-install --vendor fedora                             \
                     --dir %{buildroot}%{_datadir}/applications  \
                     %{name}.desktop

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog INSTALL NEWS README TODO
%{_bindir}/coriander
%{_datadir}/pixmaps/coriander/coriander-*.png
%{_datadir}/applications/*-coriander.desktop

%changelog
* Sat Jan 19 2008 Tim Niemueller <tim@niemueller.de> - 2.0.0-0.6.rc6
- Long source URL

* Sat Jan 19 2008 Tim Niemueller <tim@niemueller.de> - 2.0.0-0.5.rc6
- Upgrade to 2.0.0-rc6
- Use autotooly only if build is a CVS build
- Do not require libdc1394 >= 2.0.0, automatically handled correctly
- Fixed desktop file glitches
- Add Icon entry for desktop file
- Added ftplib BR to support FTP upload
- Removed Application category to make desktop-file-validate happy

* Wed Jan 16 2008 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc5.4.cvs20080116
- Fixed several rpmlint errors

* Wed Jan 16 2008 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc5.3.cvs20080116
- Updated to release 2.0.0-rc5.cvs20080116

* Mon Nov 26 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc5.2.cvs20071126
- Updated to release 2.0.0-rc5.cvs20071126

* Wed Aug 16 2006 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc1.1
- Updated to release 2.0.0-rc1

* Mon May 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.pre6
- Updated to release 2.0.0pre6.

* Sun Mar 26 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.pre5
- Updated to release 2.0.0pre5.

* Mon Aug 29 2005 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.pre3
- Initial package.