18861N/A#
18861N/A# spec file for package SUNWdcraw
18861N/A#
18861N/A# Copyright 2010 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner bnitz
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 8098:8.81
18861N/A
18861N/AName: SUNWdcraw
18861N/AIPS_package_name: image/dcraw
18861N/AMeta(info.classification): %{classification_prefix}:System/Media
18861N/ASummary: dcraw - Decoding RAW digital photos
18861N/ALicense: GPL
18861N/AURL: http://www.cybercom.net/~dcoffin/dcraw/
18861N/AVersion: 8.99
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ASource: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz
18861N/A# date:2008-02-22 owner:fujiwara type:bug bugster:6666520
18861N/APatch1: dcraw-01-locale-h.diff
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/ARequires: SUNWlibmsr
20857N/ABuildRequires: SUNWjpg
18861N/ARequires: SUNWlcms
18861N/ABuildRequires: SUNWlcms
18861N/ABuildRequires: SUNWgnome-common-devel
18861N/A
18861N/A%package l10n
18861N/ASummary: %{summary} - l10n files
18861N/ARequires: %{name}
18861N/A
18861N/A%prep
18861N/A%setup -q -c -n %{name}-%{version}
18861N/Acd dcraw
18861N/A%patch1 -p1
18861N/Acd ..
18861N/A
18861N/A%build
18861N/Acd dcraw
18861N/A# There's no Makefiles - it's just a single .c file
18861N/Aexport CFLAGS="%optflags `pkg-config --cflags lcms` -o dcraw -lm -ljpeg `pkg-config --libs lcms`"
18861N/Aexport CFLAGS="$CFLAGS -DLOCALEDIR=\"%{_datadir}/locale\""
18861N/A${CC} $CFLAGS dcraw.c
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/Amkdir $RPM_BUILD_ROOT
18861N/Amkdir -p $RPM_BUILD_ROOT%{_bindir}
18861N/Acd dcraw
18861N/Acp dcraw $RPM_BUILD_ROOT%{_bindir}
18861N/A
18861N/Amkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
18861N/Acp dcraw.1 $RPM_BUILD_ROOT%{_mandir}/man1
18861N/A
18861N/Afor po in dcraw_*.po
18861N/Ado
18861N/A lang=`basename $po .po | sed -e 's/^dcraw_//'`
18861N/A mkdir -p -m 755 $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
18861N/A msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
18861N/Adone
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr(-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
18861N/A%{_bindir}/dcraw
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, bin) %{_mandir}
18861N/A%dir %attr (0755, root, bin) %{_mandir}/man1
18861N/A%{_mandir}/man1/dcraw.1
18861N/A
18861N/A%files l10n
18861N/A%defattr(-, root, other)
18861N/A%dir %attr(0755, root, sys) %{_datadir}
18861N/A%{_datadir}/locale/*
18861N/A
18861N/A%changelog
18861N/A* Thu Jan 28 2010 - brian.cameron@sun.com
18861N/A- Bump to 8.99.
18861N/A* Thu Oct 22 2009 - harry.lu@sun.com
18861N/A* Remove "in Linux" from summary
18861N/A* Wed Aug 12 2009 - christian.kelly@sun.com
18861N/A- Bump to 8.95.
18861N/A* Tue Sep 23 2008 - dave.lin@sun.com
18861N/A- Remove %{_datadir}/doc since it doesn't exist.
18861N/A* Fri May 16 2008 - damien.carbery@sun.com
18861N/A- Use pkg-config to determine CFLAGS and LIBS for lcms.
18861N/A* Fri Feb 22 2008 - takao.fujiwara@sun.com
18861N/A- Add dcraw-01-locale-h.diff to avoid build errors.
18861N/A* Mon Feb 18 2008 - damien.carbery@sun.com
18861N/A- Set %attr for %_datadir in l10n package.
18861N/A* Fri Feb 15 2008 - dermot.mccluskey@sun.com
18861N/A- put l10n files in optionally build -l10n pkg
18861N/A- use CC and CFLAGS to compile
18861N/A* Tue Feb 12 2008 - dermot.mccluskey@sun.com
18861N/A- initial version
18861N/A
19177N/A
19494N/A