|
@@ -1,27 +1,38 @@
|
|
|
|
+%bcond_with cinepaint
|
|
|
|
+
|
|
Summary: Utility for digital camera raw images
|
|
Summary: Utility for digital camera raw images
|
|
-Summary(ja): デジタルカメラの raw イメージ用ユーティリティ
|
|
+Summary(ja): デジタルカメラの RAW 画像ユーティリティ
|
|
Name: ufraw
|
|
Name: ufraw
|
|
-Version: 0.18
|
|
+Version: 0.21
|
|
-Release: 6%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
License: GPLv2
|
|
License: GPLv2
|
|
Group: Applications/Graphics
|
|
Group: Applications/Graphics
|
|
URL: http://ufraw.sourceforge.net/
|
|
URL: http://ufraw.sourceforge.net/
|
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
+# added Japanese comment
|
|
|
|
+Source10: %{name}.desktop
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: cfitsio-devel
|
|
BuildRequires: cfitsio-devel
|
|
BuildRequires: exiv2-devel
|
|
BuildRequires: exiv2-devel
|
|
BuildRequires: gimp-devel
|
|
BuildRequires: gimp-devel
|
|
-BuildRequires: gtk2-devel >= 2.6
|
|
+BuildRequires: glib2-devel >= 2.12
|
|
-BuildRequires: gtkimageview-devel >= 1.3.0
|
|
+BuildRequires: gtk2-devel >= 2.12
|
|
-BuildRequires: lcms-devel
|
|
+BuildRequires: gtkimageview-devel >= 1.6.1
|
|
|
|
+BuildRequires: lcms2-devel
|
|
|
|
+BuildRequires: lensfun-devel >= 0.2.5
|
|
BuildRequires: libexif-devel
|
|
BuildRequires: libexif-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libtiff-devel
|
|
|
|
+BuildRequires: perl
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
|
|
+%if %{with cinepaint}
|
|
|
|
+BuildRequires: cinepaint-devel >= 0.22
|
|
|
|
+%define cinepaintplugindir %(pkg-config --variable=programplugindir cinepaint-gtk)/plug-ins
|
|
|
|
+%endif
|
|
Requires(post): GConf2, shared-mime-info, desktop-file-utils
|
|
Requires(post): GConf2, shared-mime-info, desktop-file-utils
|
|
Requires(postun): shared-mime-info, desktop-file-utils
|
|
Requires(postun): shared-mime-info, desktop-file-utils
|
|
Requires(pre): GConf2
|
|
Requires(pre): GConf2
|
|
@@ -34,7 +45,7 @@ formats and has editor for the tone curves. It allows easy process more
|
|
images in a batch on command-line.
|
|
images in a batch on command-line.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-デジタルカメラの raw イメージを読み込み、操作するためのアプリケーション
|
|
+デジタルカメラから RAW 画像を読み込み、操作するためのアプリケーション
|
|
です。カラーマネージメント機能を持ち、Nikon のカーブフォーマットの読み
|
|
です。カラーマネージメント機能を持ち、Nikon のカーブフォーマットの読み
|
|
込みやトーンカーブの編集が可能です。また大量のファイルをコマンドライン
|
|
込みやトーンカーブの編集が可能です。また大量のファイルをコマンドライン
|
|
から簡単にバッチ処理できます。
|
|
から簡単にバッチ処理できます。
|
|
@@ -43,7 +54,7 @@ images in a batch on command-line.
|
|
|
|
|
|
%package gimp
|
|
%package gimp
|
|
Summary: Raw image loader plugin for The GIMP
|
|
Summary: Raw image loader plugin for The GIMP
|
|
-Summary(ja): GIMP 用の raw イメージ読み込み用プラグイン
|
|
+Summary(ja): GIMP 用の RAW 画像読み込みプラグイン
|
|
Group: Applications/Graphics
|
|
Group: Applications/Graphics
|
|
Requires: gimp
|
|
Requires: gimp
|
|
|
|
|
|
@@ -52,39 +63,48 @@ ufraw-gimp is a GIMP plug-in to read and manipulate raw images from
|
|
digital cameras.
|
|
digital cameras.
|
|
|
|
|
|
%description gimp -l ja
|
|
%description gimp -l ja
|
|
-ufraw-gimp はデジタルカメラの raw イメージを読み込み、操作するための
|
|
+ufraw-gimp はデジタルカメラの RAW 画像を読み込み、操作するための GIMP プラグインです。
|
|
-GIMP 用の plug-in です。
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
#---------------------------------------------------------------------------
|
|
-
|
|
+%if %{with cinepaint}
|
|
|
|
+%package cinepaint
|
|
|
|
+Summary: CinePaint plugin to retrieve raw image data from digital cameras
|
|
|
|
+Group: Applications/Multimedia
|
|
|
|
+Requires: ufraw = %{version}-%{release}
|
|
|
|
+Requires: cinepaint
|
|
|
|
+
|
|
|
|
+%description cinepaint
|
|
|
|
+The ufraw-cinepaint package contains a CinePaint plugin for opening raw format
|
|
|
|
+images of digital cameras.
|
|
|
|
+%endif
|
|
|
|
+#---------------------------------------------------------------------------
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
|
|
+cp -p %{SOURCE10} .
|
|
|
|
+
|
|
%build
|
|
%build
|
|
-%configure --with-gimp --enable-extras DESTDIR=$RPM_BUILD_ROOT
|
|
+%configure --enable-mime --enable-extras --with-gimp DESTDIR=$RPM_BUILD_ROOT
|
|
-%{__make}
|
|
+make schemasdir=%{_sysconfdir}/gconf/schemas
|
|
|
|
|
|
%install
|
|
%install
|
|
-%{__rm} -rf $RPM_BUILD_ROOT
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
+make install DESTDIR=$RPM_BUILD_ROOT
|
|
-%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
+
|
|
-unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
+# don't ship dcraw binary
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_bindir}/dcraw
|
|
|
|
|
|
# install schemas to sysconfdir manually.
|
|
# install schemas to sysconfdir manually.
|
|
-%{__install} -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/gconf/schemas
|
|
+%{__install} -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
|
|
./generate_schemas.sh %{_prefix} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/ufraw.schemas
|
|
./generate_schemas.sh %{_prefix} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/ufraw.schemas
|
|
-#{__mv} ${RPM_BUILD_ROOT}/%{_datadir}/gconf/schemas/ufraw.schemas ${RPM_BUILD_ROOT}/%{_sysconfdir}/gconf/schemas
|
|
+mv $RPM_BUILD_ROOT%{_datadir}/gconf/schemas/ufraw.schemas $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
|
|
-#{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/gconf/schemas
|
|
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gconf/schemas
|
|
-
|
|
|
|
-# install .desktop manually.
|
|
|
|
-%{__install} -d $RPM_BUILD_ROOT/%{_datadir}/applications
|
|
|
|
-%{__install} -m 644 ufraw.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
|
|
|
|
|
|
|
|
# install mime-info manually. (But this has been included in shared-mime-info >= 0.21)
|
|
# install mime-info manually. (But this has been included in shared-mime-info >= 0.21)
|
|
-%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/mime/packages
|
|
+%{__install} -d $RPM_BUILD_ROOT%{_datadir}/mime/packages
|
|
-%{__install} -m 644 ufraw-mime.xml ${RPM_BUILD_ROOT}/%{_datadir}/mime/packages
|
|
+%{__install} -m 644 ufraw-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
@@ -123,9 +143,10 @@ update-desktop-database %{_datadir}/applications >& /dev/null ||:
|
|
%doc COPYING MANIFEST README TODO
|
|
%doc COPYING MANIFEST README TODO
|
|
%{_bindir}/ufraw
|
|
%{_bindir}/ufraw
|
|
%{_bindir}/ufraw-batch
|
|
%{_bindir}/ufraw-batch
|
|
-%{_bindir}/dcraw
|
|
+#{_bindir}/dcraw
|
|
%{_bindir}/nikon-curve
|
|
%{_bindir}/nikon-curve
|
|
%{_sysconfdir}/gconf/schemas/ufraw.schemas
|
|
%{_sysconfdir}/gconf/schemas/ufraw.schemas
|
|
|
|
+%{_datadir}/appdata/%{name}.appdata.xml
|
|
%{_datadir}/applications/ufraw.desktop
|
|
%{_datadir}/applications/ufraw.desktop
|
|
%{_datadir}/mime/packages/ufraw-mime.xml
|
|
%{_datadir}/mime/packages/ufraw-mime.xml
|
|
%{_datadir}/pixmaps/ufraw.png
|
|
%{_datadir}/pixmaps/ufraw.png
|
|
@@ -135,7 +156,19 @@ update-desktop-database %{_datadir}/applications >& /dev/null ||:
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/gimp/2.0/plug-ins/ufraw-gimp
|
|
%{_libdir}/gimp/2.0/plug-ins/ufraw-gimp
|
|
|
|
|
|
|
|
+%if %{with cinepaint}
|
|
|
|
+%files cinepaint
|
|
|
|
+%defattr(-, root, root, -)
|
|
|
|
+%{cinepaintplugindir}/ufraw-cinepaint
|
|
|
|
+%endif
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Mar 10 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.21-1
|
|
|
|
+- updated to 0.21
|
|
|
|
+- removed %{_bindir}/dcraw to avoid conflicting with dcraw package
|
|
|
|
+- added BR: lensfun-devel
|
|
|
|
+- added BR: lcms2-devel instead of lcms-devel
|
|
|
|
+
|
|
* Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.18-6
|
|
* Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.18-6
|
|
- rebuilt with cfitsio 3.370
|
|
- rebuilt with cfitsio 3.370
|
|
|
|
|