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

Revision 6725, 2.4 KB checked in by Takemikaduchi, 12 years ago (diff)

KDE-4.9.0

Line 
1Name: ktouch
2Summary: Touch typing tutor for KDE
3Summary(ja): KDE 向けタッチタイピング訓練機
4Version: 4.9.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.xz
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}
40%cmake \
41    -DCMAKE_BUILD_TYPE=release \
42    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
43    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
44    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
45    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
46    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
47    ..
48popd
49
50make %{?_smp_mflags} -C %{_target_platform}
51
52%install
53rm -rf $RPM_BUILD_ROOT
54make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%check
60for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
61    desktop-file-validate $f
62done
63
64
65%post
66touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
67
68%posttrans
69update-desktop-database -q &> /dev/null ||:
70gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
71
72%postun
73if [ $1 -eq 0 ] ; then
74    update-desktop-database -q &> /dev/null ||:
75    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
76    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
77fi
78
79%files
80%defattr(-,root,root)
81%doc COPYING COPYING.DOC
82%{_bindir}/ktouch
83%{_datadir}/applications/kde4/ktouch.desktop
84%{_datadir}/config.kcfg/ktouch.kcfg
85%{_datadir}/icons/hicolor/*/*/*
86%{_datadir}/kde4/apps/ktouch
87%{_mandir}/man1/ktouch*
88%doc %{_docdir}/HTML/en/ktouch/
89
90%changelog
91* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
92- new upstream release
93
94* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
95- split from kdeedu
96
Note: See TracBrowser for help on using the repository browser.