]>
Commit | Line | Data |
---|---|---|
08619aff | 1 | %define kdeappsver 21.12.0 |
fcbccbcb | 2 | %define kframever 5.56.0 |
0962c153 | 3 | %define qtver 5.9.0 |
9a07b1d5 WF |
4 | %define kaname step |
5 | Summary: step | |
6 | Name: ka5-%{kaname} | |
08619aff WF |
7 | Version: 21.12.0 |
8 | Release: 1 | |
9a07b1d5 WF |
9 | License: GPL v2+/LGPL v2.1+ |
10 | Group: X11/Applications | |
d9da16fd | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
08619aff | 12 | # Source0-md5: 05b83039b10b482a67c1e6888fe5789c |
9a07b1d5 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
0962c153 WF |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
16 | BuildRequires: Qt5OpenGL-devel | |
17 | BuildRequires: Qt5Svg-devel | |
18 | BuildRequires: Qt5Test-devel | |
19 | BuildRequires: Qt5Widgets-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Xml-devel | |
9a07b1d5 | 21 | BuildRequires: cmake >= 2.8.12 |
0962c153 WF |
22 | BuildRequires: eigen3 >= 3.2.2 |
23 | BuildRequires: gettext-devel | |
fcbccbcb WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
26 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
27 | BuildRequires: kf5-khtml-devel >= %{kframever} | |
28 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
29 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
30 | BuildRequires: kf5-kplotting-devel >= %{kframever} | |
edf74d46 | 31 | BuildRequires: ninja |
9a07b1d5 WF |
32 | BuildRequires: qt5-build >= %{qtver} |
33 | BuildRequires: rpmbuild(macros) >= 1.164 | |
34 | BuildRequires: shared-mime-info | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
0962c153 WF |
40 | Step is an interactive physical simulator. It allows you to explore |
41 | the physical world through simulations. | |
42 | ||
43 | Features | |
44 | ||
45 | - Classical mechanical simulation in two dimensions | |
46 | - Particles, springs with damping, gravitational and coulomb forces | |
47 | - Rigid bodies | |
48 | - Collision detection (currently only discrete) and handling | |
49 | - Soft (deformable) bodies simulated as user-editable | |
50 | particles-springs system, sound waves | |
51 | - Molecular dynamics (currently using Lennard-Jones potential): gas | |
52 | and liquid, condensation and evaporation, calculation of macroscopic | |
53 | quantities and their variances | |
54 | - Units conversion and expression calculation: you can enter something | |
55 | like "(2 days + 3 hours) * 80 km/h" and it will be accepted as | |
56 | distance value (requires libqalculate) | |
57 | - Errors calculation and propagation: you can enter values like "1.3 ± | |
58 | 0.2" for any property and errors for all dependent properties will be | |
59 | calculated using statistical formulas | |
60 | - Solver error estimation: errors introduced by the solver is | |
61 | calculated and added to user-entered errors | |
62 | - Several different solvers: up to 8th order, explicit and implicit, | |
63 | with or without adaptive timestep (most of the solvers require the GSL | |
64 | library) | |
65 | - Controller tool to easily control properties during simulation (even | |
66 | with custom keyboard shortcuts) | |
67 | - Tools to visualize results: graph, meter, tracer | |
68 | - Context information for all objects, integrated wikipedia browser | |
69 | - Collection of example experiments, more can be downloaded with | |
70 | KNewStuff | |
71 | - Integrated tutorials | |
9a07b1d5 WF |
72 | |
73 | %prep | |
74 | %setup -q -n %{kaname}-%{version} | |
75 | ||
76 | %build | |
77 | install -d build | |
78 | cd build | |
79 | %cmake \ | |
edf74d46 | 80 | -G Ninja \ |
fcbccbcb | 81 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
9a07b1d5 WF |
82 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
83 | .. | |
edf74d46 | 84 | %ninja_build |
9a07b1d5 WF |
85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
edf74d46 | 88 | %ninja_install -C build |
9a07b1d5 | 89 | |
fcbccbcb | 90 | %find_lang %{kaname} --all-name --with-kde --with-qm |
9a07b1d5 WF |
91 | |
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %files -f %{kaname}.lang | |
96 | %defattr(644,root,root,755) | |
9a07b1d5 WF |
97 | %attr(755,root,root) %{_bindir}/step |
98 | %{_desktopdir}/org.kde.step.desktop | |
99 | %{_datadir}/config.kcfg/step.kcfg | |
100 | %{_iconsdir}/hicolor/128x128/apps/step.png | |
101 | %{_iconsdir}/hicolor/16x16/apps/step.png | |
102 | %{_iconsdir}/hicolor/22x22/actions/pointer.png | |
103 | %{_iconsdir}/hicolor/22x22/actions/step_object_Anchor.png | |
104 | %{_iconsdir}/hicolor/22x22/actions/step_object_Box.png | |
105 | %{_iconsdir}/hicolor/22x22/actions/step_object_ChargedParticle.png | |
106 | %{_iconsdir}/hicolor/22x22/actions/step_object_CircularMotor.png | |
107 | %{_iconsdir}/hicolor/22x22/actions/step_object_Controller.png | |
108 | %{_iconsdir}/hicolor/22x22/actions/step_object_CoulombForce.png | |
109 | %{_iconsdir}/hicolor/22x22/actions/step_object_Disk.png | |
110 | %{_iconsdir}/hicolor/22x22/actions/step_object_Gas.png | |
111 | %{_iconsdir}/hicolor/22x22/actions/step_object_GasParticle.png | |
112 | %{_iconsdir}/hicolor/22x22/actions/step_object_Graph.png | |
113 | %{_iconsdir}/hicolor/22x22/actions/step_object_GravitationForce.png | |
114 | %{_iconsdir}/hicolor/22x22/actions/step_object_LinearMotor.png | |
115 | %{_iconsdir}/hicolor/22x22/actions/step_object_Meter.png | |
116 | %{_iconsdir}/hicolor/22x22/actions/step_object_Note.png | |
117 | %{_iconsdir}/hicolor/22x22/actions/step_object_Particle.png | |
118 | %{_iconsdir}/hicolor/22x22/actions/step_object_Pin.png | |
119 | %{_iconsdir}/hicolor/22x22/actions/step_object_Polygon.png | |
120 | %{_iconsdir}/hicolor/22x22/actions/step_object_Rope.png | |
121 | %{_iconsdir}/hicolor/22x22/actions/step_object_SoftBody.png | |
122 | %{_iconsdir}/hicolor/22x22/actions/step_object_Spring.png | |
123 | %{_iconsdir}/hicolor/22x22/actions/step_object_Stick.png | |
124 | %{_iconsdir}/hicolor/22x22/actions/step_object_Tracer.png | |
125 | %{_iconsdir}/hicolor/22x22/actions/step_object_WeightForce.png | |
126 | %{_iconsdir}/hicolor/22x22/apps/step.png | |
127 | %{_iconsdir}/hicolor/32x32/apps/step.png | |
128 | %{_iconsdir}/hicolor/48x48/apps/step.png | |
129 | %{_iconsdir}/hicolor/64x64/apps/step.png | |
130 | %{_datadir}/kxmlgui5/step | |
131 | %{_datadir}/metainfo/org.kde.step.appdata.xml | |
132 | %{_datadir}/step | |
d9da16fd WF |
133 | %{_datadir}/mime/packages/org.kde.step.xml |
134 | %{_datadir}/knsrcfiles/step.knsrc |