File hdrmerge.spec of Package hdrmerge
#
# spec file for package hdrmerge
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: hdrmerge
Version: 0
Release: 0
Summary: HDR exposure merging
License: GPL-3.0-only
Group: Productivity/Graphics/Bitmap Editors
URL: https://github.com/jcelaya/hdrmerge
Source: %{name}-%{version}.tar.xz
Patch0: simplify-cmake-finders.patch
Patch1: desktop.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: xdg-utils
BuildRequires: cmake(ALGLIB)
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.6
BuildRequires: pkgconfig(Qt5Core) >= 5.6
BuildRequires: pkgconfig(Qt5Widgets) >= 5.6
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(libraw)
BuildRequires: pkgconfig(zlib)
# TODO: desktop file
%description
HDRMerge combines two or more raw images into a single raw with an extended
dynamic range. It can import any raw image supported by LibRaw, and outputs a
DNG 1.4 image with floating point data. The output raw is built from the less
noisy pixels of the input, so that shadows maintain as much detail as possible.
This tool also offers a GUI to remove ghosts from the resulting image.
%prep
%autosetup -p1
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
install -m 0644 -D data/hdrmerge.desktop %{buildroot}%{_datadir}/applications/hdrmerge.desktop
install -m 0644 -D data/images/logo.svg %{buildroot}%{_datadir}/pixmaps/hdrmerge.svg
%files
%license LICENSE LICENSE_icons
%doc AUTHORS.md CONTRIBUTORS.md README.md
%{_bindir}/%{name}
%{_datadir}/pixmaps/hdrmerge.svg
%{_datadir}/applications/hdrmerge.desktop
%changelog