[521] | 1 | Summary: Tool for decoding raw image data from digital cameras |
---|
[9427] | 2 | Summary(ja): デジタルカメラの RAW 画像データをデコードするツール |
---|
[521] | 3 | Name: dcraw |
---|
[9427] | 4 | Version: 9.24.4 |
---|
[521] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | Group: Applications/Multimedia |
---|
| 7 | License: GPLv2+ |
---|
| 8 | URL: http://cybercom.net/~dcoffin/dcraw |
---|
| 9 | Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz |
---|
[9427] | 10 | Patch0: dcraw-9.19-CVE-2013-1438.patch |
---|
| 11 | Patch1: dcraw-9.21-lcms2-error-reporting.patch |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[521] | 14 | BuildRequires: gettext |
---|
| 15 | BuildRequires: libjpeg-devel |
---|
[9427] | 16 | BuildRequires: lcms2-devel |
---|
[6424] | 17 | BuildRequires: jasper-devel |
---|
[521] | 18 | |
---|
| 19 | %description |
---|
| 20 | This package contains dcraw, a command line tool to decode raw image data |
---|
| 21 | downloaded from digital cameras. |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | %setup -q -n dcraw |
---|
[9427] | 25 | %patch0 -p1 -b .CVE-2013-1438 |
---|
| 26 | %patch1 -p1 -b .lcms2-error-reporting |
---|
[521] | 27 | |
---|
| 28 | %build |
---|
[9427] | 29 | gcc %optflags -lm -ljasper -ljpeg -llcms2 -DLOCALEDIR=\""%{_datadir}/locale"\" -o dcraw dcraw.c |
---|
[521] | 30 | # build language catalogs |
---|
| 31 | for catsrc in dcraw_*.po; do |
---|
| 32 | lang="${catsrc%.po}" |
---|
| 33 | lang="${lang#dcraw_}" |
---|
| 34 | msgfmt -o "dcraw_${lang}.mo" "$catsrc" |
---|
| 35 | done |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf %buildroot |
---|
| 39 | install -d -m 0755 %{buildroot}%{_bindir} |
---|
| 40 | install -m 0755 dcraw %{buildroot}%{_bindir} |
---|
| 41 | |
---|
| 42 | # install language catalogs |
---|
| 43 | for catalog in dcraw_*.mo; do |
---|
| 44 | lang="${catalog%.mo}" |
---|
| 45 | lang="${lang#dcraw_}" |
---|
| 46 | install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES" |
---|
| 47 | install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo" |
---|
| 48 | done |
---|
| 49 | |
---|
| 50 | install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 |
---|
| 51 | install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1 |
---|
| 52 | # localized manpages |
---|
| 53 | for manpage in dcraw_*.1; do |
---|
| 54 | lang="${manpage%.1}" |
---|
| 55 | lang="${lang#dcraw_}" |
---|
| 56 | install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1" |
---|
| 57 | install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1" |
---|
| 58 | done |
---|
| 59 | |
---|
| 60 | %find_lang %{name} |
---|
| 61 | |
---|
| 62 | %clean |
---|
| 63 | rm -rf %buildroot |
---|
| 64 | |
---|
| 65 | %files -f %{name}.lang |
---|
| 66 | %defattr(-, root, root) |
---|
| 67 | %{_bindir}/dcraw |
---|
| 68 | %{_mandir}/man1/* |
---|
| 69 | %{_mandir}/*/man1/* |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[9427] | 72 | * Tue Mar 10 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 9.24.4-1 |
---|
| 73 | - update to 9.24.4 |
---|
| 74 | - add BuildRequires: lcms2-devel instead of lcms-devel |
---|
| 75 | |
---|
[6424] | 76 | * Sat Jun 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.12-1 |
---|
| 77 | - update to 9.12 |
---|
| 78 | - add BuildRequires: jasper-devel |
---|
| 79 | |
---|
[521] | 80 | * Thu Jun 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.91-1 |
---|
| 81 | - initial build for Vine Linux |
---|
| 82 | |
---|
| 83 | * Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> - 8.91-1 |
---|
| 84 | - version 8.91 |
---|
| 85 | |
---|
| 86 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.89-2 |
---|
| 87 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 88 | |
---|
| 89 | * Thu Nov 27 2008 Nils Philippsen <nphilipp@redhat.com> - 8.89-1 |
---|
| 90 | - version 8.89 |
---|
| 91 | - remove obsolete gps patch |
---|
| 92 | |
---|
| 93 | * Mon Feb 25 2008 Nils Philippsen <nphilipp@redhat.com> - 8.82-1 |
---|
| 94 | - version 8.82 |
---|
| 95 | |
---|
| 96 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 8.81-2 |
---|
| 97 | - Autorebuild for GCC 4.3 |
---|
| 98 | |
---|
| 99 | * Mon Jan 14 2008 Nils Philippsen <nphilipp@redhat.com> - 8.81-1 |
---|
| 100 | - version 8.81 |
---|
| 101 | - add support for GPS data (#428600, patch by Ulrich Drepper) |
---|
| 102 | |
---|
| 103 | * Fri Nov 30 2007 Nils Philippsen <nphilipp@redhat.com> - 8.80-1 |
---|
| 104 | - version 8.80 |
---|
| 105 | - change license tag to GPLv2+ |
---|
| 106 | |
---|
| 107 | * Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-2 |
---|
| 108 | - rebuild with pristine source tarball |
---|
| 109 | |
---|
| 110 | * Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-1 |
---|
| 111 | - version 8.77 |
---|
| 112 | |
---|
| 113 | * Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-2 |
---|
| 114 | - fix summary, use %%find_lang (#225678) |
---|
| 115 | |
---|
| 116 | * Thu Feb 01 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-1 |
---|
| 117 | - upstream finally has a tarball, use that and its version (#209016) |
---|
| 118 | - use dist tag |
---|
| 119 | |
---|
| 120 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20060521-1.1 |
---|
| 121 | - rebuild |
---|
| 122 | |
---|
| 123 | * Tue May 23 2006 Nils Philippsen <nphilipp@redhat.com> - 0.0.20060521-1 |
---|
| 124 | - program and manpage version of 2006-05-21 |
---|
| 125 | - use %%optflags |
---|
| 126 | - change license tag to GPL |
---|
| 127 | - use lcms |
---|
| 128 | |
---|
| 129 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.2 |
---|
| 130 | - bump again for double-long bug on ppc(64) |
---|
| 131 | |
---|
| 132 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.1 |
---|
| 133 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 134 | |
---|
| 135 | * Wed Dec 14 2005 Nils Philippsen <nphilipp@redhat.com> |
---|
| 136 | - version of 2005-12-11 |
---|
| 137 | - manpage of 2005-09-29 |
---|
| 138 | |
---|
| 139 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 140 | - rebuilt |
---|
| 141 | |
---|
| 142 | * Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com> |
---|
| 143 | - version of 2005-02-27 |
---|
| 144 | - manpage of 2005-01-19 |
---|
| 145 | |
---|
| 146 | * Wed Dec 01 2004 Nils Philippsen <nphilipp@redhat.com> |
---|
| 147 | - version of 2004-11-28 |
---|
| 148 | - initial build |
---|