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

Revision 10563, 3.5 KB checked in by Takemikaduchi, 8 years ago (diff)

rebuild with gcc-5.4.0

Line 
1Name: ktouch
2Summary: Touch typing tutor for KDE
3Summary(ja): KDE 向けタッチタイピング訓練機
4Version: 4.14.3
5Release: 2%{?_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
23Vendor: Project Vine
24Distribution: Vine Linux
25
26%description
27KTouch is an aid for learning how to type with speed and accuracy. It
28provides a sample text to type and indicates which fingers should be
29used for each key.
30
31A collection of lessons are included for a wide range of different
32languages and keyboard layouts, and typing statistics are used to
33dynamically adjust the level of difficulty.
34
35This package is part of the KDE education module.
36
37%prep
38%setup -q
39
40%build
41mkdir -p %{_target_platform}
42pushd %{_target_platform}
43%cmake \
44    -DCMAKE_BUILD_TYPE=release \
45    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
46    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
47    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
48    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
49    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
50    ..
51popd
52
53make %{?_smp_mflags} -C %{_target_platform}
54
55%install
56rm -rf $RPM_BUILD_ROOT
57make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%check
63for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
64    desktop-file-validate $f
65done
66
67
68%post
69touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
70
71%posttrans
72update-desktop-database -q &> /dev/null ||:
73gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
74
75%postun
76if [ $1 -eq 0 ] ; then
77    update-desktop-database -q &> /dev/null ||:
78    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
79    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
80fi
81
82%files
83%defattr(-,root,root)
84%doc COPYING COPYING.DOC
85%{_bindir}/ktouch
86%{_datadir}/appdata/ktouch.appdata.xml
87%{_datadir}/applications/kde4/ktouch.desktop
88%{_datadir}/config.kcfg/ktouch.kcfg
89%{_datadir}/icons/hicolor/*/*/*
90%{_datadir}/kde4/apps/ktouch
91%{_mandir}/man1/ktouch*
92%doc %{_docdir}/HTML/en/ktouch/
93
94%changelog
95* Fri Jul 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
96- rebuild with gcc-5.4.0
97
98* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
99- new upstream release
100
101* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
102- new upstream release
103
104* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
105- new upstream release
106
107* Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
108- new upstream release
109
110* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
111- new upstream release
112
113* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
114- new upstream release
115
116* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
117- new upstream release
118
119* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
120- new upstream release
121
122* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
123- new upstream release
124
125* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
126- new upstream release
127
128* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
129- new upstream release
130
131* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
132- split from kdeedu
133
Note: See TracBrowser for help on using the repository browser.