2011-07-26 12:11:35 +02:00
|
|
|
#
|
2011-07-26 12:11:48 +02:00
|
|
|
# spec file for package kmplot
|
2011-07-26 12:11:35 +02:00
|
|
|
#
|
2017-08-12 00:57:42 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-07-26 12:11:35 +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:34:58 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-07-26 12:11:35 +02:00
|
|
|
#
|
|
|
|
|
2017-08-12 00:57:42 +02:00
|
|
|
|
2017-04-15 15:28:30 +02:00
|
|
|
%bcond_without lang
|
2012-03-13 09:34:34 +01:00
|
|
|
|
2011-07-26 12:11:35 +02:00
|
|
|
Name: kmplot
|
2018-08-18 13:02:10 +02:00
|
|
|
Version: 18.08.0
|
2011-12-08 12:11:23 +01:00
|
|
|
Release: 0
|
2016-12-03 15:46:48 +01:00
|
|
|
%define kf5_version 5.26.0
|
2017-08-12 00:57:42 +02:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2018-07-28 15:38:56 +02:00
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2011-07-26 12:11:35 +02:00
|
|
|
Summary: Mathematical Function Plotter
|
2011-12-08 12:11:23 +01:00
|
|
|
License: GPL-2.0+
|
2011-07-27 17:29:33 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2011-12-08 12:11:23 +01:00
|
|
|
Url: http://edu.kde.org
|
2012-04-12 09:34:36 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2015-05-11 18:12:27 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
2016-12-03 15:46:48 +01:00
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: kdelibs4support-devel
|
2015-05-11 18:12:27 +02:00
|
|
|
BuildRequires: kguiaddons-devel
|
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: kparts-devel
|
|
|
|
BuildRequires: kwidgetsaddons-devel
|
2016-12-03 15:46:48 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-05-11 18:12:27 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
2016-12-03 15:46:48 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
2015-05-11 18:12:27 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2017-08-12 00:57:42 +02:00
|
|
|
%if %{with lang}
|
2017-04-20 10:49:20 +02:00
|
|
|
Recommends: %{name}-lang
|
2017-08-12 00:57:42 +02:00
|
|
|
%endif
|
2011-07-27 17:29:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-07-26 12:11:35 +02:00
|
|
|
|
|
|
|
%description
|
2013-01-07 11:04:07 +01:00
|
|
|
Mathematical function plotter for KDE.
|
2011-07-26 12:11:35 +02:00
|
|
|
|
2017-04-15 15:28:30 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
|
|
|
|
2011-07-26 12:11:35 +02:00
|
|
|
%prep
|
2013-01-07 11:04:07 +01:00
|
|
|
%setup -q
|
2011-07-26 12:11:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch ppc ppc64
|
2011-07-27 17:29:33 +02:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
2011-07-26 12:11:35 +02:00
|
|
|
%endif
|
2015-05-11 18:12:27 +02:00
|
|
|
%cmake_kf5 -d build
|
2011-07-26 12:11:35 +02:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2015-05-11 18:12:27 +02:00
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 15:28:30 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%kf5_find_htmldocs
|
|
|
|
%endif
|
2011-07-26 12:11:35 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:17:43 +02:00
|
|
|
%doc COPYING*
|
2016-12-03 15:46:48 +01:00
|
|
|
%dir %{_kf5_appstreamdir}
|
2017-08-12 00:57:42 +02:00
|
|
|
%dir %{_kf5_configkcfgdir}
|
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/kmplot
|
|
|
|
%{_kf5_applicationsdir}/org.kde.kmplot.desktop
|
2016-12-03 15:46:48 +01:00
|
|
|
%{_kf5_appstreamdir}/org.kde.kmplot.appdata.xml
|
2015-05-11 18:12:27 +02:00
|
|
|
%{_kf5_bindir}/kmplot
|
|
|
|
%{_kf5_configkcfgdir}/kmplot.kcfg
|
2017-08-12 00:57:42 +02:00
|
|
|
%{_kf5_dbusinterfacesdir}/org.kde.kmplot.*.xml
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/kmplot.*
|
|
|
|
%{_kf5_kxmlguidir}/kmplot/
|
|
|
|
%{_kf5_plugindir}/kmplotpart.so
|
2015-05-11 18:12:27 +02:00
|
|
|
%{_kf5_servicesdir}/kmplot_part.desktop
|
2016-12-03 15:46:48 +01:00
|
|
|
%{_mandir}/*/kmplot.1%{ext_man}
|
2011-07-26 12:11:35 +02:00
|
|
|
|
2017-04-15 15:28:30 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%doc COPYING*
|
|
|
|
%endif
|
|
|
|
|
2011-07-26 12:11:35 +02:00
|
|
|
%changelog
|