dcraw-vl.spec 4.4 KB

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