2011-07-27 10:58:42 +00:00
#
2011-07-27 10:58:51 +00:00
# spec file for package marble
2011-07-27 10:58:42 +00:00
#
2016-12-03 12:28:01 +00:00
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
2011-07-27 10:58:42 +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.
2017-04-20 08:36:20 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2011-07-27 10:58:42 +00:00
#
2017-04-15 13:29:04 +00:00
%bcond_without lang
2013-12-02 11:36:46 +00:00
2017-03-26 07:25:35 +00:00
%define _so -27
2016-12-03 12:28:01 +00:00
%define _so_astro 1
2011-07-27 10:58:42 +00:00
Name : marble
2017-06-07 22:15:22 +00:00
Version : 17.04.2
2011-12-08 11:12:57 +00:00
Release : 0
2016-12-03 12:28:01 +00:00
%define kf5_version 5.26.0
2017-03-26 07:25:35 +00:00
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
2016-12-03 12:28:01 +00:00
%{!?_kapp_version: %global _kapp_version %(echo %{version} | awk -F. '{print $1"."$2}' )}
2011-09-19 19:41:22 +00:00
Summary : Generic map viewer
2017-05-15 10:59:50 +00:00
# License note: the tools directory contains GPL-3 tools, but they are neither built nor installed by the package
2011-12-08 11:12:57 +00:00
License : LGPL-2.1+
2011-08-02 06:57:37 +00:00
Group : Amusements/Teaching/Other
2011-12-08 11:12:57 +00:00
Url : http://edu.kde.org
2016-12-03 12:28:01 +00:00
Source0 : marble-%{version} .tar.xz
2017-07-07 11:50:28 +00:00
# PATCH-FIX-UPSTREAM Add-fallback-InputHandler.patch boo#1044747, kde#381872 -- fix crash when opening the "Edit Bookmark" dialog if you set the View Angle to UTM
Patch1 : Add-fallback-InputHandler.patch
2017-07-04 16:16:20 +00:00
# PATCH-FIX-UPSTREAM Fix-plain-map-and-political-map-showing-no-content.patch kde#379297 -- fix display of the plain map and the political map
Patch2 : Fix-plain-map-and-political-map-showing-no-content.patch
2016-12-03 12:28:01 +00:00
BuildRequires : extra-cmake-modules
2011-08-02 06:57:37 +00:00
BuildRequires : fdupes
2012-11-08 06:46:48 +00:00
BuildRequires : gpsd-devel
2015-08-07 10:58:08 +00:00
BuildRequires : kconfig-devel
BuildRequires : kcoreaddons-devel
2016-12-03 12:28:01 +00:00
BuildRequires : kcrash-devel
2015-08-07 10:58:08 +00:00
BuildRequires : kdoctools-devel
2016-12-03 12:28:01 +00:00
BuildRequires : kf5-filesystem
2015-08-07 10:58:08 +00:00
BuildRequires : ki18n-devel
2016-12-03 12:28:01 +00:00
BuildRequires : knewstuff-devel
BuildRequires : kparts-devel
2015-08-07 10:58:08 +00:00
BuildRequires : krunner-devel
2016-12-03 12:28:01 +00:00
BuildRequires : kservice-devel
BuildRequires : kwallet-devel
BuildRequires : libqt5-qtlocation-devel
2015-08-07 10:58:08 +00:00
BuildRequires : libquazip-qt5-devel
2016-12-03 12:28:01 +00:00
BuildRequires : perl
BuildRequires : phonon4qt5-devel
BuildRequires : pkgconfig
BuildRequires : pkgconfig(Qt5Concurrent) >= 5.2.0
BuildRequires : pkgconfig(Qt5Core) >= 5.2.0
BuildRequires : pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires : pkgconfig(Qt5Designer) >= 5.2.0
BuildRequires : pkgconfig(Qt5Network) >= 5.2.0
BuildRequires : pkgconfig(Qt5OpenGL) >= 5.2.0
BuildRequires : pkgconfig(Qt5PrintSupport) >= 5.2.0
BuildRequires : pkgconfig(Qt5Quick) >= 5.2.0
BuildRequires : pkgconfig(Qt5Script) >= 5.2.0
BuildRequires : pkgconfig(Qt5SerialPort) >= 5.2.0
BuildRequires : pkgconfig(Qt5Sql) >= 5.2.0
BuildRequires : pkgconfig(Qt5Svg) >= 5.2.0
BuildRequires : pkgconfig(Qt5Test) >= 5.2.0
BuildRequires : pkgconfig(Qt5WebKitWidgets) >= 5.2.0
BuildRequires : pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires : pkgconfig(Qt5Xml) >= 5.2.0
2011-09-19 19:41:22 +00:00
Requires : %{name} -data = %{version}
2017-05-31 04:22:56 +00:00
Requires : libastro%{_so_astro} = %{version}
2016-12-03 12:28:01 +00:00
Requires : libmarblewidget-qt5%{_so} = %{version}
2015-08-07 10:58:08 +00:00
Requires : marble-frontend = %{version}
2013-01-07 10:06:34 +00:00
Recommends: %{name} -doc = %{version}
2016-12-03 12:28:01 +00:00
Obsoletes : marble5 < %{version}
Provides : marble5 < %{version}
2017-04-20 08:51:07 +00:00
Recommends: %{name} -lang
2011-08-02 06:57:37 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-07-27 10:58:42 +00:00
%description
2011-09-19 19:41:22 +00:00
Marble is a viewer of map data.
2011-07-27 10:58:42 +00:00
2015-08-07 10:58:08 +00:00
%package qt
Summary : Qt Frontend for Marble
Group : Amusements/Teaching/Other
Requires : %{name} = %{version}
Conflicts : otherproviders(marble-frontend)
2016-12-03 12:28:01 +00:00
Provides : marble-frontend = %{version}
2015-08-07 10:58:08 +00:00
%description qt
The Qt frontend for the Marble map viewer
%package kde
2016-12-03 12:28:01 +00:00
Summary : The KDE optimized frontend for Marble and several Plasmoids/Wallpapers
2015-08-07 10:58:08 +00:00
Group : Amusements/Teaching/Other
Requires : %{name} = %{version}
Supplements: packageand(marble:plasma5-desktop)
2016-12-03 12:28:01 +00:00
Conflicts : otherproviders(marble-frontend)
Provides : marble-frontend = %{version}
2015-08-07 10:58:08 +00:00
%description kde
2016-12-03 12:28:01 +00:00
The KDE frontend for the Marble map viewer. It also includes several plasmoids and wallpapers for Plasma
2015-08-07 10:58:08 +00:00
2011-09-19 19:41:22 +00:00
%package data
Summary : Generic map viewer: data
2011-08-02 06:57:37 +00:00
Group : Amusements/Teaching/Other
2011-09-19 19:41:22 +00:00
Requires : %{name} = %{version}
2016-12-03 12:28:01 +00:00
Obsoletes : marble5-data < %{version}
Provides : marble5-data < %{version}
2011-09-19 19:41:22 +00:00
BuildArch : noarch
%description data
Marble is a viewer of map data. This package contains its data.
%package devel
Summary : Generic map viewer: Build Environment
Group : Development/Libraries/KDE
2016-12-03 12:28:01 +00:00
Requires : libastro%{_so_astro} = %{version}
2015-08-07 12:52:54 +00:00
Requires : libmarblewidget-qt5%{_so} = %{version}
2016-12-03 12:28:01 +00:00
Obsoletes : marble5-devel < %{version}
Provides : marble5-devel = %{version}
2011-07-27 10:58:42 +00:00
%description devel
2011-08-02 06:57:37 +00:00
Development headers and libraries for Marble.
2011-07-27 10:58:42 +00:00
2011-09-19 19:41:22 +00:00
%package doc
Summary : Marble documentation
2011-08-02 06:57:37 +00:00
Group : Amusements/Teaching/Other
2011-09-19 19:41:22 +00:00
Requires : %{name} = %{version}
2016-12-03 12:28:01 +00:00
Obsoletes : marble5-doc < %{version}
Provides : marble5-doc = %{version}
2011-09-19 19:41:22 +00:00
BuildArch : noarch
%description doc
Marble is a viewer of map data. This package contains its documentation.
2011-08-02 06:57:46 +00:00
2015-08-07 12:52:54 +00:00
%package -n libmarblewidget-qt5%{_so}
2011-09-19 19:41:22 +00:00
Summary : Generic map viewer: Shared Library
Group : Development/Libraries/KDE
2011-08-30 08:17:10 +00:00
2015-08-07 12:52:54 +00:00
%description -n libmarblewidget-qt5%{_so}
2011-08-30 08:17:10 +00:00
The shared library for the MarbleWidget shared library.
2016-12-03 12:28:01 +00:00
%package -n libastro%{_so_astro}
2014-03-18 16:10:19 +00:00
Summary : Astronomy: Shared Library
Group : Development/Libraries/KDE
2016-12-03 12:28:01 +00:00
Requires : libmarblewidget-qt5%{_so}
2017-05-31 04:22:56 +00:00
Obsoletes : libastro-qt5-%{_so_astro} < %{version}
Provides : libastro-qt5-%{_so_astro} = %{version}
2014-03-18 16:10:19 +00:00
2016-12-03 12:28:01 +00:00
%description -n libastro%{_so_astro}
The astronomy library for the satellites plugin.
2014-03-18 16:10:19 +00:00
2017-04-15 13:29:04 +00:00
%if %{with lang}
%lang_package
%endif
2013-01-07 10:06:34 +00:00
%prep
2016-12-03 12:28:01 +00:00
%setup -q -n marble-%{version}
2017-07-07 11:50:28 +00:00
%patch1 -p1
2017-07-04 16:16:20 +00:00
%patch2 -p1
2011-10-06 14:43:20 +00:00
2013-01-07 10:06:34 +00:00
%build
2016-12-03 12:28:01 +00:00
export SUSE_ASNEEDED=0
2015-08-07 11:27:27 +00:00
%ifarch ppc ppc64
export RPM_OPT_FLAGS=" %{optflags} - m m i n i m a l - t o c "
%endif
2016-12-06 07:53:59 +00:00
%cmake_kf5 -d build -- -DBUILD_MARBLE_TESTS=NO -DMOBILE=FALSE -DQT_PLUGINS_DIR=%{_kf5_plugindir}
2015-08-07 10:58:08 +00:00
%make_jobs
2013-01-07 10:06:34 +00:00
%install
2015-08-07 10:58:08 +00:00
%kf5_makeinstall -C build
2017-04-15 13:29:04 +00:00
%if %{with lang}
%find_lang %{name} --with-man --all-name --with-qt
%kf5_find_htmldocs
%endif
2013-01-07 10:06:34 +00:00
%fdupes -s %{buildroot}
2011-08-30 08:17:10 +00:00
2015-08-07 12:52:54 +00:00
%post -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig
%postun -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig
2016-12-03 12:28:01 +00:00
%post -n libastro%{_so_astro} -p /sbin/ldconfig
%postun -n libastro%{_so_astro} -p /sbin/ldconfig
2014-03-18 16:10:19 +00:00
2011-07-27 10:58:42 +00:00
%files
%defattr (-,root,root)
2012-12-07 13:42:18 +00:00
%doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt
2016-12-03 12:28:01 +00:00
%{_datadir} /marble/
2016-12-05 12:59:51 +00:00
%{_kf5_appstreamdir}/
2016-12-03 12:28:01 +00:00
%{_kf5_iconsdir}/hicolor/*/apps/marble.*
%{_libdir} /marble/
%{_libdir} /libmarbledeclarative.so
2016-12-06 07:53:59 +00:00
%{_kf5_plugindir}/designer/
2016-12-03 12:28:01 +00:00
%exclude %{_datadir} /marble/data
%{_kf5_plugindir}/libmarble*so
%{_kf5_plugindir}/plasma_runner_marble.so
%{_kf5_servicesdir}/*desktop
2015-08-19 11:58:13 +00:00
%{_kf5_applicationsdir}/marble_gpx.desktop
%{_kf5_applicationsdir}/marble_kml.desktop
%{_kf5_applicationsdir}/marble_kmz.desktop
2016-12-03 12:28:01 +00:00
%{_kf5_applicationsdir}/marble_geo.desktop
2015-08-29 19:58:37 +00:00
%{_kf5_applicationsdir}/marble_worldwind.desktop
2016-08-08 18:36:03 +00:00
%{_kf5_applicationsdir}/marble_geojson.desktop
2015-08-19 11:58:13 +00:00
%{_kf5_configkcfgdir}/
%{_kf5_kxmlguidir}/marble/
2016-12-03 12:28:01 +00:00
%{_datadir} /mime/packages/geo.xml
%{_kf5_qmldir}/org/kde/marble/
%{_kf5_configdir}/marble.knsrc
2011-07-27 10:58:42 +00:00
2013-01-07 10:06:34 +00:00
%files devel
%defattr (-,root,root)
2015-05-11 17:21:48 +00:00
%doc BUGS CODING
2014-08-25 08:59:27 +00:00
%{_includedir} /marble/
%{_includedir} /astro/
2015-08-07 10:58:08 +00:00
%{_kf5_libdir}/libmarblewidget-qt5.so
2016-07-08 09:46:15 +00:00
%{_kf5_libdir}/libastro.so
2016-12-03 12:28:01 +00:00
%{_kf5_libdir}/cmake/Astro/
%{_kf5_libdir}/cmake/Marble/
%{_libdir} /qt5/mkspecs/modules/qt_Marble.pri
2013-01-07 10:06:34 +00:00
%files data
%defattr (-,root,root)
2016-12-03 12:28:01 +00:00
%{_datadir} /marble/data
2013-01-07 10:06:34 +00:00
%files doc
%defattr (-,root,root)
2015-08-07 11:27:27 +00:00
%{_kf5_htmldir}/en/marble/
2015-08-07 10:58:08 +00:00
2015-08-07 12:52:54 +00:00
%files -n libmarblewidget-qt5%{_so}
2015-08-07 10:58:08 +00:00
%defattr (-,root,root)
%{_kf5_libdir}/libmarblewidget-qt5.so.*
2016-12-03 12:28:01 +00:00
%files -n libastro%{_so_astro}
2015-08-07 10:58:08 +00:00
%defattr (-,root,root)
2016-07-08 09:46:15 +00:00
%{_kf5_libdir}/libastro.so.*
2013-01-07 10:06:34 +00:00
2015-08-07 10:58:08 +00:00
%files qt
2013-01-07 10:06:34 +00:00
%defattr (-,root,root)
2016-12-03 12:28:01 +00:00
%{_kf5_applicationsdir}/org.kde.marble-qt.desktop
2015-08-19 11:58:13 +00:00
%{_kf5_bindir}/marble-qt
2013-01-07 10:06:34 +00:00
2015-08-07 10:58:08 +00:00
%files kde
2014-03-18 16:10:19 +00:00
%defattr (-,root,root)
2016-12-03 12:28:01 +00:00
%{_kf5_applicationsdir}/org.kde.marble.desktop
2015-08-19 11:58:13 +00:00
%{_kf5_bindir}/marble
2016-12-03 12:28:01 +00:00
%dir %{_datadir} /plasma
%{_datadir} /plasma/plasmoids/
%{_datadir} /plasma/wallpapers/
2014-03-18 16:10:19 +00:00
2017-04-15 13:29:04 +00:00
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
2011-07-27 10:58:42 +00:00
%changelog