File project.diff of Package linuxdeploy-plugin-qt
--- _service.orig
+++ _service
@@ -1,7 +1,8 @@
<services>
<service name="obs_scm">
- <param name="url">https://github.com/TheAssassin/linuxdeploy-plugin-qt.git</param>
+ <param name="url">https://github.com/linuxdeploy/linuxdeploy-plugin-qt.git</param>
<param name="scm">git</param>
+ <param name="changesgenerate">enable</param>
</service>
<service mode="buildtime" name="set_version" />
--- linuxdeploy-plugin-qt.spec.orig
+++ linuxdeploy-plugin-qt.spec
@@ -1,7 +1,7 @@
#
-# spec file for package linuxdeployqt
+# spec file for package linuxdeploy-plugin-qt
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,52 +12,56 @@
# 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
-
Name: linuxdeploy-plugin-qt
Version: 0
Release: 0
Summary: A helper application for AppImage
-License: GPL-3.0
+License: MIT
Group: Other
-Url: https://github.com/probonopd/linuxdeployqt
-Source0: %name-%{version}.tar.xz
+URL: https://github.com/linuxdeploy/linuxdeploy-plugin-qt
+Source0: %{name}-%{version}.tar.xz
Source1: excludelist
-BuildRequires: cmake
+Patch0: fix-CMakeLists_txt.patch
+Patch1: fix-cmake-vars.patch
BuildRequires: CImg-devel
+BuildRequires: c++_compiler
+BuildRequires: ccache
+BuildRequires: cmake
BuildRequires: file-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: zlib-devel
-BuildRequires: c++_compiler
%description
-Makes Linux applications self-contained by copying in the Qt libraries and plugins that the application uses.
-
-The tool is working also for non-Qt applications.
+Qt plugin for linuxdeploy, bundling Qt resources, plugins, QML files and a lot more.
%prep
%setup -q
-cp %{S:1} .
-cd lib/linuxdeploy/src/core
-bash ./generate-excludelist.sh
-cd -
+%patch0 -p1
+%patch1 -p1
+
+sed -e 's@wget --quiet "\$url" -O -@cat %{_sourcedir}/excludelist@' \
+ -i lib/linuxdeploy/src/core/generate-excludelist.sh
+cp -p %{SOURCE1} .
%build
-%cmake -DGIT_COMMIT=`sed -n -e 's,^commit: ,,p' %_sourcedir/%name.obsinfo` -DGIT_TAG_NAME="master" ..
-make %{?_smp_mflags}
+_git="$(sed -n -e 's,^commit: \(.\{9\}\).*,\1,p' %{_sourcedir}/%{name}.obsinfo)"
+_date="$(sed -n -e 's,^mtime: ,,p' %{_sourcedir}/%{name}.obsinfo)"
+_date="$(LC_ALL=C date -u -d@$_date '+%%Y-%%m-%%d %%H:%%M:%%S %%Z')"
+
+%cmake -DGIT_COMMIT="$_git" -DDATE="$_date"
+%cmake_build
%install
-cd build
-mkdir -p %{buildroot}/%{_bindir}
-install -m 0755 bin/linuxdeploy-plugin-qt %{buildroot}/%{_bindir}/
+%cmake_install
%files
+%license LICENSE.txt
%doc README.md
-%attr(0755,root,root) %{_bindir}/*
+%{_bindir}/%{name}
%changelog