2011-07-25 12:39:37 +02:00
|
|
|
#
|
2011-07-25 12:39:52 +02:00
|
|
|
# spec file for package step
|
2011-07-25 12:39:37 +02:00
|
|
|
#
|
2018-11-25 00:45:37 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-07-25 12:39:37 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-25 00:45:37 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-25 12:39:37 +02:00
|
|
|
#
|
|
|
|
|
2017-08-12 01:02:13 +02:00
|
|
|
|
2019-11-29 12:40:56 +01:00
|
|
|
%define kf5_version 5.60.0
|
2017-08-12 01:02:13 +02:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2018-07-28 15:52:17 +02:00
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2018-11-25 00:45:37 +01:00
|
|
|
%bcond_without lang
|
|
|
|
Name: step
|
2019-12-11 14:04:33 +01:00
|
|
|
Version: 19.12.0
|
2018-11-25 00:45:37 +01:00
|
|
|
Release: 0
|
2011-09-19 18:04:57 +02:00
|
|
|
Summary: An interactive physics simulator
|
2018-11-25 00:45:37 +01:00
|
|
|
License: GPL-2.0-or-later
|
2011-07-27 18:05:03 +02:00
|
|
|
Group: Productivity/Scientific/Physics
|
2019-08-15 16:01:25 +02:00
|
|
|
URL: https://edu.kde.org
|
2019-12-11 14:04:33 +01:00
|
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2019-08-15 16:01:25 +02:00
|
|
|
%if %{with lang}
|
2019-12-11 14:04:33 +01:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2019-08-15 16:01:25 +02:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2016-12-03 13:14:55 +01:00
|
|
|
BuildRequires: extra-cmake-modules
|
2013-01-07 11:07:43 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gsl-devel
|
2019-11-29 12:40:56 +01:00
|
|
|
BuildRequires: cmake(KF5Config)
|
|
|
|
BuildRequires: cmake(KF5Crash)
|
|
|
|
BuildRequires: cmake(KF5DocTools)
|
|
|
|
BuildRequires: cmake(KF5KHtml)
|
|
|
|
BuildRequires: cmake(KF5IconThemes)
|
|
|
|
BuildRequires: cmake(KF5NewStuff)
|
|
|
|
BuildRequires: cmake(KF5Plotting)
|
2015-05-11 19:22:33 +02:00
|
|
|
BuildRequires: libeigen3-devel
|
2018-11-25 00:45:37 +01:00
|
|
|
%if %{with lang}
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
%endif
|
2019-04-03 10:53:10 +02:00
|
|
|
BuildRequires: libqalculate-devel
|
2016-12-03 13:14:55 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xz
|
2019-11-29 12:40:56 +01:00
|
|
|
BuildRequires: cmake(Qt5OpenGL)
|
|
|
|
BuildRequires: cmake(Qt5Svg)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
2015-05-11 19:22:33 +02:00
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2017-08-12 01:02:13 +02:00
|
|
|
%if %{with lang}
|
2017-04-20 10:51:23 +02:00
|
|
|
Recommends: %{name}-lang
|
2017-08-12 01:02:13 +02:00
|
|
|
%endif
|
2011-07-25 12:39:37 +02:00
|
|
|
|
|
|
|
%description
|
2018-12-07 17:49:44 +01:00
|
|
|
Step is an interactive physical simulator. The user first places some
|
|
|
|
bodies on the scene, add some forces such as gravity or springs. When
|
|
|
|
the simulation is run, Step shows how the scene will evolve according
|
|
|
|
to the laws of physics. Every property of bodies/forces in the
|
|
|
|
experiment may be changed, even during simulation.
|
2011-07-25 12:39:37 +02:00
|
|
|
|
2017-04-15 15:29:11 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
|
|
|
|
2011-07-25 12:39:37 +02:00
|
|
|
%prep
|
2011-09-19 18:04:57 +02:00
|
|
|
%setup -q
|
2011-07-25 12:39:37 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch ppc ppc64
|
2011-07-27 18:05:03 +02:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
2011-07-25 12:39:37 +02:00
|
|
|
%endif
|
2015-05-11 19:22:33 +02:00
|
|
|
%cmake_kf5 -d build
|
2011-07-25 12:39:37 +02:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2015-05-11 19:22:33 +02:00
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 15:29:11 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name --with-qt
|
2018-11-25 00:45:37 +01:00
|
|
|
%{kf5_find_htmldocs}
|
2017-04-15 15:29:11 +02:00
|
|
|
%endif
|
2015-05-11 19:22:33 +02:00
|
|
|
%suse_update_desktop_file org.kde.%{name} X-KDE-Edu-Teaching
|
2011-07-27 18:05:03 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2011-07-25 12:39:37 +02:00
|
|
|
|
|
|
|
%files
|
2018-11-25 00:45:37 +01:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS ChangeLog README
|
2017-08-12 01:02:13 +02:00
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/step/
|
|
|
|
%config %{_kf5_configdir}/step.knsrc
|
2017-08-05 22:53:11 +02:00
|
|
|
%dir %{_kf5_appstreamdir}
|
|
|
|
%dir %{_kf5_configkcfgdir}
|
2017-08-12 01:02:13 +02:00
|
|
|
%dir %{_kf5_kxmlguidir}/step/
|
2019-09-06 12:15:51 +02:00
|
|
|
%dir %{_kf5_sharedir}/mime/
|
|
|
|
%dir %{_kf5_sharedir}/mime/packages
|
2015-05-11 19:22:33 +02:00
|
|
|
%{_kf5_applicationsdir}/org.kde.step.desktop
|
|
|
|
%{_kf5_appsdir}/step/
|
2017-08-05 22:53:11 +02:00
|
|
|
%{_kf5_appstreamdir}/org.kde.step.appdata.xml
|
2015-05-11 19:22:33 +02:00
|
|
|
%{_kf5_bindir}/step
|
|
|
|
%{_kf5_configkcfgdir}/step.kcfg
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*
|
2019-09-06 12:15:51 +02:00
|
|
|
%{_kf5_sharedir}/mime/packages/org.kde.step.xml
|
2019-11-29 12:40:56 +01:00
|
|
|
%{_kf5_kxmlguidir}/step/stepui.rc
|
2011-07-25 12:39:37 +02:00
|
|
|
|
2017-04-15 15:29:11 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
2018-11-25 00:45:37 +01:00
|
|
|
%license COPYING*
|
2017-07-16 11:41:45 +02:00
|
|
|
%%dir %{_kf5_sharedir}/locale/nn/LC_SCRIPTS/
|
2017-07-16 11:34:55 +02:00
|
|
|
%%dir %{_kf5_sharedir}/locale/nn/LC_SCRIPTS/step
|
2017-07-16 11:24:58 +02:00
|
|
|
%lang(nn) %{_kf5_sharedir}/locale/nn/LC_SCRIPTS/step/step.js
|
2017-04-15 15:29:11 +02:00
|
|
|
%endif
|
|
|
|
|
2011-07-25 12:39:37 +02:00
|
|
|
%changelog
|