File mingw32-kdevplatform5.spec of Package mingw32-kdevplatform5

#
# spec file for package mingw32-kdevplatform5
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#

%define _name kdevplatform5
Name:           mingw32-%{_name}
Version:        24.05.2+git.7.0ef70f1c
Release:        0
%define rname kdevplatform
%define kdevelop_version 5.14.0
%define libkdev_major 514
Summary:        Base Package for Integrated Development Environments
License:        GPL-2.0-or-later
Group:          Development/Tools/IDE
Url:            http://www.kdevelop.org
Source0:        http://download.kde.org/stable/kdevelop/%{kdevelop_version}/src/%{rname}-%{version}.tar.xz
Patch0:         0001-Limit-building-to-kdevplatform.patch
#BuildRequires:  doxygen
BuildRequires:  gettext
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-boost-devel
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-extra-cmake-modules
BuildRequires:  mingw32(cmake:Clang)
BuildRequires:  mingw32(cmake:Grantlee5)
BuildRequires:  mingw32(cmake:KF5Archive)
BuildRequires:  mingw32(cmake:KF5Config)
BuildRequires:  mingw32(cmake:KF5DocTools)
BuildRequires:  mingw32(cmake:KF5GuiAddons)
BuildRequires:  mingw32(cmake:KF5I18n)
BuildRequires:  mingw32(cmake:KF5ItemModels)
BuildRequires:  mingw32(cmake:KF5KCMUtils)
BuildRequires:  mingw32(cmake:KF5KIO)
BuildRequires:  mingw32(cmake:KF5Notifications)
BuildRequires:  mingw32(cmake:KF5NotifyConfig)
BuildRequires:  mingw32(cmake:KF5Parts)
BuildRequires:  mingw32(cmake:KF5SyntaxHighlighting)
BuildRequires:  mingw32(cmake:KF5TextEditor)
BuildRequires:  mingw32(cmake:KF5ThreadWeaver)
BuildRequires:  mingw32(cmake:KF5WidgetsAddons)
BuildRequires:  mingw32(cmake:KF5XmlGui)
BuildRequires:  mingw32(cmake:Qt5WebKitWidgets)
BuildRequires:  mingw32(cmake:LLVM)
# unresolvable: have choice for mingw32(cmake:KDevelop-PG-Qt):
BuildRequires:  mingw32-kdevelop5-pg-qt
BuildRequires:  mingw32-libintl-devel
BuildRequires:  mingw32-libqjson-devel
BuildRequires:  mingw32-libxslt-devel
BuildRequires:  shared-mime-info
BuildRequires:  xz
BuildRequires:  zip
Requires:       mingw32-libkdevplatform%{libkdev_major} = %{version}
BuildArch:      noarch
%_mingw32_package_header_debug
#%%_mingw32_kf5_runtime_requires

%description
This package contains the common plugins for integrated developments
environment based on the KDevelop framework.

%package devel
Summary:        Base Package for Integrated Development Environments: Build Environment
Group:          Development/Tools/IDE
Provides:       mingw32-libkdevplatform5-devel = %{version}
Requires:       %{name} = %{version}
Requires:       mingw32(cmake:KF5ThreadWeaver)
Requires:       mingw32-libkdevplatform%{libkdev_major} = %{version}

%description devel
This package contains the development files for building integrated
developments environments based on the KDevelop framework.

%package -n mingw32-libkdevplatform%{libkdev_major}
Summary:        Libraries for Integrated Development Environments
Group:          Development/Tools/IDE
Requires:       %{name} = %{version}
Obsoletes:      mingw32-libkdevplatform0 < %{version}
Provides:       mingw32-libkdevplatform0 = %{version}

%description -n mingw32-libkdevplatform%{libkdev_major}
This package contains the libraries for integrated development
environments based on the KDevelop framework.

%_mingw32_debug_package

%lang_package

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
  %_mingw32_cmake_kf5 -d build -- -DGETTEXT_MSGMERGE_EXECUTABLE=/usr/bin/msgmerge -DGETTEXT_MSGFMT_EXECUTABLE=/usr/bin/msgfmt -DCMAKE_DLL_NAME_WITH_SOVERSION=1
  %_mingw32_cmake_build -C kdevplatform

%install
  %_mingw32_kf5_makeinstall -C build/kdevplatform
  %_mingw32_kf5_post_install
  # %%_mingw32_find_lang kdevplatform %%{rname}.lang

  rm  -rf %{buildroot}%{_mingw32_datadir}/kdevplatform/shellutils

%files
%defattr(-,root,root)
%doc COPYING*
%{_mingw32_kf5_bindir}/kdev_format_source.exe
%{_mingw32_kf5_bindir}/kdevplatform_shell_environment.sh
%dir %{_mingw32_kf5_plugindir}/grantlee/
%dir %{_mingw32_kf5_plugindir}/grantlee/*/
%{_mingw32_kf5_plugindir}/grantlee/*/kdev_filters.dll
%{_mingw32_kf5_iconsdir}/hicolor/*/*/*.png
%{_mingw32_kf5_iconsdir}/hicolor/*/*/*.svg
%{_mingw32_datadir}/kdevcodegen/
%{_mingw32_datadir}/kdevplatform/
%{_mingw32_kf5_servicetypesdir}/kdevelopplugin.desktop

#%%files lang -f %%{rname}.lang

%files -n mingw32-libkdevplatform%{libkdev_major}
%defattr(-,root,root)
%{_mingw32_kf5_bindir}/lib*.dll
%{_mingw32_datadir}/qlogging-categories5/

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/kdevplatform
%{_mingw32_kf5_libdir}/lib*.dll.a
%{_mingw32_kf5_libdir}/cmake

%changelog
openSUSE Build Service is sponsored by