dcraw-vl.spec 4.1 KB

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