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