File SmartDeblur.spec of Package SmartDeblur

#
# spec file for package SmartDeblur
#
# 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:           SmartDeblur
Version:        1.27+git.20181028T170851~5af573c
Release:        0
Summary:        A deblur program
License:        GPL-3.0-only
Group:          Productivity/Graphics/Bitmap Editors
URL:            http://smartdeblur.net
# git@github.com:Y-Vladimir/SmartDeblur.git
Source0:        %{name}-%{version}.tar.xz
Patch0:         SmartDeblur-nonoss-updates.patch
BuildRequires:  fftw3-threads-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  update-desktop-files

%description
SmartDeblur is a tool for restoring blurry and defocused images.

%prep
%setup -q
%patch0

sed -i 's#/lib/#/%{_lib}/#' src/SmartDeblur.pro

%build
%qmake5 src/SmartDeblur.pro
%make_jobs

%install
install -m0755 -D \
        %{name} \
        %{buildroot}%{_bindir}/%{name}
install -m0644 -D \
        src/Icons/Logo1.png \
        %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} %{name} "A smart deblur program" %{name} %{name} "Graphics;RasterGraphics;Qt;"

%files
%doc README.md www/updates.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by