File kdeedu3.spec of Package kdeedu3
#
# spec file for package kdeedu3
#
# 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/
#
Name: kdeedu3
BuildRequires: kdelibs3-devel
Summary: Education Applications
License: GPL-2.0+
Group: System/GUI/KDE
Version: 3.5.10
Release: 0
Url: http://www.kde.org
BuildRequires: fdupes
%if 0%{?suse_version} > 1600
BuildRequires: ocaml-facile-devel
%endif
Provides: keduca
Provides: kgeo
Source0: kdeedu-%{version}.tar.bz2
Patch0: 3_5_BRANCH.diff
Patch1: kdeedu3_isnan_ppc64le_cast.patch
Patch2: kdeedu3-deprecate-update-desktop-files.patch
Patch3: kdeedu-kalzium-solver-ocaml.patch
Patch4: kdeedu-kalzium-ldadd.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
* keduca: creation and revision of form-based tests and exams
* kgeo: interactive geometry
* khangman: hangman game--guess a word letter by letter
* klatin: aims to help revise or learn Latin
* klettres: helps to learn the French alphabet and read some
syllables
* kmessedwords: simple mind-training game
* kstars: desktop planetarium
* ktouch: program for learning touch typing
* kvoctrain: vocabulary trainer
%prep
%setup -n kdeedu-%{version} -q
%patch -P 0
%patch -P 1 -p1
%patch -P 2 -p1
%if 0%{?suse_version} > 1600
%patch -P 3 -p1
%endif
%ifarch aarch64
rm -rf kstars
%endif
. /etc/opt/kde3/common_options
update_admin
%if 0%{?suse_version} > 1600
%patch -P 4 -p1
%endif
%build
. /etc/opt/kde3/common_options
export CXXFLAGS="$CXXFLAGS -fpermissive"
export CFLAGS="$CFLAGS -fpermissive"
./configure $configkde
make %{?jobs:-j%jobs}
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
kde_post_install
# not reviewed yet. we should maybe add resmgr support.
%ifnarch aarch64
chmod 0755 $RPM_BUILD_ROOT/opt/kde3/bin/fliccd
%endif
# legal trouble with Langenscheidt (#91022)
rm -f $RPM_BUILD_ROOT/opt/kde3/bin/langen2kvtml
%fdupes -s $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/*
%dir /opt/kde3/share/icons/*/*/mimetypes
%dir /opt/kde3/share/icons/*/*/actions
%dir /opt/kde3/share/icons/*/*/apps
/opt/kde3/bin/*
%ifnarch aarch64
/opt/kde3/include/kstarsinterface.h
/opt/kde3/include/simclockinterface.h
%endif
/opt/kde3/include/libkiten
%dir /opt/kde3/include/libkdeedu
/opt/kde3/include/libkdeedu/kdeeduglossary.h
/opt/kde3/include/libkdeedu/keduvocdata.h
/opt/kde3/include/libkdeedu/kplotaxis.h
/opt/kde3/include/libkdeedu/kplotobject.h
/opt/kde3/include/libkdeedu/kplotwidget.h
/opt/kde3/%_lib/kde3/libkigpart.*
/opt/kde3/%_lib/kde3/libkeducapart.*
/opt/kde3/%_lib/kde3/libkmplotpart.*
/opt/kde3/%_lib/lib*
/opt/kde3/%_lib/kde3/kfile_*
/opt/kde3/share/config/*
/opt/kde3/share/services/*.desktop
/opt/kde3/share/applications/kde/*
/opt/kde3/share/applnk/Edutainment
/opt/kde3/share/apps/*
/opt/kde3/share/config.kcfg/*.kcfg
%doc %lang(en) /opt/kde3/share/doc/HTML/en/*
/opt/kde3/share/icons/*/*/*/*
/opt/kde3/share/mimelnk/application/x-*
/opt/kde3/share/mimelnk/text/x-*
%changelog