ufraw-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. Summary: Utility for digital camera raw images
  2. Summary(ja): デジタルカメラの raw イメージ用ユーティリティ
  3. Name: ufraw
  4. Version: 0.17
  5. Release: 1%{?_dist_release}
  6. Source0: %{name}-%{version}.tar.gz
  7. License: GPL
  8. Group: Applications/Graphics
  9. URL: http://ufraw.sourceforge.net/
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gtk2-devel >= 2.6, gimp-devel
  12. BuildRequires: libexif-devel, exiv2-devel
  13. BuildRequires: libjpeg-devel, libpng-devel
  14. BuildRequires: zlib-devel, lcms-devel
  15. BuildRequires: gtkimageview-devel >= 1.3.0
  16. Requires(post): GConf2, shared-mime-info, desktop-file-utils
  17. Requires(postun): shared-mime-info, desktop-file-utils
  18. Requires(pre): GConf2
  19. Requires(preun): GConf2
  20. %description
  21. Application allowed to read and manipulate raw images from digital
  22. cameras. Takes care of the color management, handles the Nikon curve
  23. formats and has editor for the tone curves. It allows easy process more
  24. images in a batch on command-line.
  25. %description -l ja
  26. デジタルカメラの raw イメージを読み込み、操作するためのアプリケーション
  27. です。カラーマネージメント機能を持ち、Nikon のカーブフォーマットの読み
  28. 込みやトーンカーブの編集が可能です。また大量のファイルをコマンドライン
  29. から簡単にバッチ処理できます。
  30. #---------------------------------------------------------------------------
  31. %package gimp
  32. Summary: Raw image loader plugin for The GIMP
  33. Summary(ja): GIMP 用の raw イメージ読み込み用プラグイン
  34. Group: Applications/Graphics
  35. Requires: gimp
  36. %description gimp
  37. ufraw-gimp is a GIMP plug-in to read and manipulate raw images from
  38. digital cameras.
  39. %description gimp -l ja
  40. ufraw-gimp はデジタルカメラの raw イメージを読み込み、操作するための
  41. GIMP 用の plug-in です。
  42. #---------------------------------------------------------------------------
  43. %prep
  44. %setup -q
  45. %build
  46. %configure --enable-gimp --enable-extras --with-libexif --with-exiv2 DESTDIR=$RPM_BUILD_ROOT
  47. %{__make}
  48. %install
  49. %{__rm} -rf $RPM_BUILD_ROOT
  50. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  51. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  52. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  53. # install schemas to sysconfdir manually.
  54. %{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/gconf/schemas
  55. ./generate_schemas.sh %{_prefix} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/ufraw.schemas
  56. #{__mv} ${RPM_BUILD_ROOT}/%{_datadir}/gconf/schemas/ufraw.schemas ${RPM_BUILD_ROOT}/%{_sysconfdir}/gconf/schemas
  57. #{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/gconf/schemas
  58. # install .desktop manually.
  59. %{__install} -d $RPM_BUILD_ROOT/%{_datadir}/applications
  60. %{__install} -m 644 ufraw.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
  61. # install mime-info manually. (But this has been included in shared-mime-info >= 0.21)
  62. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/mime/packages
  63. %{__install} -m 644 ufraw-mime.xml ${RPM_BUILD_ROOT}/%{_datadir}/mime/packages
  64. %find_lang %{name}
  65. %clean
  66. %{__rm} -rf ${RPM_BUILD_ROOT}
  67. %post
  68. update-mime-database %{_datadir}/mime >& /dev/null ||:
  69. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  70. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||:
  71. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  72. %pre
  73. if [ "$1" -gt 1 ]; then
  74. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  75. gconftool-2 --makefile-uninstall-rule \
  76. %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||:
  77. fi
  78. %preun
  79. if [ "$1" -eq 0 ]; then
  80. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  81. gconftool-2 --makefile-uninstall-rule \
  82. %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||:
  83. fi
  84. %postun
  85. update-mime-database %{_datadir}/mime >& /dev/null ||:
  86. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  87. %files -f %{name}.lang
  88. %defattr(-,root,root)
  89. %doc COPYING MANIFEST README TODO
  90. %{_bindir}/ufraw
  91. %{_bindir}/ufraw-batch
  92. %{_bindir}/dcraw
  93. %{_bindir}/nikon-curve
  94. %{_sysconfdir}/gconf/schemas/ufraw.schemas
  95. %{_datadir}/applications/ufraw.desktop
  96. %{_datadir}/mime/packages/ufraw-mime.xml
  97. %{_datadir}/pixmaps/ufraw.png
  98. %{_mandir}/man1/ufraw.1*
  99. %files gimp
  100. %defattr(-,root,root)
  101. %{_libdir}/gimp/2.0/plug-ins/ufraw-gimp
  102. %changelog
  103. * Wed May 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-1
  104. - new upstream release
  105. - built with exiv2-0.19
  106. * Sun Apr 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-1
  107. - new upstream release
  108. * Sun Oct 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.13-1vl5
  109. - new upstream release
  110. * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 0.12.1-1vl5
  111. - applied new versioning policy, spec in utf-8
  112. - built with exiv2
  113. * Fri Aug 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.1-0vl1
  114. - new upstream release.
  115. - add Requires(post, postun)
  116. * Tue Aug 07 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-0vl1
  117. - new upstream release.
  118. - add BuildRequires gtkimageview-devel >= 1.3.0
  119. * Mon Jun 11 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.11-0vl1
  120. - initial build for Vine Linux