source: projects/specs/trunk/k/ktouch/ktouch-vl.spec @ 4743

Revision 4743, 2.4 KB checked in by inagaki, 13 years ago (diff)

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: ktouch
2Summary: Touch typing tutor for KDE
3Summary(ja): KDE 向けタッチタイピング訓練機
4Version: 4.7.0
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/ktouch/
10
11Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
12
13## upstream patches
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: desktop-file-utils
17BuildRequires: kdelibs4-devel >= %{version}
18
19Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
20
21Conflicts: kdeedu4 < 4.6.50
22
23%description
24KTouch is an aid for learning how to type with speed and accuracy. It
25provides a sample text to type and indicates which fingers should be
26used for each key.
27
28A collection of lessons are included for a wide range of different
29languages and keyboard layouts, and typing statistics are used to
30dynamically adjust the level of difficulty.
31
32This package is part of the KDE education module.
33
34%prep
35%setup -q
36
37%build
38mkdir -p %{_target_platform}
39pushd %{_target_platform}
40unset 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    ..
49popd
50
51make %{?_smp_mflags} -C %{_target_platform}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%check
61for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
62    desktop-file-validate $f
63done
64
65
66%post
67touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
68
69%posttrans
70update-desktop-database -q &> /dev/null ||:
71gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
72
73%postun
74if [ $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 ||:
78fi
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
Note: See TracBrowser for help on using the repository browser.