File kdeedu4.spec of Package kdeedu4

#
# spec file for package kdeedu4 (Version 4.4.72svn1115104)
#
# Copyright (c) 2010 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/
#



Name:           kdeedu4
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libattica-devel
%if 0
#arch %ix86
#BuildRequires:  sbig
%endif
%if %suse_version > 1020
BuildRequires:  fdupes
%endif
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        General Data for KDE Education Applications
Url:            http://edu.kde.org
Version:        4.4.99svn1116015
Release:        1
Source0:        kdeedu-%version.tar.bz2
Patch0:         4_5_BRANCH.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Requires:       libkdeedu4
Suggests:       libkdeedu4
Suggests:       parley

%description
This package contains data which is required by the KDE education
library.


Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n kdeedu-%version
%patch0 

%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
export CFLAGS="-fPIC %{optflags}"
export CXXFLAGS="-fPIC %{optflags}"
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
%if 0
  mv $RPM_BUILD_ROOT/usr/share/icons/oxygen/scalable/apps/parley.svgz $RPM_BUILD_ROOT/usr/share/icons/hicolor/scalable/apps/
  mv $RPM_BUILD_ROOT/usr/share/icons/oxygen/128x128/apps/parley.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/128x128/apps/
  mv $RPM_BUILD_ROOT/usr/share/icons/oxygen/16x16/apps/parley.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/16x16/apps/
  mv $RPM_BUILD_ROOT/usr/share/icons/oxygen/32x32/apps/parley.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps/
  mv $RPM_BUILD_ROOT/usr/share/icons/oxygen/48x48/apps/parley.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/
  mv $RPM_BUILD_ROOT/usr/share/icons/oxygen/64x64/apps/parley.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/apps/
%endif
  %create_subdir_filelist -d libkdeedu -v libkdeedu.devel
  %create_subdir_filelist -d parley
  cd ..
%if 0
  sed -ri s,.*/usr/share/icons/oxygen/.*/apps/parley.*,, filelists/parley
%endif
  %create_exclude_filelist
  %suse_update_desktop_file parley        Education Languages
  %kde_post_install
  # no conflict with sbig package
#  rm $RPM_BUILD_ROOT/usr/%_lib/libsbigudrv.*
  %if %suse_version > 1020
  %fdupes -s $RPM_BUILD_ROOT
  %endif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf $RPM_BUILD_ROOT
  rm -rf filelists

%package -n libkdeedu4
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Library for KDE Education Applications
%kde4_runtime_requires

%description -n libkdeedu4
This package contains the KDE education library.



Authors:
--------
    The KDE Team <kde@kde.org>

%post -n libkdeedu4 -p /sbin/ldconfig

%postun -n libkdeedu4 -p /sbin/ldconfig

%files -n libkdeedu4 -f filelists/libkdeedu
%defattr(-,root,root)
#%doc COPYING COPYING.DOC README

%package -n libkdeedu4-devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Library for KDE Education Applications: Build Environment
Requires:       libkdeedu4 = %version kdeedu4 = %version

%description -n libkdeedu4-devel
This package contains all necessary files and libraries needed to
develop KDE education applications.



Authors:
--------
    The KDE Team <kde@kde.org>

%files -n libkdeedu4-devel  -f filelists/libkdeedu.devel
%defattr(-,root,root)
#%doc COPYING COPYING.DOC README
%dir /usr/include/libkdeedu
%_kde4_appsdir/cmake/modules/FindKDEEdu.cmake

%package -n parley
License:        GPLv2+
Group:          Amusements/Teaching/Language
Summary:        Vocabulary Trainer
%kde4_runtime_requires
Requires:       kdeedu4
Provides:       kde4-parley = 4.3.0
Obsoletes:      kde4-parley < 4.3.0

%description -n parley
KVoctrain is a vocabulary trainer for KDE.



Authors:
--------
    The KDE Team <kde@kde.org>

%post -n parley -p /sbin/ldconfig

%postun -n parley -p /sbin/ldconfig

%files -n parley -f filelists/parley
%defattr(-,root,root)
# %doc COPYING COPYING.DOC README
#%if 0
#%_kde4_iconsdir/hicolor/*/apps/parley.*
#%endif



#%files -f filelists/exclude
#%defattr(-,root,root)
#%doc COPYING COPYING.DOC README
#%dir %_kde4_appsdir/libkdeedu
#%_kde4_appsdir/kvtml/en

%changelog