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