Use a different name for the docs flavor

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:6.0/qt6-networkauth?expand=0&rev=4
This commit is contained in:
Christophe Giboudeaux 2020-12-16 11:27:47 +00:00 committed by Git OBS Bridge
parent 4c310ad819
commit 212772fc52
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 16 11:26:08 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Use a different 'Name' when building the docs flavor.
-------------------------------------------------------------------
Tue Dec 8 15:11:54 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -23,15 +23,18 @@
%define tar_suffix %{nil}
#
%global qt6_flavor @BUILD_FLAVOR@%{nil}
%if "%{qt6_flavor}" == "docs"
%define pkg_suffix -docs
%endif
#
Name: qt6-networkauth
Name: qt6-networkauth%{?pkg_suffix}
Version: 6.0.0
Release: 0
Summary: Qt 6 NetworkAuth library
License: GPL-3.0-only WITH Qt-GPL-exception-1.0
URL: https://www.qt.io
Source: https://download.qt.io/official_releases/additional_libraries/%{short_name}/%{short_version}/%{real_version}%{tar_suffix}/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
Source99: %{name}-rpmlintrc
Source99: qt6-networkauth-rpmlintrc
BuildRequires: qt6-core-private-devel
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Network)