ufraw-vl.spec 5.7 KB

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