2011-07-25 10:39:37 +00:00
|
|
|
#
|
2011-07-25 10:39:52 +00:00
|
|
|
# spec file for package step
|
2011-07-25 10:39:37 +00:00
|
|
|
#
|
2018-11-24 23:45:37 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-07-25 10:39:37 +00: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-24 23:45:37 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-25 10:39:37 +00:00
|
|
|
#
|
|
|
|
|
2017-08-11 23:02:13 +00:00
|
|
|
|
2019-11-29 11:40:56 +00:00
|
|
|
%define kf5_version 5.60.0
|
2017-08-11 23:02:13 +00:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2018-07-28 13:52:17 +00:00
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2018-11-24 23:45:37 +00:00
|
|
|
%bcond_without lang
|
|
|
|
Name: step
|
2019-11-29 11:40:56 +00:00
|
|
|
Version: 19.11.80
|
2018-11-24 23:45:37 +00:00
|
|
|
Release: 0
|
2011-09-19 16:04:57 +00:00
|
|
|
Summary: An interactive physics simulator
|
2018-11-24 23:45:37 +00:00
|
|
|
License: GPL-2.0-or-later
|
2011-07-27 16:05:03 +00:00
|
|
|
Group: Productivity/Scientific/Physics
|
2019-08-15 14:01:25 +00:00
|
|
|
URL: https://edu.kde.org
|
2019-11-29 11:40:56 +00:00
|
|
|
Source: https://download.kde.org/unstable/applications/%{version}/src/%{name}-%{version}.tar.xz
|
2019-08-15 14:01:25 +00:00
|
|
|
%if %{with lang}
|
2019-11-29 11:40:56 +00:00
|
|
|
Source1: https://download.kde.org/unstable/applications/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2019-08-15 14:01:25 +00:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2016-12-03 12:14:55 +00:00
|
|
|
BuildRequires: extra-cmake-modules
|
2013-01-07 10:07:43 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gsl-devel
|
2019-11-29 11:40:56 +00: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 17:22:33 +00:00
|
|
|
BuildRequires: libeigen3-devel
|
2018-11-24 23:45:37 +00:00
|
|
|
%if %{with lang}
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
%endif
|
2019-04-03 08:53:10 +00:00
|
|
|
BuildRequires: libqalculate-devel
|
2016-12-03 12:14:55 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xz
|
2019-11-29 11:40:56 +00:00
|
|
|
BuildRequires: cmake(Qt5OpenGL)
|
|
|
|
BuildRequires: cmake(Qt5Svg)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
2015-05-11 17:22:33 +00:00
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2017-08-11 23:02:13 +00:00
|
|
|
%if %{with lang}
|
2017-04-20 08:51:23 +00:00
|
|
|
Recommends: %{name}-lang
|
2017-08-11 23:02:13 +00:00
|
|
|
%endif
|
2011-07-25 10:39:37 +00:00
|
|
|
|
|
|
|
%description
|
2018-12-07 16:49:44 +00: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 10:39:37 +00:00
|
|
|
|
2017-04-15 13:29:11 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
|
|
|
|
2011-07-25 10:39:37 +00:00
|
|
|
%prep
|
2011-09-19 16:04:57 +00:00
|
|
|
%setup -q
|
2011-07-25 10:39:37 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch ppc ppc64
|
2011-07-27 16:05:03 +00:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
2011-07-25 10:39:37 +00:00
|
|
|
%endif
|
2015-05-11 17:22:33 +00:00
|
|
|
%cmake_kf5 -d build
|
2011-07-25 10:39:37 +00:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2015-05-11 17:22:33 +00:00
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 13:29:11 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name --with-qt
|
2018-11-24 23:45:37 +00:00
|
|
|
%{kf5_find_htmldocs}
|
2017-04-15 13:29:11 +00:00
|
|
|
%endif
|
2015-05-11 17:22:33 +00:00
|
|
|
%suse_update_desktop_file org.kde.%{name} X-KDE-Edu-Teaching
|
2011-07-27 16:05:03 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2011-07-25 10:39:37 +00:00
|
|
|
|
|
|
|
%files
|
2018-11-24 23:45:37 +00:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS ChangeLog README
|
2017-08-11 23:02:13 +00:00
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/step/
|
|
|
|
%config %{_kf5_configdir}/step.knsrc
|
2017-08-05 20:53:11 +00:00
|
|
|
%dir %{_kf5_appstreamdir}
|
|
|
|
%dir %{_kf5_configkcfgdir}
|
2017-08-11 23:02:13 +00:00
|
|
|
%dir %{_kf5_kxmlguidir}/step/
|
2019-09-06 10:15:51 +00:00
|
|
|
%dir %{_kf5_sharedir}/mime/
|
|
|
|
%dir %{_kf5_sharedir}/mime/packages
|
2015-05-11 17:22:33 +00:00
|
|
|
%{_kf5_applicationsdir}/org.kde.step.desktop
|
|
|
|
%{_kf5_appsdir}/step/
|
2017-08-05 20:53:11 +00:00
|
|
|
%{_kf5_appstreamdir}/org.kde.step.appdata.xml
|
2015-05-11 17:22:33 +00:00
|
|
|
%{_kf5_bindir}/step
|
|
|
|
%{_kf5_configkcfgdir}/step.kcfg
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*
|
2019-09-06 10:15:51 +00:00
|
|
|
%{_kf5_sharedir}/mime/packages/org.kde.step.xml
|
2019-11-29 11:40:56 +00:00
|
|
|
%{_kf5_kxmlguidir}/step/stepui.rc
|
2011-07-25 10:39:37 +00:00
|
|
|
|
2017-04-15 13:29:11 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
2018-11-24 23:45:37 +00:00
|
|
|
%license COPYING*
|
2017-07-16 09:41:45 +00:00
|
|
|
%%dir %{_kf5_sharedir}/locale/nn/LC_SCRIPTS/
|
2017-07-16 09:34:55 +00:00
|
|
|
%%dir %{_kf5_sharedir}/locale/nn/LC_SCRIPTS/step
|
2017-07-16 09:24:58 +00:00
|
|
|
%lang(nn) %{_kf5_sharedir}/locale/nn/LC_SCRIPTS/step/step.js
|
2017-04-15 13:29:11 +00:00
|
|
|
%endif
|
|
|
|
|
2011-07-25 10:39:37 +00:00
|
|
|
%changelog
|