source: projects/specs/branches/6/u/ufraw/ufraw-vl.spec @ 953

Revision 953, 5.0 KB checked in by inagaki, 14 years ago (diff)

updated: exiv2, geeqie, gnome-commander, kdebase-runtime, kdebase-workspace, kdegraphics, kphotoalbum, strigi and ufraw

Line 
1Summary:        Utility for digital camera raw images
2Summary(ja):    デジタルカメラの raw イメージ用ユーティリティ
3Name:           ufraw
4Version:        0.17
5Release:        1%{?_dist_release}
6Source0:        %{name}-%{version}.tar.gz
7License:        GPL
8Group:          Applications/Graphics
9URL:            http://ufraw.sourceforge.net/
10
11BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12BuildRequires:  gtk2-devel >= 2.6, gimp-devel
13BuildRequires:  libexif-devel, exiv2-devel
14BuildRequires:  libjpeg-devel, libpng-devel
15BuildRequires:  zlib-devel, lcms-devel
16BuildRequires:  gtkimageview-devel >= 1.3.0
17Requires(post): GConf2, shared-mime-info, desktop-file-utils
18Requires(postun): shared-mime-info, desktop-file-utils
19Requires(pre): GConf2
20Requires(preun): GConf2
21
22%description
23Application allowed to read and manipulate raw images from digital
24cameras. Takes care of the color management, handles the Nikon curve
25formats and has editor for the tone curves. It allows easy process more
26images in a batch on command-line.
27
28%description -l ja
29デジタルカメラの raw イメージを読み込み、操作するためのアプリケーション
30です。カラーマネージメント機能を持ち、Nikon のカーブフォーマットの読み
31込みやトーンカーブの編集が可能です。また大量のファイルをコマンドライン
32から簡単にバッチ処理できます。
33
34#---------------------------------------------------------------------------
35
36%package gimp
37Summary:        Raw image loader plugin for The GIMP
38Summary(ja):    GIMP 用の raw イメージ読み込み用プラグイン
39Group:          Applications/Graphics
40Requires:       gimp
41
42%description gimp
43ufraw-gimp is a GIMP plug-in to read and manipulate raw images from
44digital cameras.
45
46%description gimp -l ja
47ufraw-gimp はデジタルカメラの raw イメージを読み込み、操作するための
48GIMP 用の 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
63export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
64%{__make} install DESTDIR=${RPM_BUILD_ROOT}
65unset 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
89update-mime-database %{_datadir}/mime >& /dev/null ||:
90export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
91gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ufraw.schemas > /dev/null ||:
92update-desktop-database %{_datadir}/applications >& /dev/null ||:
93
94%pre
95if [ "$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 ||:
99fi
100
101%preun
102if [ "$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 ||:
106fi
107
108%postun
109update-mime-database %{_datadir}/mime >& /dev/null ||:
110update-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
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
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
Note: See TracBrowser for help on using the repository browser.