SHA256
1
0
forked from pool/qt6-3d
Christophe Giboudeaux 2020-12-11 14:28:21 +00:00 committed by Git OBS Bridge
parent 82f24be223
commit d489db0e57
3 changed files with 17 additions and 69 deletions

4
_multibuild Normal file
View File

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

View File

@ -1,69 +0,0 @@
#
# spec file for package qt6-3d-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 qt3d
%define tar_suffix %{nil}
#
Name: qt6-3d-docs
Version: 6.0.0
Release: 0
Summary: Qt 6 3D Documentation
License: GFDL-1.3-only
URL: https://www.qt.io
Source: %{tar_name}-%{real_version}%{tar_suffix}.tar.xz
BuildRequires: pkgconfig
BuildRequires: qt6-core-private-devel
BuildRequires: qt6-gui-private-devel
BuildRequires: qt6-opengl-private-devel
BuildRequires: qt6-qml-private-devel
BuildRequires: qt6-quick-private-devel
BuildRequires: qt6-shadertools-private-devel
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Core)
# Doesn't build yet
# BuildRequires: cmake(Qt6Gamepad)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6OpenGL)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Quick)
BuildRequires: cmake(Qt6ShaderTools)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(assimp) >= 5
BuildRequires: pkgconfig(zlib)
BuildRequires: qt6-tools
%description
The Qt 6 3D Documentation.
%{qt6_doc_packages}
%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
%build
%cmake_qt6 \
-DQT_FEATURE_qt3d_system_assimp=ON
%{qt6_build_docs}
%install
%{qt6_install_docs}
%changelog -n qt6-3d.changes

View File

@ -21,6 +21,8 @@
%define tar_name qt3d
%define tar_suffix %{nil}
#
%global qt6_flavor @BUILD_FLAVOR@%{nil}
#
Name: qt6-3d
Version: 6.0.0
Release: 0
@ -47,11 +49,17 @@ BuildRequires: cmake(Qt6ShaderTools)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(assimp) >= 5
BuildRequires: pkgconfig(zlib)
%if "%{qt6_flavor}" == "docs"
BuildRequires: qt6-tools
%{qt6_doc_packages}
%endif
%description
Qt 3D provides functionality for near-realtime simulation
systems with support for 2D and 3D rendering in both Qt C++ and Qt Quick applications.
%if !%{qt6_docs_flavor}
%package devel
Summary: Qt 6 3D development meta package
Requires: cmake(Qt63DAnimation) = %{real_version}
@ -353,6 +361,7 @@ Supplements: (libQt63DCore6 and libQt6Quick6)
Qt 6 3D QML imports.
%{qt6_examples_package}
%endif
%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
@ -374,6 +383,8 @@ touch meta_package
%install
%{qt6_install}
%if !%{qt6_docs_flavor}
# Unneeded files related to plugins
rm -fr %{buildroot}%{_qt6_cmakedir}/Qt6Qml/QmlPlugins
@ -615,4 +626,6 @@ rm -fr %{buildroot}%{_qt6_cmakedir}/Qt6Qml/QmlPlugins
%{_qt6_qmldir}/Qt3D/
%{_qt6_qmldir}/QtQuick/
%endif
%changelog