2018-01-15 01:04:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package qimgv
|
|
|
|
#
|
2020-02-11 10:38:19 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-01-15 01:04:22 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-15 10:21:46 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-15 01:04:22 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: qimgv
|
2020-05-01 12:26:49 +02:00
|
|
|
Version: 0.9
|
2018-01-15 01:04:22 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Qt5 image viewer
|
2018-06-11 20:37:23 +02:00
|
|
|
License: GPL-3.0-only
|
2018-08-08 22:58:17 +02:00
|
|
|
URL: https://github.com/easymodo/qimgv
|
2019-01-30 10:53:04 +01:00
|
|
|
Source0: https://github.com/easymodo/qimgv/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-08-26 16:20:52 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE qimgv-nosharedlib.patch # aloisio@gmx.com build helper library statically
|
|
|
|
Patch0: qimgv-nosharedlib.patch
|
2019-09-19 20:46:37 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE qimgv-PIE.patch # aloisio@gmx.com add PIE flags
|
|
|
|
Patch1: qimgv-PIE.patch
|
2020-05-01 12:26:49 +02:00
|
|
|
# PATCH-FIX-OPENSUSE qimgv-includepath.patch # aloisio@gmx.com use correct path for opencv includes
|
|
|
|
Patch2: qimgv-includepath.patch
|
|
|
|
# PATCH-FIX-UPSTREAM qimgv-Qt512.patch
|
|
|
|
Patch3: qimgv-Qt512.patch
|
2020-02-11 10:38:19 +01:00
|
|
|
BuildRequires: cmake >= 3.13
|
2019-08-26 16:20:52 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2018-01-15 01:04:22 +01:00
|
|
|
BuildRequires: gcc-c++
|
2019-08-26 16:20:52 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc8-c++
|
|
|
|
%endif
|
2018-01-15 01:04:22 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2020-05-01 12:26:49 +02:00
|
|
|
BuildRequires: opencv-devel
|
2018-01-15 01:04:22 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-09-18 09:24:13 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.9
|
2020-05-01 12:26:49 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2019-08-26 16:20:52 +02:00
|
|
|
BuildRequires: pkgconfig(exiv2)
|
2018-01-15 01:04:22 +01:00
|
|
|
BuildRequires: pkgconfig(mpv) >= 1.22.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
Qt5 image viewer with webm support.
|
|
|
|
|
|
|
|
%prep
|
2019-08-26 16:20:52 +02:00
|
|
|
%autosetup -p1
|
2018-01-15 01:04:22 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-26 16:20:52 +02:00
|
|
|
export CXX=g++
|
|
|
|
test -x "$(type -p g++-8)" && export CXX=g++-8
|
2018-01-15 01:04:22 +01:00
|
|
|
%cmake
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2018-08-08 22:58:17 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
2018-01-15 01:04:22 +01:00
|
|
|
|
|
|
|
%changelog
|