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
|
|
|
#
|
2015-02-11 16:41:35 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%define _so 22
|
2013-12-02 12:36:46 +01:00
|
|
|
|
2011-07-27 12:58:42 +02:00
|
|
|
Name: marble
|
2015-08-07 09:04:46 +02:00
|
|
|
Version: 15.07.90
|
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
|
2011-08-02 08:57:37 +02:00
|
|
|
BuildRequires: fdupes
|
2012-11-08 07:46:48 +01:00
|
|
|
BuildRequires: gpsd-devel
|
2015-08-07 12:58:08 +02:00
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Script) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5WebKitWidgets) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5SerialPort) >= 5.2.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Designer) >= 5.2.0
|
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: kwallet-devel
|
|
|
|
BuildRequires: knewstuff-devel
|
|
|
|
BuildRequires: kparts-devel
|
|
|
|
BuildRequires: kcoreaddons-devel
|
|
|
|
BuildRequires: kdoctools-devel
|
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: phonon4qt5-devel
|
|
|
|
BuildRequires: kservice-devel
|
|
|
|
BuildRequires: krunner-devel
|
2011-08-02 08:57:37 +02:00
|
|
|
BuildRequires: perl
|
2015-08-07 12:58:08 +02:00
|
|
|
BuildRequires: libquazip-qt5-devel
|
2011-09-19 21:41:22 +02:00
|
|
|
Requires: %{name}-data = %{version}
|
2015-08-07 12:58:08 +02:00
|
|
|
Requires: libastro2 = %{version}
|
|
|
|
Requires: libmarblewidget-qt5%{_so} = %{version}
|
|
|
|
Requires: marble-frontend = %{version}
|
2013-01-07 11:06:34 +01:00
|
|
|
Recommends: %{name}-doc = %{version}
|
2011-08-02 08:57:37 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%package qt
|
|
|
|
Summary: Qt Frontend for Marble
|
|
|
|
Group: Amusements/Teaching/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: marble-frontend = %{version}
|
|
|
|
Conflicts: otherproviders(marble-frontend)
|
|
|
|
|
|
|
|
%description qt
|
|
|
|
The Qt frontend for the Marble map viewer
|
|
|
|
|
|
|
|
%package kde
|
|
|
|
Summary: The KDE optimized frontend for Marble
|
|
|
|
Group: Amusements/Teaching/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: marble-frontend = %{version}
|
|
|
|
Conflicts: otherproviders(marble-frontend)
|
|
|
|
Supplements: packageand(marble:plasma5-desktop)
|
|
|
|
|
|
|
|
%description kde
|
|
|
|
The KDE frontend for the Marble map viewer
|
|
|
|
|
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}
|
|
|
|
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
|
2015-08-07 12:58:08 +02:00
|
|
|
Requires: libmarblewidget-qt5%{_so} = %{version}
|
2011-07-27 12:58:42 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%package -n libmarblewidget-qt5%{_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
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%description -n libmarblewidget-qt5%{_so}
|
2011-08-30 10:17:10 +02:00
|
|
|
The shared library for the MarbleWidget shared library.
|
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%package -n libastro2
|
2014-03-18 17:10:19 +01:00
|
|
|
Summary: Astronomy: Shared Library
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%description -n libastro2
|
2014-03-18 17:10:19 +01:00
|
|
|
The Astronomy shared library for the MarbleWidget shared library.
|
|
|
|
|
2013-01-07 11:06:34 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-10-06 16:43:20 +02:00
|
|
|
|
2013-01-07 11:06:34 +01:00
|
|
|
%build
|
2015-08-07 12:58:08 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2013-01-07 11:06:34 +01:00
|
|
|
%ifarch ppc ppc64
|
|
|
|
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
|
|
|
%endif
|
2015-08-07 12:58:08 +02:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_kf5_prefix} \
|
|
|
|
-DCMAKE_PREFIX_PATH=%{_kf5_prefix} \
|
|
|
|
-DKDE_INSTALL_LIBDIR=%{_lib} \
|
|
|
|
-DKDE_INSTALL_SYSCONFDIR=%{_kf5_sysconfdir} \
|
|
|
|
-DKDE_INSTALL_QTPLUGINDIR=%{_lib}/qt5/plugins \
|
|
|
|
-DKDE_INSTALL_PLUGINDIR=%{_lib}/qt5/plugins \
|
|
|
|
-DKDE_INSTALL_QMLDIR=%{_lib}/qt5/qml \
|
|
|
|
-DKDE_INSTALL_QTQUICKIMPORTSDIR=%{_lib}/qt5/imports \
|
|
|
|
-DECM_MKSPECS_INSTALL_DIR=%{_kf5_mkspecsdir} \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DBUILD_MARBLE_TESTS=NO \
|
|
|
|
%ifarch x86_64
|
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
%endif
|
|
|
|
-DWITH_KF5=TRUE \
|
|
|
|
..
|
|
|
|
%make_jobs
|
2013-01-07 11:06:34 +01:00
|
|
|
|
|
|
|
%install
|
2015-08-07 12:58:08 +02:00
|
|
|
%kf5_makeinstall -C build
|
2013-01-07 11:06:34 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2015-08-07 12:58:08 +02:00
|
|
|
rm -rf %{buildroot}/designer
|
|
|
|
rm -rf %{buildroot}%{_bindir}/marble-mobile
|
|
|
|
rm -rf %{buildroot}%{_bindir}/marble-touch
|
|
|
|
rm -rf %{buildroot}%{_kf5_applicationsdir}/marble-mobile.desktop
|
|
|
|
rm -rf %{buildroot}%{_kf5_applicationsdir}/marble-touch.desktop
|
2011-08-30 10:17:10 +02:00
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%post -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig
|
2014-05-02 15:11:06 +02:00
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%postun -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig
|
2011-10-06 16:43:20 +02:00
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%post -n libastro2 -p /sbin/ldconfig
|
2011-08-30 10:17:10 +02:00
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%postun -n libastro2 -p /sbin/ldconfig
|
2014-03-18 17:10:19 +01:00
|
|
|
|
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
|
2015-08-07 12:58:08 +02:00
|
|
|
%{_datadir}/marble/
|
|
|
|
%{_datadir}/appdata/
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/marble.*
|
|
|
|
%{_libdir}/marble/
|
|
|
|
%{_libdir}/libmarbledeclarative.so
|
|
|
|
%dir %{_libdir}/plugins/
|
|
|
|
%{_libdir}/plugins/designer/
|
|
|
|
%exclude %{_datadir}/marble/data
|
|
|
|
%_kf5_plugindir/libmarble*so
|
|
|
|
%_kf5_plugindir/libplasma_runner_marble.so
|
|
|
|
%_kf5_servicesdir/*desktop
|
|
|
|
%_kf5_kxmlguidir/marble/
|
|
|
|
%_kf5_configkcfgdir/
|
|
|
|
%_kf5_applicationsdir/marble_geo.desktop
|
|
|
|
%_kf5_applicationsdir/marble_gpx.desktop
|
|
|
|
%_kf5_applicationsdir/marble_kml.desktop
|
|
|
|
%_kf5_applicationsdir/marble_kmz.desktop
|
|
|
|
%_kf5_applicationsdir/marble_osm.desktop
|
|
|
|
%_kf5_applicationsdir/marble_worldwind.desktop
|
|
|
|
%_kf5_bindir/marble-maps
|
2011-07-27 12:58:42 +02:00
|
|
|
|
2013-01-07 11:06:34 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2015-05-11 19:21:48 +02:00
|
|
|
%doc BUGS CODING
|
2014-08-25 10:59:27 +02:00
|
|
|
%{_includedir}/marble/
|
|
|
|
%{_includedir}/astro/
|
2015-08-07 12:58:08 +02:00
|
|
|
%{_kf5_libdir}/libmarblewidget-qt5.so
|
|
|
|
%{_kf5_libdir}/libastro.so
|
2013-01-07 11:06:34 +01:00
|
|
|
|
|
|
|
%files data
|
|
|
|
%defattr(-,root,root)
|
2015-08-07 12:58:08 +02:00
|
|
|
%{_datadir}/marble/data
|
2013-01-07 11:06:34 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2015-08-07 12:58:08 +02:00
|
|
|
%_kf5_htmldir/en/marble/
|
|
|
|
|
|
|
|
%files -n libmarblewidget-qt5%{_so}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_kf5_libdir}/libmarblewidget-qt5.so.*
|
|
|
|
|
|
|
|
%files -n libastro2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_kf5_libdir}/libastro.so.*
|
2013-01-07 11:06:34 +01:00
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%files qt
|
2013-01-07 11:06:34 +01:00
|
|
|
%defattr(-,root,root)
|
2015-08-07 12:58:08 +02:00
|
|
|
%{_kf5_applicationsdir}/marble-qt.desktop
|
|
|
|
%{_kf5_bindir}/marble-qt
|
2013-01-07 11:06:34 +01:00
|
|
|
|
2015-08-07 12:58:08 +02:00
|
|
|
%files kde
|
2014-03-18 17:10:19 +01:00
|
|
|
%defattr(-,root,root)
|
2015-08-07 12:58:08 +02:00
|
|
|
%{_kf5_applicationsdir}/marble.desktop
|
|
|
|
%{_kf5_bindir}/marble
|
2014-03-18 17:10:19 +01:00
|
|
|
|
2011-07-27 12:58:42 +02:00
|
|
|
%changelog
|