File mingw32-umbrello.spec of Package mingw32-umbrello

#
# spec file for package umbrello
#
# Copyright (c) 2014 SUSE LINUX Products 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   umbrello
Name:           mingw32-%{_name}

BuildRequires:  kdevelop4-pg-qt
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-kde4-tools
BuildRequires:  mingw32-cross-libqt4-qmake
BuildRequires:  mingw32-kdevelop4-pg-qt
BuildRequires:  mingw32-libqt4-devel >= 4.8.0
BuildRequires:  mingw32-libqt4-tools
BuildRequires:  mingw32-libqt4-tools-devel >= 4.8.0
BuildRequires:  mingw32-libkde4-devel
BuildRequires:  mingw32-libkdevplatform4-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-libxslt-devel
BuildRequires:  mingw32-oxygen-icon-theme
BuildRequires:  gettext-tools
Requires:       mingw32-khelpcenter-online
Requires:       mingw32-oxygen-icon-theme
# ui_standards.rc
Requires:       mingw32-kdelibs4
Summary:        UML Modeller
License:        GPL-2.0 and GFDL-1.2
Group:          Development/Tools/Other
Url:            https://umbrello.kde.org
Version:        2.25.2
Release:        0
Source0:        umbrello-%{version}.tar.xz
Source1:        ki18ntools.tar.xz
Source4:        fetch-apphelp-translations
Source5:        umbrello-apphelp-translations.tar.xz
Patch0:         0001-Fix-building-with-cmake-3.27.patch 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw32_package_header_debug
BuildArch:      noarch

%description
Umbrello is a UML modelling application.

%lang_package
Requires:       mingw32-kdelibs4-lang

%_mingw32_debug_package

%prep
%autosetup -p1 -n %{_name}-%{version}
# install ki18ntools
tar -xJf %{SOURCE1}
sh -x install.sh

# install apphelp translations
sh -x %{SOURCE4} --unpack %{SOURCE5}

%build
  %_mingw32_cmake_kde4 -d build -- -DKDEVPGQT_EXECUTABLE=/usr/bin/kdev-pg-qt -DBUILD_PARSER_ONLY=TRUE -Wno-dev -DGETTEXT_FOUND=1 -DBUILD_KF5=0
  %_mingw32_cmake_build

%install
  %_mingw32_kde4_makeinstall -C build
  %_mingw32_kde4_post_install
  %_mingw32_find_lang %{_name} %{_name}.lang --all-name || true
  #%suse_update_desktop_file    umbrello       Development Design
  # kde uses oxygen theme as default, installing icons in 

%files
%defattr(-,root,root)

%doc COPYING COPYING.DOC README
%{_mingw32_kde4_bindir}/umbrello.exe
%{_mingw32_kde4_applicationsdir}/org.kde.umbrello.desktop
%{_mingw32_kde4_htmldir}/en
%dir %{_mingw32_datadir}/icons
%{_mingw32_datadir}/icons/
%dir %{_mingw32_kde4_appsdir}
%{_mingw32_kde4_appsdir}/umbrello/
%{_mingw32_kde4_bindir}/po2xmi.exe
%{_mingw32_kde4_bindir}/xmi2pot.exe

%files lang -f %{_name}.lang
%defattr(-,root,root,-)
%{_mingw32_kde4_htmldir}
%exclude %{_mingw32_kde4_htmldir}/en

%changelog
openSUSE Build Service is sponsored by