Christophe Giboudeaux 2020-12-11 14:28:15 +00:00 committed by Git OBS Bridge
parent b6836e0525
commit 5e8a4eebb1
3 changed files with 18 additions and 68 deletions

4
_multibuild Normal file
View File

@ -0,0 +1,4 @@
<multibuild>
<flavor>docs</flavor>
</multibuild>

View File

@ -1,68 +0,0 @@
#
# spec file for package qt6-tools-docs
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define real_version 6.0.0
%define short_version 6.0
%define tar_name qttools-everywhere-src
%define tar_suffix %{nil}
#
Name: qt6-tools-docs
Version: 6.0.0
Release: 0
Summary: Qt6 Tools Documentation
License: GFDL-1.3-only
URL: https://www.qt.io
Source: https://download.qt.io/official_releases/qt/%{short_version}/%{real_version}%{tar_suffix}/submodules/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
BuildRequires: clang-devel
BuildRequires: qt6-core-private-devel
BuildRequires: qt6-dbus-private-devel
BuildRequires: qt6-gui-private-devel
BuildRequires: qt6-quick-private-devel
BuildRequires: qt6-widgets-private-devel
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6OpenGL)
BuildRequires: cmake(Qt6OpenGLWidgets)
BuildRequires: cmake(Qt6PrintSupport)
BuildRequires: cmake(Qt6QmlDevTools)
BuildRequires: cmake(Qt6Quick)
BuildRequires: cmake(Qt6QuickWidgets)
BuildRequires: cmake(Qt6Sql)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
BuildRequires: qt6-tools
%description
The Qt6 Tools Documentation.
%{qt6_doc_packages}
%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
%build
%cmake_qt6
%{qt6_build_docs}
%install
%{qt6_install_docs}
%changelog

View File

@ -21,6 +21,8 @@
%define tar_name qttools-everywhere-src
%define tar_suffix %{nil}
#
%global qt6_flavor @BUILD_FLAVOR@%{nil}
#
Name: qt6-tools
Version: 6.0.0
Release: 0
@ -68,12 +70,18 @@ Recommends: qt6-tools-designer
Recommends: qt6-tools-linguist
Recommends: qt6-tools-qdbus
Recommends: qt6-tools-qtpaths
%if "%{qt6_flavor}" == "docs"
BuildRequires: qt6-tools
%{qt6_doc_packages}
%endif
%description
The QtTools modules contains some tools mostly useful for application development.
Included are Qt Designer (GUI design), QDbusViewer and more.
%if !%{qt6_docs_flavor}
%package devel
Summary: Qt 6 Tools libraries - Development files
Requires: qt6-tools-helpgenerators = %{version}
@ -229,6 +237,8 @@ Command line client to QStandardPaths.
%{qt6_examples_package}
%endif
%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
@ -240,6 +250,8 @@ Command line client to QStandardPaths.
%install
%{qt6_install}
%if !%{qt6_docs_flavor}
%{qt6_link_executables}
# Unused file. There is no private headers for this library
@ -419,4 +431,6 @@ install -D -m644 src/assistant/assistant/images/assistant-128.png %{buildroot}%{
%{_bindir}/qtpaths6
%{_qt6_bindir}/qtpaths
%endif
%changelog