2018-01-15 01:04:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package qimgv
|
|
|
|
#
|
2022-01-30 16:53:21 +01:00
|
|
|
# Copyright (c) 2022 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
|
2021-09-30 12:54:53 +02:00
|
|
|
Version: 1.0.2
|
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-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
|
2021-09-22 20:06:23 +02:00
|
|
|
# PATCH-FIX-OPENSUSE qimgv-no_return_in_nonvoid.patch # aloisio@gmx.com pacify rpmlint
|
|
|
|
Patch6: qimgv-no_return_in_nonvoid.patch
|
2022-01-30 16:53:21 +01:00
|
|
|
# PATCH-FIX-UPSTREAM qimgv-mpv_v2_fix.patch
|
|
|
|
Patch7: qimgv-mpv_v2_fix.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
|
2021-09-22 20:06:23 +02:00
|
|
|
BuildRequires: gcc9-c++
|
2019-08-26 16:20:52 +02:00
|
|
|
%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
|
2021-09-22 20:06:23 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
2021-09-30 12:56:06 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.12
|
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
|
2020-06-01 19:01:21 +02:00
|
|
|
Requires: mpv >= 0.32.0
|
2018-01-15 01:04:22 +01:00
|
|
|
|
|
|
|
%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++
|
2021-09-22 20:06:23 +02:00
|
|
|
test -x "$(type -p g++-9)" && export CXX=g++-9
|
2018-01-15 01:04:22 +01:00
|
|
|
%cmake
|
2020-06-01 19:01:21 +02:00
|
|
|
%make_jobs
|
2018-01-15 01:04:22 +01:00
|
|
|
|
|
|
|
%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}.*
|
2020-06-01 19:01:21 +02:00
|
|
|
%{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/player_mpv.so
|
2018-01-15 01:04:22 +01:00
|
|
|
|
|
|
|
%changelog
|