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