File mingw64-umbrello.spec of Package mingw64-umbrello
#
# spec file for package mingw64-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: mingw64-%{_name}
BuildRequires: cmake >= 2.8.12
BuildRequires: kdevelop4-pg-qt
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-kde4-tools >= 4.14.60
BuildRequires: mingw64-cross-qmake
BuildRequires: mingw64-kdevelop4-pg-qt
BuildRequires: mingw64-libqt4-devel >= 4.8.0
BuildRequires: mingw64-libqt4-tools
BuildRequires: mingw64-libqt4-tools-devel >= 4.8.0
BuildRequires: mingw64-libkde4-devel
BuildRequires: mingw64-libkdevplatform4-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-libxslt-devel
BuildRequires: mingw64-oxygen-icon-theme
BuildRequires: gettext-tools
# docbook export
Requires: mingw64-docbook-xsl-stylesheets
Requires: mingw64-khelpcenter-online
Requires: mingw64-oxygen-icon-theme
# ui_standards.rc
Requires: mingw64-kdelibs4
Summary: UML Modeller
License: GPL-2.0 and GFDL-1.2
Group: Development/Tools/Other
Url: http://www.kde.org/
Version: 2.17.0
Release: 0
Source0: umbrello-%{version}.tar.xz
Source1: ki18ntools.tar.xz
Source2: umbrello-18.12.3.tar.xz
Source4: fetch-apphelp-translations
Source5: umbrello-apphelp-translations.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch: noarch
%description
Umbrello is a UML modelling application.
%lang_package
Requires: mingw64-kdelibs4-lang
%_mingw64_debug_package
%prep
%setup -q -n %{_name}-%{version}
# install ki18ntools
tar -xJf %{SOURCE1}
sh -x install.sh
# source tarballs generated from git checkout does not contain ui translations
# so we take them from an official released tarball
tar -xJf %{SOURCE2}
mv umbrello-[0-9]*/po .
rm -rf umbrello-[0-9]*
# install apphelp translations
sh -x %{SOURCE4} --unpack %{SOURCE5}
%build
%_mingw64_cmake_kde4 -d build -- -DKDEVPGQT_EXECUTABLE=/usr/bin/kdev-pg-qt -DBUILD_PARSER_ONLY=TRUE -Wno-dev -DGETTEXT_FOUND=1 -DBUILD_KF5=0
%make_jobs
%install
%_mingw64_kde4_makeinstall -C build
%_mingw64_kde4_post_install
%_mingw64_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
%{_mingw64_kde4_bindir}/umbrello.exe
%{_mingw64_kde4_applicationsdir}/org.kde.umbrello.desktop
%{_mingw64_kde4_htmldir}/en/umbrello
%dir %{_mingw64_datadir}/icons
%{_mingw64_datadir}/icons/
%dir %{_mingw64_kde4_appsdir}
%{_mingw64_kde4_appsdir}/umbrello/
%{_mingw64_kde4_bindir}/po2xmi.exe
%{_mingw64_kde4_bindir}/xmi2pot.exe
%files lang -f %{_name}.lang
%defattr(-,root,root,-)
%{_mingw64_kde4_htmldir}
%exclude %{_mingw64_kde4_htmldir}/en
%changelog