File kdeaccessibility4.spec of Package kdeaccessibility4
#
# spec file for package kdeaccessibility4
#
# Copyright (c) 2011 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: kdeaccessibility4
BuildRequires: alsa-devel libkde4-devel oxygen-icon-theme-large sbl
%if %suse_version > 1120
BuildRequires: libspeechd-devel
%else
BuildRequires: speechd-devel
%endif
License: GPLv2+
Group: System/GUI/KDE
Summary: Base Package for kdeaccessibility apps
Url: http://www.kde.org
Version: 4.6.0
Release: 1
Source0: kdeaccessibility-%version.tar.bz2
Patch: 4_5_BRANCH.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Suggests: kmag
Suggests: kmousetool
Suggests: kmouth
Suggests: jovie
Suggests: kaccessible
Suggests: kdeaccessibility4-icons
%description
This package suggests the packages which are built from the
kdeaccessibility module.
%prep
%setup -q -n kdeaccessibility-%version
%patch
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%create_subdir_filelist -d jovie
%create_subdir_filelist -d kmouth
%create_subdir_filelist -d kmag
%create_subdir_filelist -d kmousetool
%create_subdir_filelist -d kaccessible
%makeinstall
rm -rf $RPM_BUILD_ROOT/usr/share/icons/mono
cd ..
%create_exclude_filelist
%suse_update_desktop_file -r kmag Utility Accessibility
%suse_update_desktop_file kmousetool Utility Accessibility
%suse_update_desktop_file kmouth Utility Accessibility
%kde_post_install
for i in {16,22,32,48,64,128}; do
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps
cp /usr/share/icons/oxygen/"$i"x"$i"/apps/preferences-desktop-text-to-speech.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;
done
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf filelists
%package -n kmag
License: GPLv2+
Group: System/GUI/KDE
Summary: Screen Magnifier
Provides: kde4-kmag = 4.3.0
Obsoletes: kde4-kmag < 4.3.0
%kde4_runtime_requires
%description -n kmag
Magnifies a part of the screen.
%post -n kmag -p /sbin/ldconfig
%postun -n kmag -p /sbin/ldconfig
%files -n kmag -f filelists/kmag
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%package -n kmousetool
License: GPLv2+
Group: System/GUI/KDE
Summary: Automatic Mouse Click
Provides: kde4-kmousetool = 4.3.0
Obsoletes: kde4-kmousetool < 4.3.0
%kde4_runtime_requires
%description -n kmousetool
Clicks the mouse for you, reducing hand strain.
%post -n kmousetool -p /sbin/ldconfig
%postun -n kmousetool -p /sbin/ldconfig
%files -n kmousetool -f filelists/kmousetool
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%package -n kmouth
License: GPLv2+
Group: System/GUI/KDE
Summary: Speech Synthesizer Frontend
Provides: kde4-kmouth = 4.3.0
Obsoletes: kde4-kmouth < 4.3.0
%kde4_runtime_requires
%description -n kmouth
The computer "speaks" the entered text for talking with people.
%post -n kmouth -p /sbin/ldconfig
%postun -n kmouth -p /sbin/ldconfig
%files -n kmouth -f filelists/kmouth
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%config %_kde_config_dir/kmouthrc
%package -n jovie
License: GPLv2+
Group: System/GUI/KDE
Summary: Text-to-Speech
Provides: kde4-kttsd = 4.3.0
Obsoletes: kde4-kttsd < 4.3.0
Provides: kttsd = 4.4.85
Obsoletes: kttsd < 4.4.85
%kde4_runtime_requires
%description -n jovie
The KDE Text To Speech Daemon, which can be used from any KDE
application that uses the interface from kdelibs.
%post -n jovie -p /sbin/ldconfig
%postun -n jovie -p /sbin/ldconfig
%files -n jovie -f filelists/jovie
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%_kde4_iconsdir/hicolor/*/apps/preferences-desktop-text-to-speech.*
%dir %_kde4_appsdir/kttsd
%dir %_kde4_appsdir/kttsd/xslt
%package -n kaccessible
License: GPLv2+
Group: System/GUI/KDE
Summary: Accessibility Bridge
%kde4_runtime_requires
%description -n kaccessible
kaccessible implements a QAccessibleBridgePlugin to provide accessibility services like
focus tracking and a screenreader.
%files -n kaccessible -f filelists/kaccessible
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%dir %_kde4_modulesdir/plugins/accessiblebridge
%files -f filelists/exclude
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%_kde4_appsdir/color-schemes
%changelog