From b344bf1b9b44cc6ec83388dececf2928ea543729f17ac7ee01e50e4b9ae14c6f Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Fri, 11 Dec 2020 14:28:32 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:6.0/qt6-networkauth?expand=0&rev=2 --- _multibuild | 4 +++ qt6-networkauth-docs.spec | 53 --------------------------------------- qt6-networkauth.spec | 14 +++++++++++ 3 files changed, 18 insertions(+), 53 deletions(-) create mode 100644 _multibuild delete mode 100644 qt6-networkauth-docs.spec diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..46731da --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + docs + + diff --git a/qt6-networkauth-docs.spec b/qt6-networkauth-docs.spec deleted file mode 100644 index 27548e8..0000000 --- a/qt6-networkauth-docs.spec +++ /dev/null @@ -1,53 +0,0 @@ -# -# spec file for package qt6-networkauth-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 qtnetworkauth -%define tar_suffix %{nil} -# -Name: qt6-networkauth-docs -Version: 6.0.0 -Release: 0 -Summary: Qt 6 NetworkAuth Documentation -License: GFDL-1.3-only -URL: https://www.qt.io -Source: %{tar_name}-%{real_version}%{tar_suffix}.tar.xz -BuildRequires: qt6-core-private-devel -BuildRequires: cmake(Qt6Core) -BuildRequires: cmake(Qt6Network) -BuildRequires: cmake(Qt6Widgets) -BuildRequires: qt6-tools - -%description -The Qt 6 NetworkAuth 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 -n qt6-networkauth.changes diff --git a/qt6-networkauth.spec b/qt6-networkauth.spec index 1544bee..31449cb 100644 --- a/qt6-networkauth.spec +++ b/qt6-networkauth.spec @@ -21,6 +21,8 @@ %define tar_name qtnetworkauth %define tar_suffix %{nil} # +%global qt6_flavor @BUILD_FLAVOR@%{nil} +# Name: qt6-networkauth Version: 6.0.0 Release: 0 @@ -33,12 +35,18 @@ BuildRequires: qt6-core-private-devel BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Network) BuildRequires: cmake(Qt6Widgets) +%if "%{qt6_flavor}" == "docs" +BuildRequires: qt6-tools +%{qt6_doc_packages} +%endif %description Qt Network Authorization provides a set of APIs that enable Qt applications to obtain limited access to online accounts and HTTP services without exposing users' passwords. +%if !%{qt6_docs_flavor} + %package -n libQt6NetworkAuth6 Summary: Qt 6 NetworkAuth library @@ -62,6 +70,8 @@ ABI or API guarantees. %{qt6_examples_package} +%endif + %prep %autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix} @@ -73,6 +83,8 @@ ABI or API guarantees. %install %{qt6_install} +%if !%{qt6_docs_flavor} + %post -n libQt6NetworkAuth6 -p /sbin/ldconfig %postun -n libQt6NetworkAuth6 -p /sbin/ldconfig @@ -94,4 +106,6 @@ ABI or API guarantees. %{_qt6_includedir}/QtNetworkAuth/%{real_version} %{_qt6_mkspecsdir}/modules/qt_lib_networkauth_private.pri +%endif + %changelog