0e4306
Summary: Tool for decoding raw image data from digital cameras
0e4306
Name: dcraw
0e4306
Version: 9.19
4fe33c
Release: 6%{?dist}
0e4306
Group: Applications/Multimedia
0e4306
License: GPLv2+
0e4306
URL: http://cybercom.net/~dcoffin/dcraw
0e4306
Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz
0e4306
Patch0: dcraw-9.19-lcms2.patch
4fe33c
Patch1: dcraw-9.19-CVE-2013-1438.patch
0e4306
BuildRequires: gettext
0e4306
BuildRequires: libjpeg-devel
0e4306
BuildRequires: lcms2-devel
0e4306
BuildRequires: jasper-devel
0e4306
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
0e4306
0e4306
%description
0e4306
This package contains dcraw, a command line tool to decode raw image data
0e4306
downloaded from digital cameras.
0e4306
0e4306
%prep
0e4306
%setup -q -n dcraw
0e4306
%patch0 -p1 -b .lcms2
4fe33c
%patch1 -p1 -b .CVE-2013-1438
0e4306
0e4306
%build
0e4306
gcc %optflags \
0e4306
    -lm -ljpeg -llcms2 -ljasper \
0e4306
    -DUSE_LCMS2 \
0e4306
    -DLOCALEDIR="\"%{_datadir}/locale\"" \
0e4306
    -o dcraw dcraw.c
0e4306
# build language catalogs
0e4306
for catsrc in dcraw_*.po; do
0e4306
    lang="${catsrc%.po}"
0e4306
    lang="${lang#dcraw_}"
0e4306
    msgfmt -o "dcraw_${lang}.mo" "$catsrc"
0e4306
done
0e4306
0e4306
%install
0e4306
rm -rf %buildroot
0e4306
install -d -m 0755 %{buildroot}%{_bindir}
0e4306
install -m 0755 dcraw %{buildroot}%{_bindir}
0e4306
0e4306
# install language catalogs
0e4306
for catalog in dcraw_*.mo; do
0e4306
    lang="${catalog%.mo}"
0e4306
    lang="${lang#dcraw_}"
0e4306
    install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES"
0e4306
    install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo"
0e4306
done
0e4306
0e4306
install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
0e4306
install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1
0e4306
# localized manpages
0e4306
rm -f %{name}-man-files
0e4306
touch %{name}-man-files
0e4306
for manpage in dcraw_*.1; do
0e4306
    lang="${manpage%.1}"
0e4306
    lang="${lang#dcraw_}"
0e4306
    install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1"
0e4306
    install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1"
0e4306
    echo "%%lang($lang) %%{_mandir}/${lang}/man1/*" >> %{name}-man-files
