dcraw-vl.spec 3.9 KB

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