Blob Blame History Raw
Name:           kmouth
Version: 4.7.95
Release: 1%{?dist}
Summary:        A program that speaks for you 

License:        GPLv2+
URL:            http://accessibility.kde.org/
Source0:        ftp://ftp.kde.org/pub/kde/unstable/4.7.90/src/kmouth-%{version}.tar.bz2

BuildRequires:  desktop-file-utils
BuildRequires:  kdelibs4-devel >= %{version}


# when split occured
Conflicts: kdeaccessibility < 1:4.7.80


%description
Program that allows people who have lost their voice to let their
computer speak for them.


%prep
%setup -q


%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd

make %{?_smp_mflags} -C %{_target_platform}


%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}

# hack around HTML doc multilib conflicts
# HTML docs are no longer multilib'd, but meh.  -- Rex
# is this still needed then??? -- Jaroslav
pushd %{buildroot}%{_kde4_docdir}/HTML/en/kmouth
bunzip2 index.cache.bz2
sed -i -e 's!<a name="id[0-9]*"></a>!!g' index.cache
bzip2 -9 index.cache
popd


%check
desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/kmouth.desktop


%post
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :

%postun
if [ $1 -eq 0 ] ; then
  touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null
  gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null
fi

%posttrans
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :


%files
%doc AUTHORS COPYING COPYING.DOC
%{_kde4_bindir}/kmouth
%{_kde4_appsdir}/kmouth/
%{_kde4_configdir}/*rc
%{_kde4_datadir}/applications/kde4/*.desktop
%{_kde4_docdir}/HTML/en/kmouth/
%{_kde4_iconsdir}/hicolor/*/*/*
%{_mandir}/man1/*.1*

%changelog
* Thu Dec 22 2011 Radek Novacek <rnovacek@redhat.com> - 4.7.95-1
- 4.7.95

* Wed Dec 14 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.90-1
- 4.7.90 (beta 2)

* Tue Dec 13 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.80-2
- fixed license comment

* Mon Nov 28 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.80-1
- initial package