File linuxdeployqt.spec of Package linuxdeployqt

#
# 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:           linuxdeployqt
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
Patch1:         obs.patch
Patch2:         revert-workaround.patch
BuildRequires:  cmake
%if 0%{?fedora_version}
BuildRequires:  qt5-qtbase-devel
%else
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  libqt5-qtbase-devel
%endif
Requires:  appimagetool
Requires:  patchelf
#Requires:  pkgconfig(Qt5Quick)

%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
%patch1 -p1
%patch2 -p1
mkdir build

%build
cd build
#qmake-qt5 ../linuxdeployqt.pro
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 tools/linuxdeployqt/linuxdeployqt %{buildroot}/%{_bindir}/

%files
%defattr(0644,root,root,-)
%doc BUILDING.md LICENSE.LGPLv3 LICENSE.GPLv3 README.md
%attr(0755,root,root) %{_bindir}/*

%changelog
openSUSE Build Service is sponsored by