]>
Commit | Line | Data |
---|---|---|
f3048e9a JB |
1 | # |
2 | # Conditional build: | |
6241afbd | 3 | %bcond_without gimp # GIMP plugin |
2eebac95 | 4 | %bcond_without openmp # OpenMP support |
9c9c99ea | 5 | # |
17c015b1 | 6 | Summary: RAW photo loader |
06578e68 | 7 | Summary(pl.UTF-8): Narzędzie do wczytywania zdjęć w formacie RAW |
17c015b1 | 8 | Name: ufraw |
9303435d | 9 | Version: 0.22 |
4a952682 | 10 | Release: 13 |
f3048e9a | 11 | License: GPL v2+ |
10750033 | 12 | Group: Applications/Graphics |
448d35fd | 13 | Source0: http://downloads.sourceforge.net/ufraw/%{name}-%{version}.tar.gz |
9303435d | 14 | # Source0-md5: c30767cae2c44310f2a3d67d7a76f2c3 |
66fdc3c6 JR |
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 | |
52886692 | 19 | Patch4: exiv2-0.27.patch |
6aa35cfe | 20 | Patch5: %{name}-include.patch |
4a952682 | 21 | Patch6: %{name}-openmp.patch |
17c015b1 | 22 | URL: http://ufraw.sourceforge.net/ |
9f11b4a3 TP |
23 | BuildRequires: automake |
24 | BuildRequires: bzip2-devel | |
25 | BuildRequires: cfitsio-devel | |
b929210a | 26 | BuildRequires: exiv2-devel >= 0.20 |
2eebac95 | 27 | %{?with_openmp:BuildRequires: gcc-c++ >= 6:4.2} |
25df0b19 | 28 | BuildRequires: gettext-tools |
6241afbd | 29 | %{?with_gimp:BuildRequires: gimp-devel >= 2.6.0} |
f3048e9a JB |
30 | BuildRequires: glib2-devel >= 1:2.12 |
31 | BuildRequires: gtk+2-devel >= 2:2.12 | |
32 | BuildRequires: gtkimageview-devel >= 1.6 | |
b929210a | 33 | BuildRequires: jasper-devel |
0d2a5365 | 34 | BuildRequires: lcms2-devel >= 2 |
f3048e9a | 35 | BuildRequires: lensfun-devel >= 0.2.5 |
2eebac95 | 36 | %{?with_openmp:BuildRequires: libgomp-devel} |
17c015b1 | 37 | BuildRequires: libjpeg-devel |
9bf0ec24 JB |
38 | BuildRequires: libpng-devel >= 1.2 |
39 | BuildRequires: libstdc++-devel | |
40 | BuildRequires: libtiff-devel >= 4 | |
f3048e9a JB |
41 | BuildRequires: perl-tools-pod |
42 | BuildRequires: pkgconfig >= 1:0.9.0 | |
9f11b4a3 | 43 | BuildRequires: zlib-devel |
9c9c99ea | 44 | Requires(post,postun): desktop-file-utils |
89bfeae8 | 45 | Requires(post,postun): shared-mime-info >= 0.21 |
448d35fd | 46 | Requires(post,preun): GConf2 >= 2.16.0 |
e9c6ac4a | 47 | Requires: exiv2-libs >= 0.20 |
f3048e9a JB |
48 | Requires: glib2 >= 1:2.12 |
49 | Requires: gtk+2 >= 1:2.12 | |
50 | Requires: gtkimageview >= 1.6 | |
0d2a5365 | 51 | Requires: lcms2 >= 2 |
f3048e9a | 52 | Requires: lensfun >= 0.2.5 |
0d2a5365 | 53 | Obsoletes: cinepaint-plugin-ufraw |
17c015b1 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
6241afbd JB |
56 | %if %{with gimp} |
57 | %define gimp_plugindir %(gimptool --gimpplugindir)/plug-ins | |
58 | %endif | |
17c015b1 | 59 | |
60 | %description | |
88c0041e JB |
61 | UFRaw is a utility to read and manipulate raw images from digital |
62 | cameras. It can be used by itself or as a GIMP plug-in. It reads raw | |
63 | images using Dave Coffin's raw conversion utility DCRaw. And it | |
64 | supports basic color management using Little CMS, allowing the user to | |
65 | apply color profiles. | |
66 | ||
257d172f | 67 | %description -l pl.UTF-8 |
448d35fd SP |
68 | UFRaw to narzędzie do czytania i przetwarzania zdjęć w formacie RAW |
69 | różnych aparatów cyfrowych. Może być używane samodzielnie lub jako | |
70 | wtyczka programu GIMP. Zdjęcia w formacie RAW są wczytywane za pomocą | |
71 | programu DCRaw Dave'a Coffina. Użytkownik ma możliwość stosowania | |
72 | profili kolorów dzięki bibliotece Little CMS. | |
17c015b1 | 73 | |
17c015b1 | 74 | %package batch |
75 | Summary: RAW photo loader batch software | |
06578e68 | 76 | Summary(pl.UTF-8): Program do wsadowego przetwarzania zdjęć w formacie RAW |
10750033 | 77 | Group: Applications/Graphics |
b929210a | 78 | Requires: exiv2 >= 0.20 |
f3048e9a | 79 | Requires: glib2 >= 1:2.12 |
0d2a5365 | 80 | Requires: lcms2 >= 2 |
f3048e9a | 81 | Requires: lensfun >= 0.2.5 |
17c015b1 | 82 | |
83 | %description batch | |
88c0041e JB |
84 | RAW photo loader batch software. |
85 | ||
257d172f JR |
86 | %description batch -l pl.UTF-8 |
87 | Program do wsadowego przetwarzania zdjęć w formacie RAW. | |
17c015b1 | 88 | |
f3048e9a JB |
89 | %package -n gimp-plugin-ufraw |
90 | Summary: RAW photo loader GIMP plugin | |
91 | Summary(pl.UTF-8): Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW | |
92 | Group: Applications/Graphics | |
b929210a | 93 | Requires: exiv2 >= 0.20 |
f3048e9a JB |
94 | Requires: gimp >= 2.6.0 |
95 | Requires: glib2 >= 1:2.12 | |
96 | Requires: gtk+2 >= 1:2.12 | |
97 | Requires: gtkimageview >= 1.6 | |
0d2a5365 | 98 | Requires: lcms2 >= 2 |
f3048e9a JB |
99 | Requires: lensfun >= 0.2.5 |
100 | ||
101 | %description -n gimp-plugin-ufraw | |
102 | RAW photo loader GIMP plugin. | |
103 | ||
104 | %description -n gimp-plugin-ufraw -l pl.UTF-8 | |
105 | Wtyczka GIMP-a do wczytywania zdjęć w formacie RAW. | |
106 | ||
17c015b1 | 107 | %prep |
108 | %setup -q | |
66fdc3c6 JR |
109 | %patch0 -p1 |
110 | %patch1 -p1 | |
111 | %patch2 -p1 | |
112 | %patch3 -p1 | |
52886692 | 113 | %patch4 -p1 |
6aa35cfe | 114 | %patch5 -p1 |
4a952682 | 115 | %patch6 -p1 |
17c015b1 | 116 | |
117 | %build | |
9f11b4a3 | 118 | cp -f /usr/share/automake/mkinstalldirs . |
a563fb7b | 119 | %configure \ |
f3048e9a | 120 | --disable-silent-rules \ |
2eebac95 | 121 | %{!?with_openmp:--disable-openmp} \ |
9f11b4a3 TP |
122 | --enable-contrast \ |
123 | --enable-dst-correction \ | |
124 | --enable-extras \ | |
91a13f7d | 125 | --enable-mime \ |
6241afbd JB |
126 | --with-gimp%{!?with_gimp:=no} \ |
127 | --with-gtk | |
d651cf46 | 128 | |
17c015b1 | 129 | %{__make} |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
cdca803f | 133 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
17c015b1 | 134 | |
135 | %{__make} install \ | |
9c9c99ea | 136 | DESTDIR=$RPM_BUILD_ROOT \ |
137 | schemasdir=%{_sysconfdir}/gconf/schemas | |
85870c0b | 138 | |
85870c0b | 139 | install ufraw.desktop $RPM_BUILD_ROOT%{_desktopdir} |
f3048e9a | 140 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/dcraw |
17c015b1 | 141 | |
cdca803f PG |
142 | %find_lang %{name} |
143 | ||
17c015b1 | 144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
9c9c99ea | 147 | %post |
9c9c99ea | 148 | %gconf_schema_install ufraw.schemas |
149 | %update_desktop_database_post | |
150 | ||
151 | %preun | |
152 | %gconf_schema_uninstall ufraw.schemas | |
153 | ||
154 | %postun | |
155 | %update_desktop_database_postun | |
9c9c99ea | 156 | |
cdca803f | 157 | %files -f %{name}.lang |
17c015b1 | 158 | %defattr(644,root,root,755) |
3558306a | 159 | %doc README TODO |
9f11b4a3 | 160 | %attr(755,root,root) %{_bindir}/nikon-curve |
17c015b1 | 161 | %attr(755,root,root) %{_bindir}/ufraw |
f3048e9a JB |
162 | %{_desktopdir}/ufraw.desktop |
163 | %{_pixmapsdir}/ufraw.png | |
9c9c99ea | 164 | %{_sysconfdir}/gconf/schemas/%{name}.schemas |
0d2a5365 | 165 | %{_datadir}/appdata/ufraw.appdata.xml |
f3048e9a | 166 | %{_mandir}/man1/ufraw.1* |
17c015b1 | 167 | |
168 | %files batch | |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_bindir}/ufraw-batch | |
f3048e9a | 171 | |
6241afbd | 172 | %if %{with gimp} |
f3048e9a JB |
173 | %files -n gimp-plugin-ufraw |
174 | %defattr(644,root,root,755) | |
6241afbd JB |
175 | %attr(755,root,root) %{gimp_plugindir}/ufraw-gimp |
176 | %endif |