File mingw64-kate4-parts.spec of Package mingw64-kate4-parts
#
# spec file for package mingw64-kate4-parts
#
# Copyright (c) 2019 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
# 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/
#
# cmake 3.11 uses that macro, but installed rpm 4.11 does not provide it
%if 0%{?leap_version} == 420300
%global _make_output_sync %{__make}
%endif
%define _name kate4-parts
Name: mingw64-%{_name}
Version: 4.14.3
Release: 0
Summary: Kate parts for embedding in applications
License: GPL-2.0-or-later
Group: Productivity/Editors/Other
Url: http://www.kde.org/
Source0: kate-%{version}.tar.xz
# PATCH-FIX-UPSTREAM gcc7-fix.patch -- fix build with GCC7
Patch: gcc7-fix.patch
%if "%_repository" == "openSUSE_Tumbleweed"
BuildRequires: mingw64-cross-gcc-c++
%endif
#BuildRequires: mingw64-libkactivities-devel
BuildRequires: mingw64-libkde4-devel >= %version
BuildRequires: mingw64-libqjson-devel
BuildRequires: xz
Provides: mingw64-libktexteditor = %{version}
Requires: mingw64-libkatepartinterfaces4 = %{version}
%_mingw64_kde4_runtime_requires
BuildArch: noarch
%_mingw64_package_header_debug
%description
The Kate parts that are required for integration with applications
%package -n mingw64-libkatepartinterfaces4
Summary: Library to interface with kateparts
Group: Productivity/Editors/Other
%description -n mingw64-libkatepartinterfaces4
The library required by Kate parts.
%_mingw64_debug_package
%prep
%setup -q -n kate-%{version}
%patch -p1
%build
%ifarch ppc64
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
%_mingw64_cmake_kde4 -d build
%_mingw64_cmake_build
%install
%_mingw64_kde4_makeinstall -C build/addons/ktexteditor
%_mingw64_kde4_makeinstall -C build/part
# really unused ?
rm %{buildroot}%{_mingw64_kde4_libdir}/libkatepartinterfaces.dll.a
%clean
rm -rf %{buildroot}
%files -n mingw64-libkatepartinterfaces4
%defattr(-,root,root)
%{_mingw64_kde4_bindir}/libkatepartinterfaces*.dll
%files
%defattr(-,root,root)
%{_mingw64_kde4_modulesdir}/ktexteditor*.dll
%{_mingw64_kde4_modulesdir}/katepart*.dll
%{_mingw64_kde4_servicesdir}/ktexteditor_*.desktop
%{_mingw64_kde4_servicesdir}/katepart.desktop
%{_mingw64_kde4_appsdir}/ktexteditor_*
%{_mingw64_kde4_iconsdir}/hicolor/scalable/apps/*.svgz
%{_mingw64_kde4_configdir}/ktexteditor_*.knsrc
%{_mingw64_kde4_configdir}/kate*
%{_mingw64_kde4_appsdir}/katepart/
%changelog