[6725] | 1 | Name: jovie |
---|
| 2 | Summary: KDE Text-to-Speech Daemon |
---|
| 3 | Summary(ja): KDE 向けのテキスト読み上げ用デーモン |
---|
[6899] | 4 | Version: 4.9.2 |
---|
[6725] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2 |
---|
| 8 | Group: Applications/Accessories |
---|
| 9 | URL: http://www.kde.org/ |
---|
| 10 | |
---|
| 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: desktop-file-utils |
---|
| 16 | BuildRequires: speech-dispatcher-devel |
---|
| 17 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 18 | BuildRequires: soprano-devel |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | Jovie -- KDE Text-to-Speech -- is a subsystem within the KDE desktop |
---|
| 22 | for conversion of text to audible speech. Jovie is currently under |
---|
| 23 | development and aims to become the standard subsystem for all KDE |
---|
| 24 | applications to provide speech output. |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -q |
---|
| 29 | |
---|
| 30 | %build |
---|
| 31 | mkdir -p %{_target_platform} |
---|
| 32 | pushd %{_target_platform} |
---|
| 33 | %cmake \ |
---|
| 34 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 35 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 36 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 37 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 38 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 39 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 40 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 41 | .. |
---|
| 42 | popd |
---|
| 43 | |
---|
| 44 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 50 | |
---|
| 51 | pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en/jovie |
---|
| 52 | bunzip2 index.cache.bz2 |
---|
| 53 | sed -i -e 's!<a name="id[0-9]*"></a>!!g' index.cache |
---|
| 54 | bzip2 -9 index.cache |
---|
| 55 | popd |
---|
| 56 | |
---|
| 57 | # unpackaged files |
---|
| 58 | rm -vf $RPM_BUILD_ROOT%{_libdir}/libkttsd.so |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %check |
---|
| 62 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 63 | desktop-file-validate $f |
---|
| 64 | done |
---|
| 65 | |
---|
| 66 | %clean |
---|
| 67 | rm -rf $RPM_BUILD_ROOT |
---|
| 68 | |
---|
| 69 | %post |
---|
| 70 | /sbin/ldconfig |
---|
| 71 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 72 | |
---|
| 73 | %posttrans |
---|
| 74 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 75 | |
---|
| 76 | %postun |
---|
| 77 | /sbin/ldconfig |
---|
| 78 | if [ $1 -eq 0 ] ; then |
---|
| 79 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
| 80 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null |
---|
| 81 | fi |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %files |
---|
| 85 | %defattr(-,root,root) |
---|
| 86 | %doc COPYING COPYING.DOC |
---|
| 87 | %{_bindir}/%{name} |
---|
| 88 | %{_libdir}/libkttsd.so.* |
---|
| 89 | %{_libdir}/kde4/*.so |
---|
| 90 | %{_datadir}/applications/kde4/jovieapp.desktop |
---|
| 91 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 92 | %{_datadir}/kde4/apps/%{name} |
---|
| 93 | %{_datadir}/kde4/apps/kttsd |
---|
| 94 | %{_datadir}/kde4/services/*.desktop |
---|
| 95 | %{_datadir}/kde4/servicetypes/*.desktop |
---|
| 96 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %changelog |
---|
[6899] | 100 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 101 | - new upstream release |
---|
| 102 | |
---|
[6797] | 103 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 104 | - new upstream release |
---|
| 105 | |
---|
[6725] | 106 | * Sat Aug 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 107 | - initial build |
---|