[4744] | 1 | Name: step |
---|
| 2 | Summary: Interactive physical simulator |
---|
| 3 | Summary(ja): インタラクティブな物理シミュレータ |
---|
| 4 | Version: 4.7.0 |
---|
| 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.bz2 |
---|
| 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 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 45 | %cmake \ |
---|
| 46 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 47 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 48 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 49 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 50 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 51 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 52 | .. |
---|
| 53 | popd |
---|
| 54 | |
---|
| 55 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 60 | |
---|
| 61 | %clean |
---|
| 62 | rm -rf $RPM_BUILD_ROOT |
---|
| 63 | |
---|
| 64 | %check |
---|
| 65 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 66 | desktop-file-validate $f |
---|
| 67 | done |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %post |
---|
| 71 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 72 | |
---|
| 73 | %posttrans |
---|
| 74 | update-desktop-database -q &> /dev/null ||: |
---|
| 75 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 76 | |
---|
| 77 | %postun |
---|
| 78 | if [ $1 -eq 0 ] ; then |
---|
| 79 | update-desktop-database -q &> /dev/null ||: |
---|
| 80 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 81 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 82 | fi |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %files |
---|
| 86 | %defattr(-,root,root) |
---|
| 87 | %doc COPYING COPYING.DOC README |
---|
| 88 | %{_bindir}/step |
---|
| 89 | %{_datadir}/applications/kde4/step.desktop |
---|
| 90 | %{_datadir}/config/step.knsrc |
---|
| 91 | %{_datadir}/config.kcfg/step.kcfg |
---|
| 92 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 93 | %{_datadir}/kde4/apps/step |
---|
| 94 | %doc %{_docdir}/HTML/en/step/ |
---|
| 95 | |
---|
| 96 | %changelog |
---|
| 97 | * Wed Aug 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 98 | - split from kdeedu |
---|
| 99 | |
---|