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
Version:        4.7.2
Release:        1
License:        GPLv2+
Summary:        Base Package for kdeaccessibility apps
Url:            http://www.kde.org
Group:          System/GUI/KDE
Source0:        kdeaccessibility-%{version}.tar.bz2
BuildRequires:  alsa-devel
BuildRequires:  libkde4-devel
BuildRequires:  libspeechd-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  sbl
BuildRequires:  fdupes
Suggests:       jovie
Suggests:       kaccessible
Suggests:       kdeaccessibility4-icons
Suggests:       kmag
Suggests:       kmousetool
Suggests:       kmouth
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package suggests the packages which are built from the
kdeaccessibility module.

%prep
%setup -q -n kdeaccessibility-%{version}

%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
  %make_install
  rm -rf %{buildroot}%{_datadir}/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
  for i in {16,22,32,48,64,128}; do
     mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps
     cp /usr/share/icons/oxygen/"$i"x"$i"/apps/preferences-desktop-text-to-speech.png %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps/;
  done
  %fdupes -s %{buildroot}%{_datadir}
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf %{buildroot}
  rm -rf filelists

%package -n kmag
License:        GPLv2+
Summary:        Screen Magnifier
Group:          System/GUI/KDE
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+
Summary:        Automatic Mouse Click
Group:          System/GUI/KDE
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+
Summary:        Speech Synthesizer Frontend
Group:          System/GUI/KDE
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+
Summary:        Text-to-Speech
Group:          System/GUI/KDE
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+
Summary:        Accessibility Bridge
Group:          System/GUI/KDE
%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

%changelog
openSUSE Build Service is sponsored by