2011-07-27 12:58:42 +02:00
#
2011-07-27 12:58:51 +02:00
# spec file for package marble
2011-07-27 12:58:42 +02:00
#
2014-01-27 11:16:00 +01:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-07-27 12:58:42 +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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-03-13 09:36:40 +01:00
2014-07-16 16:18:32 +02:00
%define _so 19
2013-12-02 12:36:46 +01:00
2011-07-27 12:58:42 +02:00
Name : marble
2014-07-16 16:18:32 +02:00
Version : 4.13.80
2011-12-08 12:12:57 +01:00
Release : 0
2011-09-19 21:41:22 +02:00
Summary : Generic map viewer
2011-12-08 12:12:57 +01:00
License : LGPL-2.1+
2011-08-02 08:57:37 +02:00
Group : Amusements/Teaching/Other
2011-12-08 12:12:57 +01:00
Url : http://edu.kde.org
2012-04-12 09:40:40 +02:00
Source0 : %{name} -%{version} .tar.xz
2014-05-02 15:11:06 +02:00
# PATCH-FIX-OPENSUSE do_not_build_qtonly_and_mobile.diff do not build qt-only version and mobile version
Patch0 : do_not_build_qtonly_and_mobile.diff
2011-08-02 08:57:37 +02:00
BuildRequires : fdupes
2012-11-08 07:46:48 +01:00
BuildRequires : gpsd-devel
2013-01-07 11:06:34 +01:00
BuildRequires : libkde4-devel
2011-08-02 08:57:37 +02:00
BuildRequires : perl
2013-07-08 07:32:25 +02:00
BuildRequires : quazip-devel
2012-04-12 09:40:40 +02:00
BuildRequires : xz
2011-09-19 21:41:22 +02:00
Requires : %{name} -data = %{version}
2014-03-18 17:10:19 +01:00
Requires : libastro1 = %{version}
2013-12-02 12:36:46 +01:00
Requires : libmarblewidget%{_so} = %{version}
2013-01-07 11:06:34 +01:00
Recommends: %{name} -doc = %{version}
2011-07-27 12:58:42 +02:00
Provides : kde4-marble = 4.3.0
Obsoletes : kde4-marble < 4.3.0
2011-08-02 08:57:37 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%kde4_runtime_requires
2011-07-27 12:58:42 +02:00
%description
2011-09-19 21:41:22 +02:00
Marble is a viewer of map data.
2011-07-27 12:58:42 +02:00
2011-09-19 21:41:22 +02:00
%package data
Summary : Generic map viewer: data
2011-08-02 08:57:37 +02:00
Group : Amusements/Teaching/Other
2011-09-19 21:41:22 +02:00
Requires : %{name} = %{version}
Provides : kde4-marble-data = 4.3.0
Obsoletes : kde4-marble-data < 4.3.0
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
2013-12-02 12:36:46 +01:00
Requires : libmarblewidget%{_so} = %{version}
2011-07-27 12:58:42 +02:00
Provides : kde4-marble-devel = 4.3.0
Obsoletes : kde4-marble-devel < 4.3.0
%description devel
2011-08-02 08:57:37 +02:00
Development headers and libraries for Marble.
2011-07-27 12:58:42 +02:00
2011-09-19 21:41:22 +02:00
%package doc
Summary : Marble documentation
2011-08-02 08:57:37 +02:00
Group : Amusements/Teaching/Other
2011-09-19 21:41:22 +02:00
Requires : %{name} = %{version}
BuildArch : noarch
%description doc
Marble is a viewer of map data. This package contains its documentation.
2011-08-02 08:57:46 +02:00
2013-12-02 12:36:46 +01:00
%package -n libmarblewidget%{_so}
2011-09-19 21:41:22 +02:00
Summary : Generic map viewer: Shared Library
Group : Development/Libraries/KDE
2011-08-30 10:17:10 +02:00
2013-12-02 12:36:46 +01:00
%description -n libmarblewidget%{_so}
2011-08-30 10:17:10 +02:00
The shared library for the MarbleWidget shared library.
2014-03-18 17:10:19 +01:00
%package -n libastro1
Summary : Astronomy: Shared Library
Group : Development/Libraries/KDE
%description -n libastro1
The Astronomy shared library for the MarbleWidget shared library.
2013-01-07 11:06:34 +01:00
%prep
%setup -q
2014-05-02 15:11:06 +02:00
%patch0
2011-10-06 16:43:20 +02:00
2013-01-07 11:06:34 +01:00
%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS=" %{optflags} - m m i n i m a l - t o c "
%endif
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
%kde_post_install
%fdupes -s %{buildroot}
2011-08-30 10:17:10 +02:00
2014-05-02 15:11:06 +02:00
#remove additional desktop files as they cause multiple non distinguishable entries in the homerun (https://bugs.kde.org/show_bug.cgi?id=327405#c8) or even a single random entry in kickoff
rm -rf %{buildroot} /usr/share/applications/kde4/marble-touch.desktop
2013-12-02 12:36:46 +01:00
%post -n libmarblewidget%{_so} -p /sbin/ldconfig
2011-10-06 16:43:20 +02:00
2013-12-02 12:36:46 +01:00
%postun -n libmarblewidget%{_so} -p /sbin/ldconfig
2011-08-30 10:17:10 +02:00
2014-03-18 17:10:19 +01:00
%post -n libastro1 -p /sbin/ldconfig
%postun -n libastro1 -p /sbin/ldconfig
2011-07-27 12:58:42 +02:00
%files
%defattr (-,root,root)
2012-12-07 14:42:18 +01:00
%doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt
2014-07-16 16:18:32 +02:00
%dir %{_kde4_datadir}/appdata
2012-12-07 14:42:18 +01:00
%dir %{_kde4_libdir}/qt4/plugins/imports/org
%dir %{_kde4_libdir}/qt4/plugins/imports/org/kde/
%dir %{_kde4_libdir}/qt4/plugins/imports/org/kde/edu/
2011-09-19 21:41:22 +02:00
%exclude %{_kde4_appsdir}/marble/data
%{_kde4_applicationsdir}/marble.desktop
2012-12-07 14:42:18 +01:00
%{_kde4_applicationsdir}/marble_gpx.desktop
%{_kde4_applicationsdir}/marble_kml.desktop
%{_kde4_applicationsdir}/marble_osm.desktop
2013-07-08 07:32:25 +02:00
%{_kde4_applicationsdir}/marble_kmz.desktop
2014-03-18 17:10:19 +01:00
%{_kde4_applicationsdir}/marble_geo.desktop
%{_kde4_applicationsdir}/marble_worldwind.desktop
2012-12-07 14:42:18 +01:00
%{_kde4_appsdir}/marble/
2013-12-02 12:36:46 +01:00
%{_kde4_bindir}/marble*
#{_kde4_bindir}/routing-instructions
#{_kde4_bindir}/tilecreator
2011-09-19 21:41:22 +02:00
%{_kde4_configkcfgdir}/marble.kcfg
2014-07-16 16:18:32 +02:00
%{_kde4_datadir}/appdata/marble.appdata.xml
2012-12-07 14:42:18 +01:00
%{_kde4_datadir}/mime/packages/geo.xml
2011-09-19 21:41:22 +02:00
%{_kde4_iconsdir}/hicolor/*/apps/marble.*
2012-12-07 14:42:18 +01:00
%{_kde4_libdir}/qt4/plugins/imports/org/kde/edu/marble/
2011-09-19 21:41:22 +02:00
%{_kde4_modulesdir}/libmarble_part.so
2014-07-16 16:18:32 +02:00
%{_kde4_modulesdir}/marblethumbnail.so
2011-09-19 21:41:22 +02:00
%{_kde4_modulesdir}/plasma_applet_worldclock.so
2012-01-30 12:27:04 +01:00
%{_kde4_modulesdir}/plasma_runner_marble.so
2013-12-11 14:34:10 +01:00
%{_kde4_modulesdir}/plugins/designer/*
2011-09-19 21:41:22 +02:00
%{_kde4_modulesdir}/plugins/marble/
%{_kde4_servicesdir}/*.desktop
2011-07-27 12:58:42 +02:00
2013-01-07 11:06:34 +01:00
%files devel
%defattr (-,root,root)
%doc BUGS CODING TODO
%{_kde4_includedir}/marble/
2014-03-18 17:10:19 +01:00
%{_kde4_includedir}/astro/
2013-01-07 11:06:34 +01:00
%{_kde4_libdir}/libmarblewidget.so
2014-03-18 17:10:19 +01:00
%{_kde4_libdir}/libastro.so
2013-01-07 11:06:34 +01:00
%{_kde4_appsdir}/cmake/modules/FindMarble.cmake
%files data
%defattr (-,root,root)
%{_kde4_appsdir}/marble/data
%files doc
%defattr (-,root,root)
%{_kde4_htmldir}/en/marble/
2013-12-02 12:36:46 +01:00
%files -n libmarblewidget%{_so}
2013-01-07 11:06:34 +01:00
%defattr (-,root,root)
%{_kde4_libdir}/libmarblewidget.so.*
2014-03-18 17:10:19 +01:00
%files -n libastro1
%defattr (-,root,root)
%{_kde4_libdir}/libastro.so.*
2011-07-27 12:58:42 +02:00
%changelog