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