Christophe Giboudeaux 2020-12-11 14:28:18 +00:00 committed by Git OBS Bridge
parent ff36bd9796
commit 8c67d23735
3 changed files with 18 additions and 74 deletions

4
_multibuild Normal file
View File

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

View File

@ -1,74 +0,0 @@
#
# spec file for package qt6-wayland-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 qtwayland-everywhere-src
%define tar_suffix %{nil}
#
%ifnarch %{arm} aarch64
%global with_opengl 1
%endif
Name: qt6-wayland-docs
Version: 6.0.0
Release: 0
Summary: Qt 6 Wayland 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: pkgconfig
BuildRequires: qt6-core-private-devel
BuildRequires: qt6-gui-private-devel
BuildRequires: qt6-qml-private-devel
BuildRequires: qt6-quick-private-devel
BuildRequires: qt6-opengl-private-devel
BuildRequires: qt6-platformsupport-private-devel
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6OpenGL)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Quick)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(wayland-server) >= 1.15
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: qt6-tools
%description
The Qt 6 Wayland 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 qtwayland-everywhere-src
%define tar_suffix %{nil}
#
%global qt6_flavor @BUILD_FLAVOR@%{nil}
#
%ifnarch %{arm} aarch64
%global with_opengl 1
%endif
@ -55,10 +57,16 @@ BuildRequires: pkgconfig(wayland-server) >= 1.15
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xkbcommon)
%if "%{qt6_flavor}" == "docs"
BuildRequires: qt6-tools
%{qt6_doc_packages}
%endif
%description
The Qt6 Wayland libraries and tools.
%if !%{qt6_docs_flavor}
%package devel
Summary: Qt6 Wayland development meta package
Requires: cmake(Qt6WaylandClient) = %{real_version}
@ -123,6 +131,8 @@ have any ABI or API guarantees.
%{qt6_examples_package}
%endif
%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
@ -139,6 +149,8 @@ EOF
%install
%{qt6_install}
%if !%{qt6_docs_flavor}
%{qt6_link_executables}
# .CMake files are not needed for plugins
@ -208,4 +220,6 @@ rm -r %{buildroot}%{_qt6_cmakedir}/Qt6Qml/QmlPlugins
%{_qt6_includedir}/QtWaylandCompositor/%{real_version}/
%{_qt6_mkspecsdir}/modules/qt_lib_waylandcompositor_private.pri
%endif
%changelog