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
|
|
|
#
|
2016-12-03 13:14:55 +01:00
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
|
2017-04-20 10:36:39 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-07-25 12:39:37 +02:00
|
|
|
#
|
|
|
|
|
2017-04-15 15:29:11 +02:00
|
|
|
%bcond_without lang
|
2012-03-13 09:39:48 +01:00
|
|
|
|
2011-07-25 12:39:37 +02:00
|
|
|
Name: step
|
2017-07-16 08:56:35 +02:00
|
|
|
Version: 17.04.3
|
2011-12-08 11:31:38 +01:00
|
|
|
Release: 0
|
2016-12-03 13:14:55 +01:00
|
|
|
%define kf5_version 5.26.0
|
2017-03-26 09:26:43 +02:00
|
|
|
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
|
2016-12-03 13:14:55 +01:00
|
|
|
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2011-09-19 18:04:57 +02:00
|
|
|
Summary: An interactive physics simulator
|
2011-12-08 11:31:38 +01:00
|
|
|
License: GPL-2.0+
|
2011-07-27 18:05:03 +02:00
|
|
|
Group: Productivity/Scientific/Physics
|
2011-12-08 11:31:38 +01:00
|
|
|
Url: http://edu.kde.org
|
2012-04-12 09:52:26 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
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
|
2016-12-03 13:14:55 +01:00
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: kdelibs4support-devel
|
|
|
|
BuildRequires: khtml-devel
|
|
|
|
BuildRequires: knewstuff-devel
|
|
|
|
BuildRequires: kplotting-devel
|
2015-05-11 19:22:33 +02:00
|
|
|
BuildRequires: libeigen3-devel
|
2013-01-07 11:07:43 +01:00
|
|
|
BuildRequires: libqalculate-devel
|
2016-12-03 13:14:55 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xz
|
2017-04-15 15:29:11 +02:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools)
|
2015-05-11 19:22:33 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
2016-12-03 13:14:55 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
2015-05-11 19:22:33 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Qml)
|
|
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
2016-12-03 13:14:55 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
2015-05-11 19:22:33 +02:00
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2017-04-20 10:51:23 +02:00
|
|
|
Recommends: %{name}-lang
|
2011-07-27 18:05:03 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-07-25 12:39:37 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Step is an interactive physical simulator. It works like this: you
|
|
|
|
place some bodies on the scene, add some forces such as gravity or
|
|
|
|
springs, then click "Simulate" and Step shows you how your scene will
|
|
|
|
evolve according to the laws of physics. You can change every property
|
|
|
|
of bodies/forces in your experiment (even during simulation) and see
|
|
|
|
how this will change evolution of the experiment. With Step you can not
|
|
|
|
only learn but feel how physics works !
|
|
|
|
|
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
|
|
|
|
%kf5_find_htmldocs
|
|
|
|
%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
|
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:18:42 +02:00
|
|
|
%doc AUTHORS COPYING* ChangeLog README
|
2015-05-11 19:22:33 +02:00
|
|
|
%doc %{_kf5_htmldir}/en/step/
|
|
|
|
%{_kf5_applicationsdir}/org.kde.step.desktop
|
|
|
|
%{_kf5_appsdir}/step/
|
|
|
|
%{_kf5_bindir}/step
|
|
|
|
%{_kf5_configdir}/step.knsrc
|
|
|
|
%dir %{_kf5_configkcfgdir}
|
|
|
|
%{_kf5_configkcfgdir}/step.kcfg
|
2016-12-03 13:14:55 +01:00
|
|
|
%{_kf5_appstreamdir}/org.kde.step.appdata.xml
|
2015-05-11 19:22:33 +02:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*
|
2016-12-03 13:14:55 +01:00
|
|
|
%dir %{_kf5_appstreamdir}
|
2011-07-25 12:39:37 +02:00
|
|
|
|
2017-04-15 15:29:11 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%doc 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
|