%define dcrawdate 20050227 %define dcrawmandate 20050119 Summary: A tool for decoding raw image data from digital cameras. Name: dcraw Version: 0.0.%dcrawdate Release: 1 Group: Applications/Multimedia License: freely distributable #The next file is actually http://www.cybercom.net/~dcoffin/dcraw/dcraw.c #but as it doesn't contain any version info in the file name... Source0: dcraw-%{dcrawdate}.c #Actually http://www.cybercom.net/~dcoffin/dcraw/dcraw.1 Source1: dcraw-%{dcrawmandate}.1 BuildRequires: libjpeg-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description This package contains dcraw, a command line tool to decode raw image data downloaded from digital cameras. %prep %setup -c -T cp %{SOURCE0} dcraw.c %build gcc -g -O3 -lm -ljpeg -o dcraw dcraw.c %install rm -rf %buildroot install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 install -m 0755 dcraw %{buildroot}%{_bindir} install -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/dcraw.1 %clean rm -rf %buildroot %files %defattr(-, root, root) %{_bindir}/dcraw %{_mandir}/man1/* %changelog * Wed Mar 02 2005 Nils Philippsen - version of 2005-02-27 - manpage of 2005-01-19 * Wed Dec 01 2004 Nils Philippsen - version of 2004-11-28 - initial build