KDE Applications 18.12.0 Beta (last try; fix any other issue post acceptance)

OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kate?expand=0&rev=106
This commit is contained in:
Wolfgang Bauer
2018-11-24 23:44:18 +00:00
committed by Git OBS Bridge
parent f8bbc8d8fa
commit debc1c8d71
4 changed files with 27 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package kate
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,23 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without lang
%define _appstreamkpackage 0%(cat %{_kf5_cmakedir}/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1)
Name: kate
Version: 18.08.3
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: kate
Version: 18.11.80
Release: 0
Summary: Advanced Text Editor
License: GPL-3.0-or-later
Group: Productivity/Text/Editors
Url: http://www.kde.org
URL: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE
Patch0: 0001-Defuse-root-block.patch
@@ -61,10 +60,9 @@ BuildRequires: pkgconfig(Qt5Sql) >= 5.4.0
BuildRequires: pkgconfig(Qt5Test) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
Requires: %{name}-plugins = %{version}
Recommends: %{name}-lang
Obsoletes: %{name}5 < %{version}
Provides: %{name}5 = %{version}
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Kate is an advanced text editor for KDE.
@@ -103,14 +101,13 @@ plugins and data files for Kate and KWrite editors.
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%kf5_find_htmldocs
%{kf5_find_htmldocs}
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYING*
%doc README*
%dir %{_kf5_appstreamdir}
@@ -125,7 +122,6 @@ plugins and data files for Kate and KWrite editors.
%{_kf5_iconsdir}/hicolor/*/apps/kate.*
%files -n kwrite
%defattr(-,root,root)
%license COPYING*
%doc README*
%dir %{_kf5_htmldir}
@@ -137,7 +133,6 @@ plugins and data files for Kate and KWrite editors.
%{_kf5_iconsdir}/hicolor/*/apps/kwrite.*
%files plugins
%defattr(-,root,root)
%license COPYING*
%doc README*
%if 0%{?_appstreamkpackage}