Summary: Tool for decoding raw image data from digital cameras Summary(ja): デジタルカメラの RAW 画像データをデコードするツール Name: dcraw Version: 9.24.4 Release: 1%{?_dist_release} Group: Applications/Multimedia License: GPLv2+ URL: http://cybercom.net/~dcoffin/dcraw Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz Patch0: dcraw-9.19-CVE-2013-1438.patch Patch1: dcraw-9.21-lcms2-error-reporting.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gettext BuildRequires: libjpeg-devel BuildRequires: lcms2-devel BuildRequires: jasper-devel %description This package contains dcraw, a command line tool to decode raw image data downloaded from digital cameras. %prep %setup -q -n dcraw %patch0 -p1 -b .CVE-2013-1438 %patch1 -p1 -b .lcms2-error-reporting %build gcc %optflags -lm -ljasper -ljpeg -llcms2 -DLOCALEDIR=\""%{_datadir}/locale"\" -o dcraw dcraw.c # build language catalogs for catsrc in dcraw_*.po; do lang="${catsrc%.po}" lang="${lang#dcraw_}" msgfmt -o "dcraw_${lang}.mo" "$catsrc" done %install rm -rf %buildroot install -d -m 0755 %{buildroot}%{_bindir} install -m 0755 dcraw %{buildroot}%{_bindir} # install language catalogs for catalog in dcraw_*.mo; do lang="${catalog%.mo}" lang="${lang#dcraw_}" install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES" install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo" done install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1 # localized manpages for manpage in dcraw_*.1; do lang="${manpage%.1}" lang="${lang#dcraw_}" install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1" install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1" done %find_lang %{name} %clean rm -rf %buildroot %files -f %{name}.lang %defattr(-, root, root) %{_bindir}/dcraw %{_mandir}/man1/* %{_mandir}/*/man1/* %changelog * Tue Mar 10 2015 Ryoichi INAGAKI 9.24.4-1 - update to 9.24.4 - add BuildRequires: lcms2-devel instead of lcms-devel * Sat Jun 16 2012 Yoji TOYODA 9.12-1 - update to 9.12 - add BuildRequires: jasper-devel * Thu Jun 11 2009 Daisuke SUZUKI 8.91-1 - initial build for Vine Linux * Mon Mar 02 2009 Nils Philippsen - 8.91-1 - version 8.91 * Tue Feb 24 2009 Fedora Release Engineering - 8.89-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Nov 27 2008 Nils Philippsen - 8.89-1 - version 8.89 - remove obsolete gps patch * Mon Feb 25 2008 Nils Philippsen - 8.82-1 - version 8.82 * Tue Feb 19 2008 Fedora Release Engineering - 8.81-2 - Autorebuild for GCC 4.3 * Mon Jan 14 2008 Nils Philippsen - 8.81-1 - version 8.81 - add support for GPS data (#428600, patch by Ulrich Drepper) * Fri Nov 30 2007 Nils Philippsen - 8.80-1 - version 8.80 - change license tag to GPLv2+ * Mon Feb 05 2007 Nils Philippsen - 8.77-2 - rebuild with pristine source tarball * Mon Feb 05 2007 Nils Philippsen - 8.77-1 - version 8.77 * Mon Feb 05 2007 Nils Philippsen - 8.53-2 - fix summary, use %%find_lang (#225678) * Thu Feb 01 2007 Nils Philippsen - 8.53-1 - upstream finally has a tarball, use that and its version (#209016) - use dist tag * Wed Jul 12 2006 Jesse Keating - 0.0.20060521-1.1 - rebuild * Tue May 23 2006 Nils Philippsen - 0.0.20060521-1 - program and manpage version of 2006-05-21 - use %%optflags - change license tag to GPL - use lcms * Fri Feb 10 2006 Jesse Keating - 0.0.20051211-1.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0.0.20051211-1.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Wed Dec 14 2005 Nils Philippsen - version of 2005-12-11 - manpage of 2005-09-29 * Fri Dec 09 2005 Jesse Keating - rebuilt * 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