1 | Name: kturtle |
---|
2 | Summary: Logo educational programming environment for KDE |
---|
3 | Summary(ja): Logo の教育用プログラミング環境 |
---|
4 | Version: 4.7.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPLv2+ |
---|
8 | Group: Applications/Edutainment |
---|
9 | URL: http://edu.kde.org/parley/ |
---|
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 | KTurtle is an educational programming environment which uses the |
---|
25 | TurtleScript programming language (inspired by Logo) to make programming |
---|
26 | as easy and accessible as possible. |
---|
27 | |
---|
28 | The user issues TurtleScript language commands to control the "turtle", |
---|
29 | which draws on the canvas, making KTurtle suitable for teaching elementary |
---|
30 | mathematics, geometry and programming. |
---|
31 | |
---|
32 | This package is part of the KDE education module. |
---|
33 | |
---|
34 | |
---|
35 | %prep |
---|
36 | %setup -q |
---|
37 | |
---|
38 | %build |
---|
39 | mkdir -p %{_target_platform} |
---|
40 | pushd %{_target_platform} |
---|
41 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
42 | %cmake \ |
---|
43 | -DCMAKE_BUILD_TYPE=release \ |
---|
44 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
45 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
46 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
47 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
48 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
49 | .. |
---|
50 | popd |
---|
51 | |
---|
52 | make %{?_smp_mflags} -C %{_target_platform} |
---|
53 | |
---|
54 | %install |
---|
55 | rm -rf $RPM_BUILD_ROOT |
---|
56 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
57 | |
---|
58 | %clean |
---|
59 | rm -rf $RPM_BUILD_ROOT |
---|
60 | |
---|
61 | %check |
---|
62 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
63 | desktop-file-validate $f |
---|
64 | done |
---|
65 | |
---|
66 | |
---|
67 | %post |
---|
68 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
69 | |
---|
70 | %posttrans |
---|
71 | update-desktop-database -q &> /dev/null ||: |
---|
72 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
73 | |
---|
74 | %postun |
---|
75 | if [ $1 -eq 0 ] ; then |
---|
76 | update-desktop-database -q &> /dev/null ||: |
---|
77 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
78 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
79 | fi |
---|
80 | |
---|
81 | %files |
---|
82 | %defattr(-,root,root) |
---|
83 | %doc COPYING COPYING.DOC |
---|
84 | %{_bindir}/kturtle |
---|
85 | %{_datadir}/applications/kde4/kturtle.desktop |
---|
86 | %{_datadir}/config/*.knsrc |
---|
87 | %{_datadir}/icons/hicolor/*/*/* |
---|
88 | %{_datadir}/kde4/apps/kturtle |
---|
89 | %doc %{_docdir}/HTML/en/kturtle/ |
---|
90 | |
---|
91 | %changelog |
---|
92 | * Wed Aug 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
93 | - split from kdeedu |
---|
94 | |
---|