[4743] | 1 | Name: ktouch |
---|
| 2 | Summary: Touch typing tutor for KDE |
---|
| 3 | Summary(ja): KDE 向けタッチタイピング訓練機 |
---|
| 4 | Version: 4.7.0 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2+ |
---|
| 8 | Group: Applications/Edutainment |
---|
| 9 | URL: http://edu.kde.org/ktouch/ |
---|
| 10 | |
---|
| 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
| 12 | |
---|
| 13 | ## upstream patches |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: desktop-file-utils |
---|
| 17 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 18 | |
---|
| 19 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 20 | |
---|
| 21 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | KTouch is an aid for learning how to type with speed and accuracy. It |
---|
| 25 | provides a sample text to type and indicates which fingers should be |
---|
| 26 | used for each key. |
---|
| 27 | |
---|
| 28 | A collection of lessons are included for a wide range of different |
---|
| 29 | languages and keyboard layouts, and typing statistics are used to |
---|
| 30 | dynamically adjust the level of difficulty. |
---|
| 31 | |
---|
| 32 | This package is part of the KDE education module. |
---|
| 33 | |
---|
| 34 | %prep |
---|
| 35 | %setup -q |
---|
| 36 | |
---|
| 37 | %build |
---|
| 38 | mkdir -p %{_target_platform} |
---|
| 39 | pushd %{_target_platform} |
---|
| 40 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 41 | %cmake \ |
---|
| 42 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 43 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 44 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 45 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 46 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 47 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 48 | .. |
---|
| 49 | popd |
---|
| 50 | |
---|
| 51 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 52 | |
---|
| 53 | %install |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | |
---|
| 60 | %check |
---|
| 61 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 62 | desktop-file-validate $f |
---|
| 63 | done |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %post |
---|
| 67 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 68 | |
---|
| 69 | %posttrans |
---|
| 70 | update-desktop-database -q &> /dev/null ||: |
---|
| 71 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 72 | |
---|
| 73 | %postun |
---|
| 74 | if [ $1 -eq 0 ] ; then |
---|
| 75 | update-desktop-database -q &> /dev/null ||: |
---|
| 76 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 77 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 78 | fi |
---|
| 79 | |
---|
| 80 | %files |
---|
| 81 | %defattr(-,root,root) |
---|
| 82 | %doc COPYING COPYING.DOC |
---|
| 83 | %{_bindir}/ktouch |
---|
| 84 | %{_datadir}/applications/kde4/ktouch.desktop |
---|
| 85 | %{_datadir}/config.kcfg/ktouch.kcfg |
---|
| 86 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 87 | %{_datadir}/kde4/apps/ktouch |
---|
| 88 | %{_mandir}/man1/ktouch* |
---|
| 89 | %doc %{_docdir}/HTML/en/ktouch/ |
---|
| 90 | |
---|
| 91 | %changelog |
---|
| 92 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 93 | - split from kdeedu |
---|
| 94 | |
---|