File qbs.spec of Package qbs

#
# spec file for package qbs
#
# Copyright (c) 2017 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:           qbs
Version:        1.11.0
Release:        0
Summary:        Qt build system
License:        SUSE-LGPL-2.1-with-digia-exception-1.1 and LGPL-3.0
Group:          Development/Tools/IDE
Url:            http://wiki.qt.io/Qbs
Source:         http://download.qt.io/official_releases/%{name}/%{version}/%{name}-src-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libQt5Core-private-headers-devel
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Qbs is a tool that helps simplify the build process for developing projects
across multiple platforms. Qbs can be used for any software project, regardless
of programming language, toolkit, or libraries used.
Qbs is an all-in-one tool that generates a build graph from a high-level
project description (like qmake or CMake) and additionally undertakes the task
of executing the commands in the low-level build graph (like make).

%package devel
Summary:        Development files for %{name}
License:        SUSE-LGPL-2.1-with-digia-exception-1.1 and LGPL-3.0
Group:          Development/Tools/IDE
Requires:       %{name} = %{version}-%{release}

%description devel
This package is required to build native/C++ extensions for %{name}

%prep
%setup -q -n %{name}-src-%{version}

%build
%qmake5 %{name}.pro -r QBS_INSTALL_PREFIX=%{_prefix} \
    QBS_LIBEXEC_INSTALL_DIR=%{_libexecdir}/%{name} \
    QBS_LIB_INSTALL_DIR=%{_libdir} \
    QBS_PLUGINS_INSTALL_DIR=%{_libdir}
%make_jobs

%install
%qmake5_install
%fdupes %{buildroot}%{_datadir}/%{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc LGPL_EXCEPTION.txt LICENSE.LGPLv21 LICENSE.LGPLv3 README
%{_bindir}/%{name}
%{_bindir}/%{name}-config
%{_bindir}/%{name}-config-ui
%{_bindir}/%{name}-create-project
#%%{_bindir}/%%{name}-qmltypes
%{_bindir}/%{name}-setup-android
%{_bindir}/%{name}-setup-qt
%{_bindir}/%{name}-setup-toolchains
%dir %{_libexecdir}/%{name}/
%{_libexecdir}/%{name}/dmgbuild
%{_libexecdir}/%{name}/%{name}_processlauncher
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/plugins/
%{_libdir}/%{name}/plugins/libclangcompilationdbgenerator.so
%{_libdir}/%{name}/plugins/lib%{name}_cpp_scanner.so
%{_libdir}/%{name}/plugins/lib%{name}_qt_scanner.so
%{_libdir}/%{name}/plugins/libvisualstudiogenerator.so
%{_libdir}/lib%{name}core.so.*
%{_libdir}/lib%{name}qtprofilesetup.so.*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/imports/
%{_datadir}/%{name}/modules/
%{_datadir}/%{name}/python/
%{_datadir}/%{name}/qml-type-descriptions/
%{_mandir}/man?/%{name}.?%{ext_man}

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/lib%{name}core.prl
%{_libdir}/lib%{name}core.so
%{_libdir}/lib%{name}qtprofilesetup.prl
%{_libdir}/lib%{name}qtprofilesetup.so
%{_datadir}/%{name}/examples/

%changelog
openSUSE Build Service is sponsored by