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