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