File linuxdeploy-plugin-qt.spec of Package linuxdeploy-plugin-qt

#
# spec file for package linuxdeployqt
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


# 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
Group:          Other
Url:            https://github.com/probonopd/linuxdeployqt
Source0:        %name-%{version}.tar.xz
Source1:        excludelist
BuildRequires:  cmake
BuildRequires:  CImg-devel
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.

%prep
%setup -q
cp %{S:1} .
cd lib/linuxdeploy/src/core
bash ./generate-excludelist.sh 
cd -

%build
%cmake -DGIT_COMMIT=`sed -n -e 's,^commit: ,,p' %_sourcedir/%name.obsinfo` -DGIT_TAG_NAME="master" ..
make %{?_smp_mflags}

%install
cd build
mkdir -p %{buildroot}/%{_bindir}
install -m 0755 bin/linuxdeploy-plugin-qt %{buildroot}/%{_bindir}/

%files
%doc README.md
%attr(0755,root,root) %{_bindir}/*

%changelog
openSUSE Build Service is sponsored by