File umbrello.spec of Package umbrello4

#
# spec file for package umbrello
#
# Copyright (c) 2017 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/
#

Name:           umbrello
Version:        17.08.3
Release:        0
Summary:        UML Modeller
License:        GPL-2.0 and GFDL-1.2 and GPL-3.0+
Group:          Development/Tools/Other
Url:            http://www.kde.org/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  libkde4-devel
BuildRequires:  libxml2-devel
BuildRequires:  libxslt-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
Umbrello is a UML modelling application.

%prep
%setup -q

%build
%ifarch ppc64
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
export CXXFLAGS="%{optflags} -fPIC"
export CFLAGS="%{optflags} -fPIC"

  %cmake_kde4 -d build -- -DBUILD_KF5=OFF
  %make_jobs

%install
  %kde4_makeinstall -C build
  %suse_update_desktop_file    umbrello       Development Design
  %kde_post_install

%files
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_kde4_bindir}/umbrello
%{_kde4_bindir}/po2xmi
%{_kde4_bindir}/xmi2pot
%{_kde4_applicationsdir}/umbrello.desktop
%{_kde4_htmldir}/en/umbrello
%{_kde4_iconsdir}/hicolor/*/apps/umbrello.*
%{_kde4_iconsdir}/hicolor/*/mimetypes/application-x-uml.*
%{_kde4_appsdir}/umbrello/

%changelog