]> git.pld-linux.org Git - SPECS.git/blob - kde4-step.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / kde4-step.spec
1 %bcond_without  doc             # build handbooks
2
3 %define         _state          stable
4 %define         orgname         step
5
6 %ifarch %{ix86}
7 %undefine       with_doc
8 %endif
9 Summary:        K Desktop Environment - Interactive Physical Simulator
10 Summary(pl.UTF-8):      K Desktop Environment - interaktywny symulator fizyczny
11 Name:           kde4-step
12 Version:        4.14.3
13 Release:        9
14 License:        GPL
15 Group:          X11/Applications/Graphics
16 Source0:        http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
17 # Source0-md5:  9e021e50310f0e99bd621d57ab07b7ef
18 Patch0:         no-doc.patch
19 URL:            http://www.kde.org/
20 BuildRequires:  cln-devel
21 BuildRequires:  eigen
22 BuildRequires:  gsl-devel
23 BuildRequires:  kde4-kdelibs-devel >= %{version}
24 BuildRequires:  libqalculate-devel >= 0.9.5
25 Obsoletes:      kde4-kdeedu-step < 4.7.0
26 Obsoletes:      step <= 4.8.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Step is an interactive physical simulator.
31
32 It works like this: you place some bodies on the scene, add some
33 forces such as gravity or springs, then click "Simulate" and Step
34 shows you how your scene will evolve according to the laws of physics.
35
36 You can change every property of bodies/forces in your experiment
37 (even during simulation) and see how this will change evolution of the
38 experiment. With Step you can not only learn but feel how physics
39 works!
40
41 %description -l pl.UTF-8
42 Step to interaktywny symulator fizyczny.
43
44 Działa w ten sposób: umieszcza się na scenie jakieś ciała, dodaje siły
45 takie jak grawitacja czy sprężyny, a następnie wciska przycisk
46 "Symuluj" - a Step pokazuje, jak scena będzie się zmieniała zgodnie z
47 prawami fizyki.
48
49 W ramach eksperymentu można zmieniać każdą właściwość ciał/sił (nawet
50 podczas symulacji) i obserwować, jak zmieni to jego przebieg. Przy
51 użyciu Stepa można nie tylko nauczyć się, ale i poczuć, jak działa
52 fizyka.
53
54 %prep
55 %setup -q -n %{orgname}-%{version}
56 %{!?with_doc:%patch0 -p1}
57
58 %build
59 install -d build
60 cd build
61
62 export CXXFLAGS="%{rpmcflags} -fpermissive"
63 %cmake \
64         ..
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} -C build/ install \
71         DESTDIR=$RPM_BUILD_ROOT \
72         kde_htmldir=%{_kdedocdir}
73
74 %if %{with doc}
75 %find_lang %{orgname} --with-kde
76 %endif
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files %{?with_doc:-f %{orgname}.lang}
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/step
84 %{_datadir}/appdata/step.appdata.xml
85 %{_datadir}/apps/step
86 %{_datadir}/config.kcfg/step.kcfg
87 %{_datadir}/config/step.knsrc
88 %{_desktopdir}/kde4/step.desktop
89 %{_iconsdir}/hicolor/*/apps/step.png
This page took 0.325937 seconds and 3 git commands to generate.