From 84e31836384d1bbf9b246123903b6eb3551a2b8b Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Wed, 1 Dec 2004 13:35:31 +0000 Subject: [PATCH] auto-import dcraw-0.0.20041128-1 on branch devel from dcraw-0.0.20041128-1.src.rpm --- dcraw.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dcraw.spec diff --git a/dcraw.spec b/dcraw.spec new file mode 100644 index 0000000..bdcb6bb --- /dev/null +++ b/dcraw.spec @@ -0,0 +1,46 @@ +%define dcrawdate 20041128 +%define dcrawmandate 20041022 + +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 Dec 01 2004 Nils Philippsen +- version of 2004-11-28 +- initial build