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