1 |
Name: luminance-hdr |
2 |
Version: 2.3.1 |
3 |
Release: %mkrel 3 |
4 |
Summary: A graphical tool for creating and tone-mapping HDR images |
5 |
Group: Graphics/Editors and Converters |
6 |
License: GPLv2+ |
7 |
URL: http://qtpfsgui.sourceforge.net/ |
8 |
Source0: http://downloads.sourceforge.net/qtpfsgui/%{name}-%{version}.tar.bz2 |
9 |
BuildRequires: boost-devel |
10 |
BuildRequires: cmake |
11 |
BuildRequires: qt4-devel |
12 |
BuildRequires: libgomp-devel |
13 |
BuildRequires: imagemagick |
14 |
BuildRequires: pkgconfig(QtWebKit) |
15 |
BuildRequires: pkgconfig(libtiff-4) |
16 |
BuildRequires: pkgconfig(libraw_r) |
17 |
BuildRequires: pkgconfig(fftw3) |
18 |
BuildRequires: pkgconfig(gsl) |
19 |
BuildRequires: pkgconfig(exiv2) |
20 |
BuildRequires: pkgconfig(OpenEXR) |
21 |
Obsoletes: qtpfsgui |
22 |
Provides: qtpfsgui |
23 |
Requires: qt4-database-plugin-sqlite |
24 |
Suggests: hugin |
25 |
|
26 |
%description |
27 |
Luminance is a graphical program for assembling bracketed photos into High |
28 |
Dynamic Range (HDR) images. It also provides a number of tone-mapping |
29 |
operators for creating low dynamic range versions of HDR images. |
30 |
|
31 |
%prep |
32 |
%setup -q -c -n %{name}-%{version}%{?pre:-%pre} |
33 |
%apply_patches |
34 |
|
35 |
# fix inconsistant newlines |
36 |
sed -i 's/\r//' Changelog |
37 |
|
38 |
%build |
39 |
%cmake \ |
40 |
-DBUILD_SHARED_LIBS:BOOL=OFF |
41 |
%make |
42 |
|
43 |
%install |
44 |
%makeinstall_std -C build |
45 |
|
46 |
#icon |
47 |
install -Dpm644 images/luminance.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg |
48 |
|
49 |
for i in 16 24 64; do |
50 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
51 |
convert -scale $i images/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{name}.png |
52 |
done |
53 |
|
54 |
#desktop file |
55 |
desktop-file-install \ |
56 |
--remove-key="Encoding" \ |
57 |
--add-category="Graphics" \ |
58 |
--dir=%{buildroot}%{_datadir}/applications \ |
59 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
60 |
|
61 |
%files |
62 |
%doc README Changelog AUTHORS BUGS TODO |
63 |
%{_datadir}/%{name} |
64 |
%{_bindir}/%{name}* |
65 |
%{_datadir}/applications/%{name}.desktop |
66 |
%{_datadir}/icons/hicolor/*/apps/%{name}.* |