dcraw/dcraw.spec
2005-12-14 16:52:07 +00:00

58 lines
1.4 KiB
RPMSpec

%define dcrawdate 20051211
%define dcrawmandate 20050929
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 14 2005 Nils Philippsen <nphilipp@redhat.com>
- version of 2005-12-11
- manpage of 2005-09-29
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com>
- version of 2005-02-27
- manpage of 2005-01-19
* Wed Dec 01 2004 Nils Philippsen <nphilipp@redhat.com>
- version of 2004-11-28
- initial build