This commit is contained in:
parent
6889a81ab3
commit
c45cf16b40
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<multibuild>
|
||||||
|
<flavor>docs</flavor>
|
||||||
|
</multibuild>
|
||||||
|
|
@ -1,57 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package qt6-svg-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 qtsvg-everywhere-src
|
|
||||||
%define tar_suffix %{nil}
|
|
||||||
#
|
|
||||||
Name: qt6-svg-docs
|
|
||||||
Version: 6.0.0
|
|
||||||
Release: 0
|
|
||||||
Summary: Qt 6 SVG 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-widgets-private-devel
|
|
||||||
BuildRequires: cmake(Qt6Core)
|
|
||||||
BuildRequires: cmake(Qt6Gui)
|
|
||||||
BuildRequires: cmake(Qt6Widgets)
|
|
||||||
BuildRequires: pkgconfig(zlib)
|
|
||||||
BuildRequires: qt6-tools
|
|
||||||
|
|
||||||
%description
|
|
||||||
The Qt6 Svg 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
|
|
16
qt6-svg.spec
16
qt6-svg.spec
@ -21,6 +21,8 @@
|
|||||||
%define tar_name qtsvg-everywhere-src
|
%define tar_name qtsvg-everywhere-src
|
||||||
%define tar_suffix %{nil}
|
%define tar_suffix %{nil}
|
||||||
#
|
#
|
||||||
|
%global qt6_flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
#
|
||||||
Name: qt6-svg
|
Name: qt6-svg
|
||||||
Version: 6.0.0
|
Version: 6.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -39,11 +41,19 @@ BuildRequires: cmake(Qt6Widgets)
|
|||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
# Ignored: only used for building tests
|
# Ignored: only used for building tests
|
||||||
# BuildRequires: cmake(Qt6Xml)
|
# BuildRequires: cmake(Qt6Xml)
|
||||||
|
%if "%{qt6_flavor}" == "docs"
|
||||||
|
BuildRequires: qt6-tools
|
||||||
|
%{qt6_doc_packages}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%{echo: Debug: %{qt6_docs_flavor}}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Qt SVG module provides functionality for displaying SVG images
|
The Qt SVG module provides functionality for displaying SVG images
|
||||||
as a widget, and to create SVG files using drawing commands.
|
as a widget, and to create SVG files using drawing commands.
|
||||||
|
|
||||||
|
%if !%{qt6_docs_flavor}
|
||||||
|
|
||||||
%package -n libQt6Svg6
|
%package -n libQt6Svg6
|
||||||
Summary: Qt 6 Svg library
|
Summary: Qt 6 Svg library
|
||||||
|
|
||||||
@ -81,6 +91,8 @@ Requires: cmake(Qt6SvgWidgets) = %{real_version}
|
|||||||
This package provides private headers of libQt6Svg that do not have any
|
This package provides private headers of libQt6Svg that do not have any
|
||||||
ABI or API guarantees.
|
ABI or API guarantees.
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
|
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
|
||||||
|
|
||||||
@ -92,6 +104,8 @@ ABI or API guarantees.
|
|||||||
%install
|
%install
|
||||||
%{qt6_install}
|
%{qt6_install}
|
||||||
|
|
||||||
|
%if !%{qt6_docs_flavor}
|
||||||
|
|
||||||
# No private headers for Qt6SvgWidgets
|
# No private headers for Qt6SvgWidgets
|
||||||
rm %{buildroot}%{_qt6_mkspecsdir}/modules/qt_lib_svgwidgets_private.pri
|
rm %{buildroot}%{_qt6_mkspecsdir}/modules/qt_lib_svgwidgets_private.pri
|
||||||
|
|
||||||
@ -133,4 +147,6 @@ rm %{buildroot}%{_qt6_mkspecsdir}/modules/qt_lib_svgwidgets_private.pri
|
|||||||
%{_qt6_includedir}/QtSvg/%{real_version}/
|
%{_qt6_includedir}/QtSvg/%{real_version}/
|
||||||
%{_qt6_mkspecsdir}/modules/qt_lib_svg_private.pri
|
%{_qt6_mkspecsdir}/modules/qt_lib_svg_private.pri
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user