2024-02-06 21:31:28 +01:00
|
|
|
#
|
|
|
|
# spec file for package kf6-ktexttemplate
|
|
|
|
#
|
2024-04-12 19:22:11 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-02-06 21:31:28 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-02-25 12:53:34 +01:00
|
|
|
%define qt6_version 6.6.0
|
2024-02-06 21:31:28 +01:00
|
|
|
|
|
|
|
%define rname ktexttemplate
|
2024-06-07 16:18:39 +02:00
|
|
|
# Full KF6 version (e.g. 6.3.0)
|
2024-02-06 21:31:28 +01:00
|
|
|
%{!?_kf6_version: %global _kf6_version %{version}}
|
|
|
|
# Last major and minor KF6 version (e.g. 6.0)
|
|
|
|
%{!?_kf6_bugfix_version: %define _kf6_bugfix_version %(echo %{_kf6_version} | awk -F. '{print $1"."$2}')}
|
|
|
|
%bcond_without released
|
|
|
|
Name: kf6-ktexttemplate
|
2024-06-07 16:18:39 +02:00
|
|
|
Version: 6.3.0
|
2024-02-06 21:31:28 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: String template library
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://www.kde.org
|
2024-02-25 12:53:34 +01:00
|
|
|
Source: %{rname}-%{version}.tar.xz
|
2024-02-06 21:31:28 +01:00
|
|
|
%if %{with released}
|
2024-02-25 12:53:34 +01:00
|
|
|
Source1: %{rname}-%{version}.tar.xz.sig
|
2024-02-06 21:31:28 +01:00
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
|
|
|
BuildRequires: doxygen
|
2024-02-28 09:59:49 +01:00
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_bugfix_version}
|
|
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Qml) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6ToolsTools) >= %{qt6_version}
|
2024-02-06 21:31:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of KTextTemplate is to make it easier for application developers to
|
|
|
|
separate the structure of documents from the data they contain, opening the door
|
|
|
|
for theming and advanced generation of other text such as code.
|
|
|
|
|
|
|
|
%package -n libKF6TextTemplate6
|
|
|
|
Summary: Core library for ktexttemplate
|
|
|
|
Requires: kf6-ktexttemplate >= %{version}
|
|
|
|
|
|
|
|
%description -n libKF6TextTemplate6
|
|
|
|
Library to allow application developers to separate the structure of documents
|
|
|
|
from the data they contain.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for ktexttemplate
|
|
|
|
Requires: libKF6TextTemplate6 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Library to allow application developers to separate the structure of documents
|
|
|
|
from the data they contain.
|
|
|
|
|
|
|
|
Development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{rname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf6 -DBUILD_QCH:BOOL=TRUE
|
|
|
|
|
|
|
|
%kf6_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf6_install
|
|
|
|
|
|
|
|
%ldconfig_scriptlets -n libKF6TextTemplate6
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_kf6_debugdir}/ktexttemplate.categories
|
|
|
|
%{_kf6_plugindir}/kf6/ktexttemplate/
|
|
|
|
|
|
|
|
%files -n libKF6TextTemplate6
|
|
|
|
%license LICENSES/*
|
|
|
|
%doc README.md
|
|
|
|
%{_kf6_libdir}/libKF6TextTemplate.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc %{_kf6_qchdir}/KF6TextTemplate.*
|
|
|
|
%{_kf6_cmakedir}/KF6TextTemplate/
|
|
|
|
%{_kf6_includedir}/KTextTemplate/
|
|
|
|
%{_kf6_libdir}/libKF6TextTemplate.so
|
|
|
|
|
|
|
|
%changelog
|