2016-11-05 22:06:41 +00:00
|
|
|
#
|
|
|
|
# spec file for package syntax-highlighting
|
|
|
|
#
|
2021-01-09 12:19:06 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-11-05 22:06:41 +00: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.
|
|
|
|
|
2018-10-16 12:27:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-05 22:06:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define lname libKF5SyntaxHighlighting5
|
2017-09-13 13:38:12 +00:00
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
2018-07-17 08:58:24 +00:00
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2024-01-15 14:11:45 +00:00
|
|
|
%define qt5_version 5.15.2
|
2022-01-09 10:15:14 +00:00
|
|
|
%bcond_without released
|
2016-11-05 22:06:41 +00:00
|
|
|
Name: syntax-highlighting
|
2024-05-19 09:35:53 +00:00
|
|
|
Version: 5.116.0
|
2016-11-05 22:06:41 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Syntax highlighting engine and library
|
2018-03-14 13:01:09 +00:00
|
|
|
License: LGPL-2.1-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND MIT AND BSD-3-Clause AND Artistic-1.0
|
2018-10-16 12:27:48 +00:00
|
|
|
URL: https://www.kde.org
|
2021-11-12 12:21:05 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-01-09 10:15:14 +00:00
|
|
|
%if %{with released}
|
2021-11-12 12:21:05 +00:00
|
|
|
Source1: %{name}-%{version}.tar.xz.sig
|
2019-08-11 21:07:44 +00:00
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2024-01-15 14:11:45 +00:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_version}
|
2016-11-05 22:06:41 +00:00
|
|
|
BuildRequires: fdupes
|
2024-01-15 14:11:45 +00:00
|
|
|
BuildRequires: cmake(Qt5Core) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Gui) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5LinguistTools) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Network) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Quick) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Test) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Widgets) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5XmlPatterns) >= %{qt5_version}
|
2016-11-05 22:06:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a tier1/functional version of the Kate syntax highlighting engine.
|
|
|
|
It's not tied to a particular output format or editor engine.
|
|
|
|
|
2021-10-30 07:55:52 +00:00
|
|
|
%package imports
|
|
|
|
Summary: QML components for syntax-highlighting
|
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
|
|
|
|
%description imports
|
|
|
|
This package contains QML imports for syntax-highlighting.
|
|
|
|
|
2016-11-05 22:06:41 +00:00
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Syntax highlighting engine and library
|
|
|
|
Recommends: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
This is a tier1/functional version of the Kate syntax highlighting engine.
|
|
|
|
It's not tied to a particular output format or editor engine.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Syntax highlighting engine and library
|
|
|
|
Requires: %{lname} = %{version}
|
2024-01-15 14:11:45 +00:00
|
|
|
Requires: cmake(Qt5Core) >= %{qt5_version}
|
|
|
|
Requires: cmake(Qt5Gui) >= %{qt5_version}
|
2016-11-05 22:06:41 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This is a tier1/functional version of the Kate syntax highlighting engine.
|
|
|
|
It's not tied to a particular output format or editor engine.
|
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%lang_package -n %{lname}
|
|
|
|
|
2016-11-05 22:06:41 +00:00
|
|
|
%prep
|
2021-05-09 07:42:08 +00:00
|
|
|
%autosetup -p1
|
2016-11-05 22:06:41 +00:00
|
|
|
|
|
|
|
%build
|
2021-05-09 07:42:08 +00:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
2016-11-05 22:06:41 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-09 07:42:08 +00:00
|
|
|
%kf5_makeinstall -C build
|
|
|
|
%fdupes %{buildroot}
|
2016-11-05 22:06:41 +00:00
|
|
|
|
2022-10-08 17:28:12 +00:00
|
|
|
%find_lang syntaxhighlighting5 --with-qt --without-mo
|
2017-01-11 22:40:33 +00:00
|
|
|
|
2023-02-12 09:53:24 +00:00
|
|
|
%ldconfig_scriptlets -n %{lname}
|
2016-11-05 22:06:41 +00:00
|
|
|
|
2018-08-20 12:59:02 +00:00
|
|
|
%files -n %{lname}-lang -f syntaxhighlighting5.lang
|
2017-01-11 22:40:33 +00:00
|
|
|
|
2016-11-05 22:06:41 +00:00
|
|
|
%files
|
2020-03-13 12:30:34 +00:00
|
|
|
%{_kf5_debugdir}/ksyntaxhighlighting.categories
|
2020-08-09 07:40:00 +00:00
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2016-11-05 22:06:41 +00:00
|
|
|
%{_kf5_bindir}/kate-syntax-highlighter
|
|
|
|
|
2021-10-30 07:55:52 +00:00
|
|
|
%files imports
|
|
|
|
%dir %{_kf5_qmldir}/org/
|
|
|
|
%dir %{_kf5_qmldir}/org/kde/
|
|
|
|
%{_kf5_qmldir}/org/kde/syntaxhighlighting/
|
|
|
|
|
2016-11-05 22:06:41 +00:00
|
|
|
%files -n %{lname}
|
2020-09-11 06:33:27 +00:00
|
|
|
%license LICENSES/*
|
2018-08-20 12:59:02 +00:00
|
|
|
%doc README*
|
2016-11-05 22:06:41 +00:00
|
|
|
%{_kf5_libdir}/libKF5SyntaxHighlighting.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_kf5_libdir}/libKF5SyntaxHighlighting.so
|
|
|
|
%{_kf5_libdir}/cmake/KF5SyntaxHighlighting/
|
2016-11-06 12:40:22 +00:00
|
|
|
%{_kf5_mkspecsdir}/qt_KSyntaxHighlighting.pri
|
2016-11-05 22:06:41 +00:00
|
|
|
%{_kf5_includedir}/
|
|
|
|
|
|
|
|
%changelog
|