From e3d64b90245fe35cbbcfde3a0e1dde1ad4094f5d Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Mon, 15 Jan 2018 00:04:22 +0000 Subject: [PATCH] Accepting request 563836 from home:alois:branches:graphics - Initial package (v0.6) OBS-URL: https://build.opensuse.org/request/show/563836 OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ qimgv-0.6-no_return_in_nonvoid.patch | 12 ++++++ qimgv-0.6-qt56.patch | 13 ++++++ qimgv-0.6.tar.gz | 3 ++ qimgv.changes | 4 ++ qimgv.spec | 61 ++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+) create mode 100644 .gitattributes create mode 100644 qimgv-0.6-no_return_in_nonvoid.patch create mode 100644 qimgv-0.6-qt56.patch create mode 100644 qimgv-0.6.tar.gz create mode 100644 qimgv.changes create mode 100644 qimgv.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/qimgv-0.6-no_return_in_nonvoid.patch b/qimgv-0.6-no_return_in_nonvoid.patch new file mode 100644 index 0000000..6747ec9 --- /dev/null +++ b/qimgv-0.6-no_return_in_nonvoid.patch @@ -0,0 +1,12 @@ +Index: qimgv-0.6/gui/viewers/videoplayermpvproxy.cpp +=================================================================== +--- qimgv-0.6.orig/gui/viewers/videoplayermpvproxy.cpp ++++ qimgv-0.6/gui/viewers/videoplayermpvproxy.cpp +@@ -24,6 +24,7 @@ inline void VideoPlayerMpvProxy::initPla + bool VideoPlayerMpvProxy::openMedia(Clip *clip) { + initPlayer(); + player->openMedia(clip); ++ return NULL; + } + + void VideoPlayerMpvProxy::seek(int pos) { diff --git a/qimgv-0.6-qt56.patch b/qimgv-0.6-qt56.patch new file mode 100644 index 0000000..fd15ff0 --- /dev/null +++ b/qimgv-0.6-qt56.patch @@ -0,0 +1,13 @@ +Index: qimgv-0.6/components/directorymanager/watchers/directorywatcher_p.h +=================================================================== +--- qimgv-0.6.orig/components/directorymanager/watchers/directorywatcher_p.h ++++ qimgv-0.6/components/directorymanager/watchers/directorywatcher_p.h +@@ -11,6 +11,8 @@ + #include + #include + #include ++#include ++#include + + class DirectoryWatcherPrivate : public QObject { + Q_OBJECT diff --git a/qimgv-0.6.tar.gz b/qimgv-0.6.tar.gz new file mode 100644 index 0000000..e5730b4 --- /dev/null +++ b/qimgv-0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4f5b5400e892ddcc1a417d8652eda25122b520308dd20fa9d9d5da4b5784892 +size 232586 diff --git a/qimgv.changes b/qimgv.changes new file mode 100644 index 0000000..c894776 --- /dev/null +++ b/qimgv.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jan 12 09:29:51 UTC 2018 - aloisio@gmx.com + +- Initial package (v0.6) diff --git a/qimgv.spec b/qimgv.spec new file mode 100644 index 0000000..50a7cb3 --- /dev/null +++ b/qimgv.spec @@ -0,0 +1,61 @@ +# +# spec file for package qimgv +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ +# + + +Name: qimgv +Version: 0.6 +Release: 0 +Summary: Qt5 image viewer +License: GPL-3.0 +Group: Productivity/Graphics/Viewers +Url: https://github.com/easymodo/qimgv +Source0: https://github.com/easymodo/qimgv/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM qimgv-0.6-qt56.patch +Patch0: qimgv-0.6-qt56.patch +# PATCH-FIX-UPSTREAM qimgv-0.6-no_return_in_nonvoid.patch +Patch1: qimgv-0.6-no_return_in_nonvoid.patch +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: hicolor-icon-theme +BuildRequires: pkgconfig +BuildRequires: pkgconfig(Qt5Concurrent) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(mpv) >= 1.22.0 + +%description +Qt5 image viewer with webm support. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%cmake +make %{?_smp_mflags} + +%install +%cmake_install + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png + +%changelog