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