qimgv/qimgv.spec
Scott Bradnick 040ae1d5e8 Accepting request 976479 from home:sbradnick
- Update to version 1.0.3a+git20220510.48dd2ea3:
  * [cmake] fix default flags
  * check for qt5 first
  * .
  * Update build-package.yml
  * change release tag
  * fix mpv include path
  * [windows/msys2] add build script
  * fix #410
  * [windows] enable scripts/"open with" functionality #406 #236 #196
  * [ContextMenu] compact layout
  * [res] back/forward icons
  * [ContextMenu] scripts/"open with.." page mockup #406 #236 Fix scripts with qt6
  * [ImageViewerV2] tweak scroll handling
  * [ThumbnailViewProxy] fix(?) event order
  * fix Core::loadPath()
  * delay model loading (test) #383 #156
  * fix #384
  * fix #392
  * fix window close with qt 6.3 #394
  * [cmake] qt detection tweak (prefer qt6); remove core5compat

- Commenting out the following 2 patches as the issues appear fixed upstream:
  * qimgv-mpv_v2_fix.patch
  * qimgv-no_return_in_nonvoid.patch
- Cleaning up 'Source0' definition.

- Update to version v1.0.2+git20220504.51278bec:
  * Create msys2-test.yml
  * build: Add AppData installation via Cmake

OBS-URL: https://build.opensuse.org/request/show/976479
OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=44
2022-05-11 18:53:43 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package qimgv
#
# Copyright (c) 2022 SUSE LLC
#
# 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: qimgv
Version: 1.0.3a+git20220510.48dd2ea3
Release: 0
Summary: Qt5 image viewer
License: GPL-3.0-only
URL: https://github.com/easymodo/qimgv
Source0: %{name}-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE qimgv-PIE.patch # aloisio@gmx.com add PIE flags
Patch1: qimgv-PIE.patch
# PATCH-FIX-OPENSUSE qimgv-includepath.patch # aloisio@gmx.com use correct path for opencv includes
Patch2: qimgv-includepath.patch
# PATCH-FIX-OPENSUSE qimgv-no_return_in_nonvoid.patch # aloisio@gmx.com pacify rpmlint
# Has been fixed upstream, smb 20220505
#Patch6: qimgv-no_return_in_nonvoid.patch
# PATCH-FIX-UPSTREAM qimgv-mpv_v2_fix.patch
# Has been fixed upstream, smb 20220505
#Patch7: qimgv-mpv_v2_fix.patch
BuildRequires: cmake >= 3.13
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
%else
BuildRequires: gcc9-c++
%endif
BuildRequires: hicolor-icon-theme
BuildRequires: opencv-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets) >= 5.12
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(mpv) >= 1.22.0
Requires: mpv >= 0.32.0
%description
Qt5 image viewer with webm support.
%prep
%autosetup -p1
%build
export CXX=g++
test -x "$(type -p g++-9)" && export CXX=g++-9
%cmake
%make_jobs
%install
%cmake_install
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_libdir}/%{name}
%{_libdir}/%{name}/player_mpv.so
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog