3 %bcond_without gimp # GIMP plugin
4 %bcond_without openmp # OpenMP support
6 Summary: RAW photo loader
7 Summary(pl.UTF-8): Narzędzie do wczytywania zdjęć w formacie RAW
12 Group: Applications/Graphics
13 Source0: http://downloads.sourceforge.net/ufraw/%{name}-%{version}.tar.gz
14 # Source0-md5: c30767cae2c44310f2a3d67d7a76f2c3
15 Patch0: 05_fix_build_due_to_unsigned_char.patch
16 Patch1: ufraw-find_green.patch
17 Patch2: ufraw-lf-destroy.patch
18 Patch3: ufraw-multipliers.patch
19 Patch4: exiv2-0.27.patch
20 URL: http://ufraw.sourceforge.net/
21 BuildRequires: automake
22 BuildRequires: bzip2-devel
23 BuildRequires: cfitsio-devel
24 BuildRequires: exiv2-devel >= 0.20
25 %{?with_openmp:BuildRequires: gcc-c++ >= 6:4.2}
26 BuildRequires: gettext-tools
27 %{?with_gimp:BuildRequires: gimp-devel >= 2.6.0}
28 BuildRequires: glib2-devel >= 1:2.12
29 BuildRequires: gtk+2-devel >= 2:2.12
30 BuildRequires: gtkimageview-devel >= 1.6
31 BuildRequires: jasper-devel
32 BuildRequires: lcms2-devel >= 2
33 BuildRequires: lensfun-devel >= 0.2.5
34 %{?with_openmp:BuildRequires: libgomp-devel}
35 BuildRequires: libjpeg-devel
36 BuildRequires: libpng-devel >= 1.2
37 BuildRequires: libstdc++-devel
38 BuildRequires: libtiff-devel >= 4
39 BuildRequires: perl-tools-pod
40 BuildRequires: pkgconfig >= 1:0.9.0
41 BuildRequires: zlib-devel
42 Requires(post,postun): desktop-file-utils
43 Requires(post,postun): shared-mime-info >= 0.21
44 Requires(post,preun): GConf2 >= 2.16.0
45 Requires: exiv2-libs >= 0.20
46 Requires: glib2 >= 1:2.12
47 Requires: gtk+2 >= 1:2.12
48 Requires: gtkimageview >= 1.6
50 Requires: lensfun >= 0.2.5
51 Obsoletes: cinepaint-plugin-ufraw
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define gimp_plugindir %(gimptool --gimpplugindir)/plug-ins
59 UFRaw is a utility to read and manipulate raw images from digital
60 cameras. It can be used by itself or as a GIMP plug-in. It reads raw
61 images using Dave Coffin's raw conversion utility DCRaw. And it
62 supports basic color management using Little CMS, allowing the user to
65 %description -l pl.UTF-8
66 UFRaw to narzędzie do czytania i przetwarzania zdjęć w formacie RAW
67 różnych aparatów cyfrowych. Może być używane samodzielnie lub jako
68 wtyczka programu GIMP. Zdjęcia w formacie RAW są wczytywane za pomocą
69 programu DCRaw Dave'a Coffina. Użytkownik ma możliwość stosowania
70 profili kolorów dzięki bibliotece Little CMS.
73 Summary: RAW photo loader batch software
74 Summary(pl.UTF-8): Program do wsadowego przetwarzania zdjęć w formacie RAW
75 Group: Applications/Graphics
76 Requires: exiv2 >= 0.20
77 Requires: glib2 >= 1:2.12
79 Requires: lensfun >= 0.2.5
82 RAW photo loader batch software.
84 %description batch -l pl.UTF-8
85 Program do wsadowego przetwarzania zdjęć w formacie RAW.
87 %package -n gimp-plugin-ufraw
88 Summary: RAW photo loader GIMP plugin
89 Summary(pl.UTF-8): Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW
90 Group: Applications/Graphics
91 Requires: exiv2 >= 0.20
92 Requires: gimp >= 2.6.0
93 Requires: glib2 >= 1:2.12
94 Requires: gtk+2 >= 1:2.12
95 Requires: gtkimageview >= 1.6
97 Requires: lensfun >= 0.2.5
99 %description -n gimp-plugin-ufraw
100 RAW photo loader GIMP plugin.
102 %description -n gimp-plugin-ufraw -l pl.UTF-8
103 Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW.
114 cp -f /usr/share/automake/mkinstalldirs .
116 --disable-silent-rules \
117 %{!?with_openmp:--disable-openmp} \
119 --enable-dst-correction \
122 --with-gimp%{!?with_gimp:=no} \
128 rm -rf $RPM_BUILD_ROOT
129 install -d $RPM_BUILD_ROOT%{_desktopdir}
132 DESTDIR=$RPM_BUILD_ROOT \
133 schemasdir=%{_sysconfdir}/gconf/schemas
135 install ufraw.desktop $RPM_BUILD_ROOT%{_desktopdir}
136 %{__rm} $RPM_BUILD_ROOT%{_bindir}/dcraw
141 rm -rf $RPM_BUILD_ROOT
144 %gconf_schema_install ufraw.schemas
145 %update_desktop_database_post
148 %gconf_schema_uninstall ufraw.schemas
151 %update_desktop_database_postun
153 %files -f %{name}.lang
154 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_bindir}/nikon-curve
157 %attr(755,root,root) %{_bindir}/ufraw
158 %{_desktopdir}/ufraw.desktop
159 %{_pixmapsdir}/ufraw.png
160 %{_sysconfdir}/gconf/schemas/%{name}.schemas
161 %{_datadir}/appdata/ufraw.appdata.xml
162 %{_mandir}/man1/ufraw.1*
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_bindir}/ufraw-batch
169 %files -n gimp-plugin-ufraw
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{gimp_plugindir}/ufraw-gimp