A new user interface for you! Read more...

File kdeaccessibility3.spec of Package kdeaccessibility3

#
# spec file for package kdeaccessibility3 (Version 3.5.10)
#
# Copyright (c) 2008 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:           kdeaccessibility3
BuildRequires:  festival kdelibs3-devel sbl
License:        GPL-2.0
Group:          System/GUI/KDE
Summary:        Tools for Handicapped People to Use the GUI
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Version:        3.5.10
Release:        11
Url:            http://www.kde.org
Requires:       kdelibs3 
Recommends:     festival epos
BuildRequires:  fdupes
BuildRequires:  libXtst-devel
Source0:        kdeaccessibility-%{version}.tar.bz2
Source1:        kaccessrc
Patch:          3_5_BRANCH.diff
Patch1:         kdeaccessibility3-assert.patch
Patch2:         kdeaccessibility3-alsa-waitforcompletion.patch

%description
KMag: Magnifies a part of the screen. KMouseTool: Clicks the mouse for
you, reducing hand strain. KMouth: The computer "speaks" the entered
text for talking with people. KSayIt: Edit and read documents via KDE
text-to-speech output. KTTSD: The KDE Text To Speech Daemon, which can
be used from any KDE application that uses the interface from kdelibs.

%package icons
License:        GPL-2.0+
Group:          System/GUI/KDE
Summary:        Monochrome icons for KDE
Provides:       kdeaccessibility3:/opt/kde3/share/icons/mono/index.theme

%description icons
A monochrome KDE icon set for visually impaired people.

%prep
%setup -q -n kdeaccessibility-%{version}
%patch
%patch1
%patch2 -p1
. /etc/opt/kde3/common_options
update_admin

%build
. /etc/opt/kde3/common_options
export LDFLAGS="$LDFLAGS -lasound"
export LIBS="$LIBS -lasound"
./configure $configkde \
  --enable-kttsd-festival \
  --with-festival-libraries=%_libdir \
  --with-speech_tools-libraries=%_libdir
make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
install -m 0644 %SOURCE1 \
        $RPM_BUILD_ROOT/opt/kde3/share/config/kaccessrc
 %fdupes $RPM_BUILD_ROOT/opt/kde3/share
%suse_update_desktop_file -r kmag      Utility Accessibility
%suse_update_desktop_file kmousetool   Utility Accessibility
%suse_update_desktop_file kmouth       Utility Accessibility
%suse_update_desktop_file kttsmgr      Utility Accessibility
%suse_update_desktop_file ksayit       Utility Accessibility
%suse_update_desktop_file kcmkttsd     Utility Accessibility
kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files icons
%defattr(-,root,root)
/opt/kde3/share/icons/mono

%files
%defattr(-,root,root)
%dir /opt/kde3/share/apps/kttsd
/opt/kde3/bin/*
/opt/kde3/include/ksayit_fxplugin.h
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/kmag
/opt/kde3/share/apps/kmou*
/opt/kde3/share/apps/kbstateapplet
/opt/kde3/share/apps/kicker
/opt/kde3/share/apps/ksayit
/opt/kde3/share/apps/kttsd/hadifix
/opt/kde3/share/apps/kttsd/sbd
/opt/kde3/share/apps/kttsd/xslt
/opt/kde3/share/apps/kttsd/xmltransformer
/opt/kde3/share/apps/kttsd/stringreplacer
/opt/kde3/share/apps/kttsd/festival*
/opt/kde3/share/apps/kttsd/kcmkttsd_testmessage.desktop
/opt/kde3/share/apps/kttsd/talkerchooser
/opt/kde3/share/apps/ktexteditor_kttsd
%config /opt/kde3/share/config/*rc
%doc %lang(en) /opt/kde3/share/doc/HTML/en/*
%exclude /opt/kde3/share/icons/mono
/opt/kde3/share/icons/*
/opt/kde3/%_lib/kde3/kbstate_panelapplet.*
/opt/kde3/%_lib/kde3/kcm_kttsd.*
/opt/kde3/%_lib/kde3/libkttsd_artsplugin.*
/opt/kde3/%_lib/kde3/libkttsd_commandplugin.*
/opt/kde3/%_lib/kde3/libkttsd_eposplugin.*
/opt/kde3/%_lib/kde3/libkttsd_fliteplugin.*
/opt/kde3/%_lib/kde3/libkttsd_festivalintplugin.*
/opt/kde3/%_lib/kde3/libkttsd_freettsplugin.*
/opt/kde3/%_lib/kde3/libkttsd_hadifixplugin.*
/opt/kde3/%_lib/kde3/libkttsd_stringreplacerplugin.*
/opt/kde3/%_lib/kde3/libkttsd_xmltransformerplugin.*
/opt/kde3/%_lib/kde3/libkttsd_sbdplugin.*
/opt/kde3/%_lib/kde3/libkttsd_talkerchooserplugin.*
/opt/kde3/%_lib/kde3/libkttsd_alsaplugin.*
/opt/kde3/%_lib/kde3/ktexteditor_kttsd.*
/opt/kde3/%_lib/kde3/libkttsjobmgrpart.*
/opt/kde3/%_lib/lib*
/opt/kde3/share/services/ktexteditor_kttsd.desktop
/opt/kde3/share/services/kttsd.desktop
/opt/kde3/share/services/kttsd_artsplugin.desktop
/opt/kde3/share/services/kttsd_commandplugin.desktop
/opt/kde3/share/services/kttsd_eposplugin.desktop
/opt/kde3/share/services/kttsd_fliteplugin.desktop
/opt/kde3/share/services/kttsd_freettsplugin.desktop
/opt/kde3/share/services/kttsd_hadifixplugin.desktop
/opt/kde3/share/services/kttsd_stringreplacerplugin.desktop
/opt/kde3/share/services/kttsd_sbdplugin.desktop
/opt/kde3/share/services/kttsd_xmltransformerplugin.desktop
/opt/kde3/share/services/kttsd_festivalintplugin.desktop
/opt/kde3/share/services/kttsd_talkerchooserplugin.desktop
/opt/kde3/share/services/kttsd_alsaplugin.desktop
/opt/kde3/share/services/kttsjobmgr.desktop
/opt/kde3/share/servicetypes/*

%changelog