qimgv/qimgv.spec

76 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# 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.2
Release: 0
Summary: Qt5 image viewer
License: GPL-3.0-only
URL: https://github.com/easymodo/qimgv
Source0: https://github.com/easymodo/qimgv/archive/v%{version}.tar.gz#/%{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
Accepting request 921023 from home:alois:branches:graphics - Update to version 1.0.0 General: * Qt6 support * UI updates * Custom theme support * Printing support * Export to pdf * Improved image format compatibility * Allow image resizing by percentage * Tweak zoom step range * Add absolute zoom step option * Confirmation when overwriting files * Allow Tab key in shortcuts * Add slideshow / shuffle mode indication in window title * Adjacent directory switching (shift+left / shift+right) * Automatic seamless directory switching * Allow more video formats besides webm/mp4 * Zoom Lock feature * Shortcut for toggling fullscreen infobar * Show in folder menu option now pre-selects current file Folder view: * Display folders * Display image resolution * Filesystem navigation via Enter / Backspace * Show path bar (will be improved in future) * Allow multi-selection * Mass rotate / delete * Improved drag'n'drop * Renaming now works in folderview * Improved thumbnail loading responsiveness * Unload off-screen thumbnails option Misc: * Fix video playback with the latest mpv * Fix window positioning under some window managers * Allow custom cache folder location * Change default thumbnailer thread count to 4 * Fix cursor autohide on wayland * Fix context menu potentially appearing off-screen * Other minor bug fixes * Lots of visual fixes - Refresh qimgv-PIE.patch - Drop qimgv-pluginpath_1.patch, qimgv-pluginpath_2.patch and qimgv-pluginpath_3.patch - Add qimgv-no_return_in_nonvoid.patch OBS-URL: https://build.opensuse.org/request/show/921023 OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=38
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
# PATCH-FIX-UPSTREAM qimgv-mpv_v2_fix.patch
Patch7: qimgv-mpv_v2_fix.patch
BuildRequires: cmake >= 3.13
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
%else
Accepting request 921023 from home:alois:branches:graphics - Update to version 1.0.0 General: * Qt6 support * UI updates * Custom theme support * Printing support * Export to pdf * Improved image format compatibility * Allow image resizing by percentage * Tweak zoom step range * Add absolute zoom step option * Confirmation when overwriting files * Allow Tab key in shortcuts * Add slideshow / shuffle mode indication in window title * Adjacent directory switching (shift+left / shift+right) * Automatic seamless directory switching * Allow more video formats besides webm/mp4 * Zoom Lock feature * Shortcut for toggling fullscreen infobar * Show in folder menu option now pre-selects current file Folder view: * Display folders * Display image resolution * Filesystem navigation via Enter / Backspace * Show path bar (will be improved in future) * Allow multi-selection * Mass rotate / delete * Improved drag'n'drop * Renaming now works in folderview * Improved thumbnail loading responsiveness * Unload off-screen thumbnails option Misc: * Fix video playback with the latest mpv * Fix window positioning under some window managers * Allow custom cache folder location * Change default thumbnailer thread count to 4 * Fix cursor autohide on wayland * Fix context menu potentially appearing off-screen * Other minor bug fixes * Lots of visual fixes - Refresh qimgv-PIE.patch - Drop qimgv-pluginpath_1.patch, qimgv-pluginpath_2.patch and qimgv-pluginpath_3.patch - Add qimgv-no_return_in_nonvoid.patch OBS-URL: https://build.opensuse.org/request/show/921023 OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=38
2021-09-22 20:06:23 +02:00
BuildRequires: gcc9-c++
%endif
BuildRequires: hicolor-icon-theme
BuildRequires: opencv-devel
BuildRequires: pkgconfig
Accepting request 921023 from home:alois:branches:graphics - Update to version 1.0.0 General: * Qt6 support * UI updates * Custom theme support * Printing support * Export to pdf * Improved image format compatibility * Allow image resizing by percentage * Tweak zoom step range * Add absolute zoom step option * Confirmation when overwriting files * Allow Tab key in shortcuts * Add slideshow / shuffle mode indication in window title * Adjacent directory switching (shift+left / shift+right) * Automatic seamless directory switching * Allow more video formats besides webm/mp4 * Zoom Lock feature * Shortcut for toggling fullscreen infobar * Show in folder menu option now pre-selects current file Folder view: * Display folders * Display image resolution * Filesystem navigation via Enter / Backspace * Show path bar (will be improved in future) * Allow multi-selection * Mass rotate / delete * Improved drag'n'drop * Renaming now works in folderview * Improved thumbnail loading responsiveness * Unload off-screen thumbnails option Misc: * Fix video playback with the latest mpv * Fix window positioning under some window managers * Allow custom cache folder location * Change default thumbnailer thread count to 4 * Fix cursor autohide on wayland * Fix context menu potentially appearing off-screen * Other minor bug fixes * Lots of visual fixes - Refresh qimgv-PIE.patch - Drop qimgv-pluginpath_1.patch, qimgv-pluginpath_2.patch and qimgv-pluginpath_3.patch - Add qimgv-no_return_in_nonvoid.patch OBS-URL: https://build.opensuse.org/request/show/921023 OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=38
2021-09-22 20:06:23 +02:00
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++
Accepting request 921023 from home:alois:branches:graphics - Update to version 1.0.0 General: * Qt6 support * UI updates * Custom theme support * Printing support * Export to pdf * Improved image format compatibility * Allow image resizing by percentage * Tweak zoom step range * Add absolute zoom step option * Confirmation when overwriting files * Allow Tab key in shortcuts * Add slideshow / shuffle mode indication in window title * Adjacent directory switching (shift+left / shift+right) * Automatic seamless directory switching * Allow more video formats besides webm/mp4 * Zoom Lock feature * Shortcut for toggling fullscreen infobar * Show in folder menu option now pre-selects current file Folder view: * Display folders * Display image resolution * Filesystem navigation via Enter / Backspace * Show path bar (will be improved in future) * Allow multi-selection * Mass rotate / delete * Improved drag'n'drop * Renaming now works in folderview * Improved thumbnail loading responsiveness * Unload off-screen thumbnails option Misc: * Fix video playback with the latest mpv * Fix window positioning under some window managers * Allow custom cache folder location * Change default thumbnailer thread count to 4 * Fix cursor autohide on wayland * Fix context menu potentially appearing off-screen * Other minor bug fixes * Lots of visual fixes - Refresh qimgv-PIE.patch - Drop qimgv-pluginpath_1.patch, qimgv-pluginpath_2.patch and qimgv-pluginpath_3.patch - Add qimgv-no_return_in_nonvoid.patch OBS-URL: https://build.opensuse.org/request/show/921023 OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=38
2021-09-22 20:06:23 +02:00
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
%changelog