b544d5
Summary: Tool for decoding raw image data from digital cameras
b544d5
Name: dcraw
b544d5
Version: 9.27.0
b544d5
Release: 9%{?dist}
b544d5
License: GPLv2+
b544d5
URL: http://cybercom.net/~dcoffin/dcraw
b544d5
Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz
b544d5
Patch0: dcraw-9.21-lcms2-error-reporting.patch
b544d5
Patch1: dcraw-CVE-2018-5801.patch
b544d5
BuildRequires: gcc
b544d5
BuildRequires: gettext
b544d5
BuildRequires: libjpeg-devel
b544d5
BuildRequires: lcms2-devel
b544d5
BuildRequires: jasper-devel
b544d5
Provides: bundled(dcraw)
b544d5
b544d5
%description
b544d5
This package contains dcraw, a command line tool to decode raw image data
b544d5
downloaded from digital cameras.
b544d5
b544d5
%prep
b544d5
%autosetup -n dcraw
b544d5
b544d5
%build
b544d5
gcc %optflags $RPM_LD_FLAGS \
b544d5
    -lm -ljpeg -llcms2 -ljasper \
b544d5
    -DLOCALEDIR="\"%{_datadir}/locale\"" \
b544d5
    -o dcraw dcraw.c
b544d5
# build language catalogs
b544d5
for catsrc in dcraw_*.po; do
b544d5
    lang="${catsrc%.po}"
b544d5
    lang="${lang#dcraw_}"
b544d5
    msgfmt -o "dcraw_${lang}.mo" "$catsrc"
b544d5
done
b544d5
b544d5
%install
b544d5
install -d -m 0755 %{buildroot}%{_bindir}
b544d5
install -m 0755 dcraw %{buildroot}%{_bindir}
b544d5
b544d5
# install language catalogs
b544d5
for catalog in dcraw_*.mo; do
b544d5
    lang="${catalog%.mo}"
b544d5
    lang="${lang#dcraw_}"
b544d5
    install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES"
b544d5
    install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo"
b544d5
done
b544d5
b544d5
install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
b544d5
install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1
b544d5
# localized manpages
b544d5
rm -f %{name}-man-files
b544d5
touch %{name}-man-files
b544d5
for manpage in dcraw_*.1; do
b544d5
    lang="${manpage%.1}"
b544d5
    lang="${lang#dcraw_}"
b544d5
    install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1"
b544d5
    install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1"
b544d5
    echo "%%lang($lang) %%{_mandir}/${lang}/man1/*" >> %{name}-man-files
b544d5
done
b544d5
b544d5
%find_lang %{name}
b544d5
b544d5
%files -f %{name}.lang -f %{name}-man-files
b544d5
%{_bindir}/dcraw
b544d5
%{_mandir}/man1/*
b544d5
b544d5
%changelog
b544d5
* Thu Jul 14 2018 Josef Ridky <jridky@redhat.com> - 9.27.0-9
b544d5
- Fix CVE-2018-5801 (#1557165) and CVE-2018-5802 (#1557184)
b544d5
b544d5
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 9.27.0-8
b544d5
- Use LDFLAGS from redhat-rpm-config
b544d5
b544d5
* Tue Feb 20 2018 Nils Philippsen <nils@tiptoe.de> - 9.27.0-7
b544d5
- require gcc for building
b544d5
b544d5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.27.0-6
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b544d5
b544d5
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.27.0-5
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b544d5
b544d5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.27.0-4
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b544d5
b544d5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.27.0-3
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b544d5
b544d5
* Mon Dec 05 2016 Than Ngo <than@redhat.com> - 9.27.0-2
b544d5
- rebuild against new jasper-2.0.0
b544d5
b544d5
* Thu Jun 09 2016 Nils Philippsen <nils@redhat.com> - 9.27.0
b544d5
- version 9.27.0
b544d5
- use %%autosetup
b544d5
- remove packaging cruft
b544d5
b544d5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 9.25.0-4
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b544d5
b544d5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.25.0-3
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b544d5
b544d5
* Wed May 20 2015 Nils Philippsen <nils@redhat.com> - 9.25.0-2
b544d5
- add Provides: bundled(dcraw)
b544d5
- don't manually specify, clean buildroot
b544d5
b544d5
* Wed May 20 2015 Nils Philippsen <nils@redhat.com> - 9.25.0-1
b544d5
- version 9.25.0
b544d5
- remove unnecessary check from CVE-2013-1438 patch
b544d5
- avoid writing past array boundaries when reading certain raw formats
b544d5
  (CVE-2015-3885)
b544d5
b544d5
* Wed Apr 08 2015 Nils Philippsen <nils@redhat.com> - 9.24.4-1
b544d5
- version 9.24.4
b544d5
b544d5
* Sat Feb 14 2015 Nils Philippsen <nils@redhat.com> - 9.23.0-1
b544d5
- version 9.23.0
b544d5
b544d5
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.22-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b544d5
b544d5
* Mon Jun 30 2014 Nils Philippsen <nils@redhat.com> - 9.22-1
b544d5
- version 9.22
b544d5
b544d5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.21-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b544d5
b544d5
* Tue May 06 2014 Nils Philippsen <nils@redhat.com> - 9.21-1
b544d5
- report lcms2 errors
b544d5
b544d5
* Mon May 05 2014 Nils Philippsen <nils@redhat.com> - 9.21-1
b544d5
- version 9.21
b544d5
b544d5
* Sat Apr 26 2014 Nils Philippsen <nils@redhat.com> - 9.20-2
b544d5
- new upstream tarball with unchanged version number (RCS id 1.461 instead of
b544d5
  1.458), obsoletes lcms2 patch
b544d5
b544d5
* Wed Jan 15 2014 Nils Philippsen <nils@redhat.com> - 9.20-1
b544d5
- version 9.20
b544d5
b544d5
* Fri Dec 06 2013 Nils Philippsen <nils@redhat.com> - 9.19-4
b544d5
- harden against corrupt input files (CVE-2013-1438)
b544d5
b544d5
* Fri Sep 13 2013 Nils Philippsen <nils@redhat.com> - 9.19-3
b544d5
- build against the currently maintained version of lcms (2.x)
b544d5
b544d5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.19-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b544d5
b544d5
* Thu Jun 20 2013 Nils Philippsen <nils@redhat.com> - 9.19-1
b544d5
- version 9.19
b544d5
b544d5
* Mon Jun 03 2013 Nils Philippsen <nils@redhat.com> - 9.18-1
b544d5
- version 9.18
b544d5
b544d5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.17-3
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b544d5
b544d5
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 9.17-2
b544d5
- rebuild due to "jpeg8-ABI" feature drop
b544d5
b544d5
* Mon Jan 14 2013 Nils Philippsen <nils@redhat.com> - 9.17-1
b544d5
- version 9.17
b544d5
b544d5
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 9.16-4
b544d5
- rebuild against new libjpeg
b544d5
b544d5
* Thu Oct 18 2012 Nils Philippsen <nils@redhat.com> - 9.16-3
b544d5
- upstream changed 9.16 tarball, adds support for Samsung NX1000, Sony
b544d5
  DSC-RX100 models
b544d5
b544d5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.16-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b544d5
b544d5
* Wed Jul 04 2012 Nils Philippsen <nils@redhat.com> - 9.16-1
b544d5
- version 9.16
b544d5
b544d5
* Tue Jun 19 2012 Nils Philippsen <nils@redhat.com> - 9.15-1
b544d5
- version 9.15
b544d5
b544d5
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 9.12-2
b544d5
- rebuild for gcc 4.7
b544d5
b544d5
* Thu Dec 22 2011 Nils Philippsen <nils@redhat.com> - 9.12-1
b544d5
- version 9.12
b544d5
b544d5
* Wed Oct 12 2011 Nils Philippsen <nils@redhat.com> - 9.11-1
b544d5
- version 9.11
b544d5
b544d5
* Mon Aug 01 2011 Nils Philippsen <nils@redhat.com> - 9.10-1
b544d5
- version 9.10
b544d5
- add BR: jasper-devel, link with jasper library
b544d5
b544d5
* Mon May 23 2011 Nils Philippsen <nils@redhat.com> - 9.08-1
b544d5
- version 9.08
b544d5
b544d5
* Thu Apr 14 2011 Nils Philippsen <nils@redhat.com> - 9.07-1
b544d5
- version 9.07
b544d5
b544d5
* Fri Mar 04 2011 Nils Philippsen <nils@redhat.com> - 9.06-1
b544d5
- version 9.06
b544d5
b544d5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.04-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b544d5
b544d5
* Tue Aug 03 2010 Nils Philippsen <nils@redhat.com> - 9.04-1
b544d5
- version 9.04
b544d5
b544d5
* Wed Jun 02 2010 Nils Philippsen <nils@redhat.com> - 9.01-1
b544d5
- version 9.01
b544d5
- color man page files with %%lang()
b544d5
b544d5
* Fri Feb 12 2010 Nils Philippsen <nils@redhat.com> - 8.99-1
b544d5
- version 8.99
b544d5
b544d5
* Tue Aug 18 2009 Nils Philippsen <nils@redhat.com> - 8.96-1
b544d5
- version 8.96
b544d5
b544d5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.91-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b544d5
b544d5
* Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> - 8.91-1
b544d5
- version 8.91
b544d5
b544d5
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.89-2
b544d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b544d5
b544d5
* Thu Nov 27 2008 Nils Philippsen <nphilipp@redhat.com> - 8.89-1
b544d5
- version 8.89
b544d5
- remove obsolete gps patch
b544d5
b544d5
* Mon Feb 25 2008 Nils Philippsen <nphilipp@redhat.com> - 8.82-1
b544d5
- version 8.82
b544d5
b544d5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 8.81-2
b544d5
- Autorebuild for GCC 4.3
b544d5
b544d5
* Mon Jan 14 2008 Nils Philippsen <nphilipp@redhat.com> - 8.81-1
b544d5
- version 8.81
b544d5
- add support for GPS data (#428600, patch by Ulrich Drepper)
b544d5
b544d5
* Fri Nov 30 2007 Nils Philippsen <nphilipp@redhat.com> - 8.80-1
b544d5
- version 8.80
b544d5
- change license tag to GPLv2+
b544d5
b544d5
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-2
b544d5
- rebuild with pristine source tarball
b544d5
b544d5
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-1
b544d5
- version 8.77
b544d5
b544d5
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-2
b544d5
- fix summary, use %%find_lang (#225678)
b544d5
b544d5
* Thu Feb 01 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-1
b544d5
- upstream finally has a tarball, use that and its version (#209016)
b544d5
- use dist tag
b544d5
b544d5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20060521-1.1
b544d5
- rebuild
b544d5
b544d5
* Tue May 23 2006 Nils Philippsen <nphilipp@redhat.com> - 0.0.20060521-1
b544d5
- program and manpage version of 2006-05-21
b544d5
- use %%optflags
b544d5
- change license tag to GPL
b544d5
- use lcms
b544d5
b544d5
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.2
b544d5
- bump again for double-long bug on ppc(64)
b544d5
b544d5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.1
b544d5
- rebuilt for new gcc4.1 snapshot and glibc changes
b544d5
b544d5
* Wed Dec 14 2005 Nils Philippsen <nphilipp@redhat.com>
b544d5
- version of 2005-12-11
b544d5
- manpage of 2005-09-29
b544d5
b544d5
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b544d5
- rebuilt
b544d5
b544d5
* Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com>
b544d5
- version of 2005-02-27
b544d5
- manpage of 2005-01-19
b544d5
b544d5
* Wed Dec 01 2004 Nils Philippsen <nphilipp@redhat.com>
b544d5
- version of 2004-11-28
b544d5
- initial build