1 | Name: step |
---|
2 | Summary: Interactive physical simulator |
---|
3 | Summary(ja): インタラクティブな物理シミュレータ |
---|
4 | Version: 4.9.1 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPLv2+ |
---|
8 | Group: Applications/Edutainment |
---|
9 | URL: http://edu.kde.org/step/ |
---|
10 | |
---|
11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
12 | |
---|
13 | ## upstream patches |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: desktop-file-utils |
---|
17 | BuildRequires: eigen2-devel |
---|
18 | BuildRequires: gsl-devel |
---|
19 | BuildRequires: kdelibs4-devel >= %{version} |
---|
20 | BuildRequires: libqalculate-devel |
---|
21 | BuildRequires: soprano-devel |
---|
22 | |
---|
23 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
24 | |
---|
25 | Conflicts: kdeedu4 < 4.6.50 |
---|
26 | |
---|
27 | %description |
---|
28 | With Step you can not only learn but feel how physics works. You place some |
---|
29 | bodies on the scene, add some forces such as gravity or springs, then click |
---|
30 | "Simulate" and Step shows you how your scene will evolve according to the |
---|
31 | laws of physics. You can change every property of bodies/forces in your |
---|
32 | experiment (even during simulation) and see how this will change evolution |
---|
33 | of the experiment. |
---|
34 | |
---|
35 | This package is part of the KDE education module. |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | |
---|
41 | %build |
---|
42 | mkdir -p %{_target_platform} |
---|
43 | pushd %{_target_platform} |
---|
44 | %cmake \ |
---|
45 | -DCMAKE_BUILD_TYPE=release \ |
---|
46 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
47 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
48 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
49 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
50 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
51 | .. |
---|
52 | popd |
---|
53 | |
---|
54 | make %{?_smp_mflags} -C %{_target_platform} |
---|
55 | |
---|
56 | %install |
---|
57 | rm -rf $RPM_BUILD_ROOT |
---|
58 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
59 | |
---|
60 | %clean |
---|
61 | rm -rf $RPM_BUILD_ROOT |
---|
62 | |
---|
63 | %check |
---|
64 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
65 | desktop-file-validate $f |
---|
66 | done |
---|
67 | |
---|
68 | |
---|
69 | %post |
---|
70 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
71 | |
---|
72 | %posttrans |
---|
73 | update-desktop-database -q &> /dev/null ||: |
---|
74 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
75 | |
---|
76 | %postun |
---|
77 | if [ $1 -eq 0 ] ; then |
---|
78 | update-desktop-database -q &> /dev/null ||: |
---|
79 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
80 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | %files |
---|
85 | %defattr(-,root,root) |
---|
86 | %doc COPYING COPYING.DOC README |
---|
87 | %{_bindir}/step |
---|
88 | %{_datadir}/applications/kde4/step.desktop |
---|
89 | %{_datadir}/config/step.knsrc |
---|
90 | %{_datadir}/config.kcfg/step.kcfg |
---|
91 | %{_datadir}/icons/hicolor/*/*/* |
---|
92 | %{_datadir}/kde4/apps/step |
---|
93 | %doc %{_docdir}/HTML/en/step/ |
---|
94 | |
---|
95 | %changelog |
---|
96 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
97 | - new upstream release |
---|
98 | |
---|
99 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
100 | - new upstream release |
---|
101 | |
---|
102 | * Wed Aug 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
103 | - split from kdeedu |
---|
104 | |
---|