0e4306
done
0e4306
0e4306
%find_lang %{name}
0e4306
0e4306
%clean
0e4306
rm -rf %buildroot
0e4306
0e4306
%files -f %{name}.lang -f %{name}-man-files
0e4306
%defattr(-, root, root)
0e4306
%{_bindir}/dcraw
0e4306
%{_mandir}/man1/*
0e4306
0e4306
%changelog
4fe33c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 9.19-6
4fe33c
- Mass rebuild 2014-01-24
4fe33c
4fe33c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 9.19-5
4fe33c
- Mass rebuild 2013-12-27
4fe33c
4fe33c
* Fri Dec 06 2013 Nils Philippsen <nils@redhat.com> - 9.19-4
4fe33c
- harden against corrupt input files (CVE-2013-1438)
4fe33c
0e4306
* Fri Sep 13 2013 Nils Philippsen <nils@redhat.com> - 9.19-3
0e4306
- build against the currently maintained version of lcms (2.x)
0e4306
0e4306
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.19-2
0e4306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e4306
0e4306
* Thu Jun 20 2013 Nils Philippsen <nils@redhat.com> - 9.19-1
0e4306
- version 9.19
0e4306
0e4306
* Mon Jun 03 2013 Nils Philippsen <nils@redhat.com> - 9.18-1
0e4306
- version 9.18
0e4306
0e4306
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.17-3
0e4306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e4306
0e4306
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 9.17-2
0e4306
- rebuild due to "jpeg8-ABI" feature drop
0e4306
0e4306
* Mon Jan 14 2013 Nils Philippsen <nils@redhat.com> - 9.17-1
0e4306
- version 9.17
0e4306
0e4306
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 9.16-4
0e4306
- rebuild against new libjpeg
0e4306
0e4306
* Thu Oct 18 2012 Nils Philippsen <nils@redhat.com> - 9.16-3
0e4306
- upstream changed 9.16 tarball, adds support for Samsung NX1000, Sony
0e4306
  DSC-RX100 models
0e4306
0e4306
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.16-2
0e4306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e4306
0e4306
* Wed Jul 04 2012 Nils Philippsen <nils@redhat.com> - 9.16-1
0e4306
- version 9.16
0e4306
0e4306
* Tue Jun 19 2012 Nils Philippsen <nils@redhat.com> - 9.15-1
0e4306
- version 9.15
0e4306
0e4306
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 9.12-2
0e4306
- rebuild for gcc 4.7
0e4306
0e4306
* Thu Dec 22 2011 Nils Philippsen <nils@redhat.com> - 9.12-1
0e4306
- version 9.12
0e4306
0e4306
* Wed Oct 12 2011 Nils Philippsen <nils@redhat.com> - 9.11-1
0e4306
- version 9.11
0e4306
0e4306
* Mon Aug 01 2011 Nils Philippsen <nils@redhat.com> - 9.10-1
0e4306
- version 9.10
0e4306
- add BR: jasper-devel, link with jasper library
0e4306
0e4306
* Mon May 23 2011 Nils Philippsen <nils@redhat.com> - 9.08-1
0e4306
- version 9.08
0e4306
0e4306
* Thu Apr 14 2011 Nils Philippsen <nils@redhat.com> - 9.07-1
0e4306
- version 9.07
0e4306
0e4306
* Fri Mar 04 2011 Nils Philippsen <nils@redhat.com> - 9.06-1
0e4306
- version 9.06
0e4306
0e4306
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.04-2
0e4306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0e4306
0e4306
* Tue Aug 03 2010 Nils Philippsen <nils@redhat.com> - 9.04-1
0e4306
- version 9.04
0e4306
0e4306
* Wed Jun 02 2010 Nils Philippsen <nils@redhat.com> - 9.01-1
0e4306
- version 9.01
0e4306
- color man page files with %%lang()
0e4306
0e4306
* Fri Feb 12 2010 Nils Philippsen <nils@redhat.com> - 8.99-1
0e4306
- version 8.99
0e4306
0e4306
* Tue Aug 18 2009 Nils Philippsen <nils@redhat.com> - 8.96-1
0e4306
- version 8.96
0e4306
0e4306
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.91-2
0e4306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0e4306
0e4306
* Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> - 8.91-1
0e4306
- version 8.91
0e4306
0e4306
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.89-2
0e4306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0e4306
0e4306
* Thu Nov 27 2008 Nils Philippsen <nphilipp@redhat.com> - 8.89-1
0e4306
- version 8.89
0e4306
- remove obsolete gps patch
0e4306
0e4306
* Mon Feb 25 2008 Nils Philippsen <nphilipp@redhat.com> - 8.82-1
0e4306
- version 8.82
0e4306
0e4306
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 8.81-2
0e4306
- Autorebuild for GCC 4.3
0e4306
0e4306
* Mon Jan 14 2008 Nils Philippsen <nphilipp@redhat.com> - 8.81-1
0e4306
- version 8.81
0e4306
- add support for GPS data (#428600, patch by Ulrich Drepper)
0e4306
0e4306
* Fri Nov 30 2007 Nils Philippsen <nphilipp@redhat.com> - 8.80-1
0e4306
- version 8.80
0e4306
- change license tag to GPLv2+
0e4306
0e4306
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-2
0e4306
- rebuild with pristine source tarball
0e4306
0e4306
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-1
0e4306
- version 8.77
0e4306
0e4306
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-2
0e4306
- fix summary, use %%find_lang (#225678)
0e4306
0e4306
* Thu Feb 01 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-1
0e4306
- upstream finally has a tarball, use that and its version (#209016)
0e4306
- use dist tag
0e4306
0e4306
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20060521-1.1
0e4306
- rebuild
0e4306
0e4306
* Tue May 23 2006 Nils Philippsen <nphilipp@redhat.com> - 0.0.20060521-1
0e4306
- program and manpage version of 2006-05-21
0e4306
- use %%optflags
0e4306
- change license tag to GPL
0e4306
- use lcms
0e4306
0e4306
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.2
0e4306
- bump again for double-long bug on ppc(64)
0e4306
0e4306
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.1
0e4306
- rebuilt for new gcc4.1 snapshot and glibc changes
0e4306
0e4306
* Wed Dec 14 2005 Nils Philippsen <nphilipp@redhat.com>
0e4306
- version of 2005-12-11
0e4306
- manpage of 2005-09-29
0e4306
0e4306
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
0e4306
- rebuilt
0e4306
0e4306
* Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com>
0e4306
- version of 2005-02-27
0e4306
- manpage of 2005-01-19
0e4306
0e4306
* Wed Dec 01 2004 Nils Philippsen <nphilipp@redhat.com>
0e4306
- version of 2004-11-28
0e4306
- initial build