[9427] | 1 | %bcond_with cinepaint |
---|
| 2 | |
---|
[521] | 3 | Summary: Utility for digital camera raw images |
---|
[9427] | 4 | Summary(ja): デジタルカメラの RAW 画像ユーティリティ |
---|
[521] | 5 | Name: ufraw |
---|
[9800] | 6 | Version: 0.22 |
---|
[9427] | 7 | Release: 1%{?_dist_release} |
---|
[4663] | 8 | |
---|
[9382] | 9 | License: GPLv2 |
---|
[521] | 10 | Group: Applications/Graphics |
---|
| 11 | URL: http://ufraw.sourceforge.net/ |
---|
| 12 | |
---|
[4663] | 13 | Source0: %{name}-%{version}.tar.gz |
---|
[9427] | 14 | # added Japanese comment |
---|
| 15 | Source10: %{name}.desktop |
---|
[4663] | 16 | |
---|
[521] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[4663] | 18 | BuildRequires: cfitsio-devel |
---|
| 19 | BuildRequires: exiv2-devel |
---|
| 20 | BuildRequires: gimp-devel |
---|
[9427] | 21 | BuildRequires: glib2-devel >= 2.12 |
---|
| 22 | BuildRequires: gtk2-devel >= 2.12 |
---|
| 23 | BuildRequires: gtkimageview-devel >= 1.6.1 |
---|
| 24 | BuildRequires: lcms2-devel |
---|
| 25 | BuildRequires: lensfun-devel >= 0.2.5 |
---|
[4663] | 26 | BuildRequires: libexif-devel |
---|
| 27 | BuildRequires: libjpeg-devel |
---|
| 28 | BuildRequires: libpng-devel |
---|
| 29 | BuildRequires: libtiff-devel |
---|
[9427] | 30 | BuildRequires: perl |
---|
[4663] | 31 | BuildRequires: zlib-devel |
---|
[9427] | 32 | %if %{with cinepaint} |
---|
| 33 | BuildRequires: cinepaint-devel >= 0.22 |
---|
| 34 | %define cinepaintplugindir %(pkg-config --variable=programplugindir cinepaint-gtk)/plug-ins |
---|
| 35 | %endif |
---|
[521] | 36 | Requires(post): GConf2, shared-mime-info, desktop-file-utils |
---|
| 37 | Requires(postun): shared-mime-info, desktop-file-utils |
---|
| 38 | Requires(pre): GConf2 |
---|
| 39 | Requires(preun): GConf2 |
---|
| 40 | |
---|
| 41 | %description |
---|
| 42 | Application allowed to read and manipulate raw images from digital |
---|
| 43 | cameras. Takes care of the color management, handles the Nikon curve |
---|
| 44 | formats and has editor for the tone curves. It allows easy process more |
---|
| 45 | images in a batch on command-line. |
---|
| 46 | |
---|
| 47 | %description -l ja |
---|
[9427] | 48 | デジタルカメラから RAW 画像を読み込み、操作するためのアプリケーション |
---|
[521] | 49 | です。カラーマネージメント機能を持ち、Nikon のカーブフォーマットの読み |
---|
| 50 | 込みやトーンカーブの編集が可能です。また大量のファイルをコマンドライン |
---|
| 51 | から簡単にバッチ処理できます。 |
---|
| 52 | |
---|
| 53 | #--------------------------------------------------------------------------- |
---|
| 54 | |
---|
| 55 | %package gimp |
---|
| 56 | Summary: Raw image loader plugin for The GIMP |
---|
[9427] | 57 | Summary(ja): GIMP 用の RAW 画像読み込みプラグイン |
---|
[521] | 58 | Group: Applications/Graphics |
---|
| 59 | Requires: gimp |
---|
| 60 | |
---|
| 61 | %description gimp |
---|
| 62 | ufraw-gimp is a GIMP plug-in to read and manipulate raw images from |
---|
| 63 | digital cameras. |
---|
| 64 | |
---|
| 65 | %description gimp -l ja |
---|
[9427] | 66 | ufraw-gimp はデジタルカメラの RAW 画像を読み込み、操作するための GIMP プラグインです。 |
---|
[521] | 67 | |
---|
| 68 | #--------------------------------------------------------------------------- |
---|
[9427] | 69 | %if %{with cinepaint} |
---|
| 70 | %package cinepaint |
---|
| 71 | Summary: CinePaint plugin to retrieve raw image data from digital cameras |
---|
| 72 | Group: Applications/Multimedia |
---|
| 73 | Requires: ufraw = %{version}-%{release} |
---|
| 74 | Requires: cinepaint |
---|
[521] | 75 | |
---|
[9427] | 76 | %description cinepaint |
---|
| 77 | The ufraw-cinepaint package contains a CinePaint plugin for opening raw format |
---|
| 78 | images of digital cameras. |
---|
| 79 | %endif |
---|
| 80 | #--------------------------------------------------------------------------- |
---|
[521] | 81 | |
---|
| 82 | %prep |
---|
| 83 | %setup -q |
---|
| 84 | |
---|
[9427] | 85 | cp -p %{SOURCE10} . |
---|
| 86 | |
---|
[521] | 87 | %build |
---|
[9427] | 88 | %configure --enable-mime --enable-extras --with-gimp DESTDIR=$RPM_BUILD_ROOT |
---|
| 89 | make schemasdir=%{_sysconfdir}/gconf/schemas |
---|
[521] | 90 | |
---|
| 91 | %install |
---|
[9427] | 92 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 93 | |
---|
[9427] | 94 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
[521] | 95 | |
---|
[9427] | 96 | # don't ship dcraw binary |
---|
| 97 | rm -f $RPM_BUILD_ROOT%{_bindir}/dcraw |
---|
| 98 | |
---|
[521] | 99 | # install schemas to sysconfdir manually. |
---|
[9427] | 100 | %{__install} -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas |
---|
[521] | 101 | ./generate_schemas.sh %{_prefix} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/ufraw.schemas |
---|
[9427] | 102 | mv $RPM_BUILD_ROOT%{_datadir}/gconf/schemas/ufraw.schemas $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas |
---|
| 103 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gconf/schemas |
---|
[521] | 104 | |
---|
| 105 | # install mime-info manually. (But this has been included in shared-mime-info >= 0.21) |
---|
[9427] | 106 | %{__install} -d $RPM_BUILD_ROOT%{_datadir}/mime/packages |
---|
| 107 | %{__install} -m 644 ufraw-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages |
---|
[521] | 108 | |
---|
| 109 | %find_lang %{name} |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | %clean |
---|
| 113 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %post |
---|
| 117 | update-mime-database %{_datadir}/mime >& /dev/null ||: |
---|
| 118 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 119 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||: |
---|
| 120 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 121 | |
---|
| 122 | %pre |
---|
| 123 | if [ "$1" -gt 1 ]; then |
---|
| 124 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 125 | gconftool-2 --makefile-uninstall-rule \ |
---|
| 126 | %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||: |
---|
| 127 | fi |
---|
| 128 | |
---|
| 129 | %preun |
---|
| 130 | if [ "$1" -eq 0 ]; then |
---|
| 131 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 132 | gconftool-2 --makefile-uninstall-rule \ |
---|
| 133 | %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||: |
---|
| 134 | fi |
---|
| 135 | |
---|
| 136 | %postun |
---|
| 137 | update-mime-database %{_datadir}/mime >& /dev/null ||: |
---|
| 138 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | %files -f %{name}.lang |
---|
| 142 | %defattr(-,root,root) |
---|
| 143 | %doc COPYING MANIFEST README TODO |
---|
| 144 | %{_bindir}/ufraw |
---|
| 145 | %{_bindir}/ufraw-batch |
---|
[9427] | 146 | #{_bindir}/dcraw |
---|
[521] | 147 | %{_bindir}/nikon-curve |
---|
| 148 | %{_sysconfdir}/gconf/schemas/ufraw.schemas |
---|
[9427] | 149 | %{_datadir}/appdata/%{name}.appdata.xml |
---|
[521] | 150 | %{_datadir}/applications/ufraw.desktop |
---|
| 151 | %{_datadir}/mime/packages/ufraw-mime.xml |
---|
| 152 | %{_datadir}/pixmaps/ufraw.png |
---|
| 153 | %{_mandir}/man1/ufraw.1* |
---|
| 154 | |
---|
| 155 | %files gimp |
---|
| 156 | %defattr(-,root,root) |
---|
| 157 | %{_libdir}/gimp/2.0/plug-ins/ufraw-gimp |
---|
| 158 | |
---|
[9427] | 159 | %if %{with cinepaint} |
---|
| 160 | %files cinepaint |
---|
| 161 | %defattr(-, root, root, -) |
---|
| 162 | %{cinepaintplugindir}/ufraw-cinepaint |
---|
| 163 | %endif |
---|
| 164 | |
---|
[521] | 165 | %changelog |
---|
[9800] | 166 | * Mon Nov 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22-1 |
---|
| 167 | - new upstream release |
---|
| 168 | |
---|
[9427] | 169 | * Tue Mar 10 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.21-1 |
---|
| 170 | - updated to 0.21 |
---|
| 171 | - removed %{_bindir}/dcraw to avoid conflicting with dcraw package |
---|
| 172 | - added BR: lensfun-devel |
---|
| 173 | - added BR: lcms2-devel instead of lcms-devel |
---|
| 174 | |
---|
[9382] | 175 | * Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.18-6 |
---|
| 176 | - rebuilt with cfitsio 3.370 |
---|
| 177 | |
---|
[9260] | 178 | * Wed Jan 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-5 |
---|
| 179 | - rebuild with libpng-1.6.12 |
---|
| 180 | |
---|
[8056] | 181 | * Wed Dec 11 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-4 |
---|
| 182 | - rebuild with exiv2-0.23 |
---|
| 183 | |
---|
[6655] | 184 | * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-3 |
---|
| 185 | - rebuild with exiv2-0.23 |
---|
| 186 | |
---|
[6152] | 187 | * Mon May 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18-2 |
---|
| 188 | - rebuild with exiv2-0.22 |
---|
| 189 | |
---|
[4663] | 190 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.18-1 |
---|
| 191 | - new upstream release |
---|
| 192 | - built with exiv2-0.21.1 |
---|
| 193 | - added BR: cfitsio-devel, libtiff-devel |
---|
| 194 | |
---|
[953] | 195 | * Wed May 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-1 |
---|
| 196 | - new upstream release |
---|
| 197 | - built with exiv2-0.19 |
---|
| 198 | |
---|
[521] | 199 | * Sun Apr 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-1 |
---|
| 200 | - new upstream release |
---|
| 201 | |
---|
| 202 | * Sun Oct 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.13-1vl5 |
---|
| 203 | - new upstream release |
---|
| 204 | |
---|
| 205 | * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 0.12.1-1vl5 |
---|
| 206 | - applied new versioning policy, spec in utf-8 |
---|
| 207 | - built with exiv2 |
---|
| 208 | |
---|
| 209 | * Fri Aug 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12.1-0vl1 |
---|
| 210 | - new upstream release. |
---|
| 211 | - add Requires(post, postun) |
---|
| 212 | |
---|
| 213 | * Tue Aug 07 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-0vl1 |
---|
| 214 | - new upstream release. |
---|
| 215 | - add BuildRequires gtkimageview-devel >= 1.3.0 |
---|
| 216 | |
---|
| 217 | * Mon Jun 11 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.11-0vl1 |
---|
| 218 | - initial build for Vine Linux |
---|