[6725] | 1 | Name: kmouth |
---|
| 2 | Summary: KDE Speech Synthesizer Frontend |
---|
| 3 | Summary(ja): KDE 向けピーチシンセサイザーフロントエンド |
---|
[7294] | 4 | Version: 4.9.5 |
---|
[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: kdelibs4-devel >= %{version} |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | kmag is a screen magnifier. |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | %prep |
---|
| 23 | %setup -q |
---|
| 24 | |
---|
| 25 | %build |
---|
| 26 | mkdir -p %{_target_platform} |
---|
| 27 | pushd %{_target_platform} |
---|
| 28 | %cmake \ |
---|
| 29 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 30 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 31 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 32 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 33 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 34 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 35 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 36 | .. |
---|
| 37 | popd |
---|
| 38 | |
---|
| 39 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %install |
---|
| 43 | rm -rf $RPM_BUILD_ROOT |
---|
| 44 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 45 | |
---|
| 46 | pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en/%{name} |
---|
| 47 | bunzip2 index.cache.bz2 |
---|
| 48 | sed -i -e 's!<a name="id[0-9]*"></a>!!g' index.cache |
---|
| 49 | bzip2 -9 index.cache |
---|
| 50 | popd |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %check |
---|
| 54 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 55 | desktop-file-validate $f |
---|
| 56 | done |
---|
| 57 | |
---|
| 58 | %clean |
---|
| 59 | rm -rf $RPM_BUILD_ROOT |
---|
| 60 | |
---|
| 61 | %post |
---|
| 62 | /sbin/ldconfig |
---|
| 63 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 64 | |
---|
| 65 | %posttrans |
---|
| 66 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 67 | |
---|
| 68 | %postun |
---|
| 69 | /sbin/ldconfig |
---|
| 70 | if [ $1 -eq 0 ] ; then |
---|
| 71 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
| 72 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null |
---|
| 73 | fi |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %files |
---|
| 77 | %defattr(-,root,root) |
---|
| 78 | %doc COPYING COPYING.DOC |
---|
| 79 | %{_bindir}/%{name} |
---|
| 80 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 81 | %config %{_datadir}/config/* |
---|
| 82 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 83 | %{_datadir}/kde4/apps/%{name} |
---|
| 84 | %doc %{_docdir}/HTML/en/%{name}/ |
---|
| 85 | %{_mandir}/man1/%{name}.1.gz |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %changelog |
---|
[7294] | 89 | * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 90 | - new upstream release |
---|
| 91 | |
---|
[7105] | 92 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 93 | - new upstream release |
---|
| 94 | |
---|
[6899] | 95 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 96 | - new upstream release |
---|
| 97 | |
---|
[6797] | 98 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 99 | - new upstream release |
---|
| 100 | |
---|
[6725] | 101 | * Sat Aug 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 102 | - initial build |
---|