source: projects/specs/trunk/s/step/step-vl.spec @ 4744

Revision 4744, 2.6 KB checked in by inagaki, 13 years ago (diff)
Line 
1Name: step
2Summary: Interactive physical simulator
3Summary(ja): インタラクティブな物理シミュレータ
4Version: 4.7.0
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/step/
10
11Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
12
13## upstream patches
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: desktop-file-utils
17BuildRequires: eigen2-devel
18BuildRequires: gsl-devel
19BuildRequires: kdelibs4-devel >= %{version}
20BuildRequires: libqalculate-devel
21BuildRequires: soprano-devel
22
23Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
24
25Conflicts: kdeedu4 < 4.6.50
26
27%description
28With Step you can not only learn but feel how physics works. You place some
29bodies 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
31laws of physics. You can change every property of bodies/forces in your
32experiment (even during simulation) and see how this will change evolution
33of the experiment.
34
35This package is part of the KDE education module.
36
37
38%prep
39%setup -q
40
41%build
42mkdir -p %{_target_platform}
43pushd %{_target_platform}
44unset 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    ..
53popd
54
55make %{?_smp_mflags} -C %{_target_platform}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%check
65for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
66    desktop-file-validate $f
67done
68
69
70%post
71touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
72
73%posttrans
74update-desktop-database -q &> /dev/null ||:
75gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
76
77%postun
78if [ $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 ||:
82fi
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
Note: See TracBrowser for help on using the repository browser.