## enable python bindings or not ## temporarily disabled, pykde4-4.8.80 ftbfs #define python 1 Name: marble Summary: Virtual globe and world atlas Epoch: 1 Version: 4.8.97 Release: 1%{?dist} License: LGPLv2+ #URL: https://projects.kde.org/projects/kde/kdeedu/marble URL: http://edu.kde.org/marble/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: ftp://ftp.kde.org/pub/kde/%{stable}/%{version}/src/%{name}-%{version}.tar.xz ## upstreamable patches # drop hardcoded (-O3) optimizations Patch50: marble-4.8.80-opt.patch ## upstream patches BuildRequires: desktop-file-utils BuildRequires: kdelibs4-devel >= %{version} BuildRequires: pkgconfig(libgps) %if 0%{?python} BuildRequires: pykde4-devel >= %{version} %endif BuildRequires: qt-mobility-devel Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: kde-runtime%{?_kde4_version: >= %{_kde4_version}} # when split occurred Obsoletes: kdeedu-marble < 4.7.0-10 Provides: kdeedu-marble = %{version}-%{release} Provides: kdeedu-marble%{?_isa} = %{version}-%{release} %if ! 0%{?marble} Obsoletes: python-marble < %{epoch}:%{version}-%{release} %endif %description Marble is a Virtual Globe and World Atlas that you can use to learn more about Earth: You can pan and zoom around and you can look up places and roads. A mouse click on a place label will provide the respective Wikipedia article. Of course it's also possible to measure distances between locations or watch the current cloud cover. Marble offers different thematic maps: A classroom- style topographic map, a satellite view, street map, earth at night and temperature and precipitation maps. All maps include a custom map key, so it can also be used as an educational tool for use in class-rooms. For educational purposes you can also change date and time and watch how the starry sky and the twilight zone on the map change. In opposite to other virtual globes Marble also features multiple projections: Choose between a Flat Map ("Plate carré"), Mercator or the Globe. %package libs Summary: Runtime files for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: kdeedu-marble-libs < 4.7.0-10 Provides: kdeedu-marble-libs = %{version}-%{release} %description libs %{summary}. %package devel Summary: Development files for %{name} # when split occurred Conflicts: kdeedu-devel < 4.7.0-10 Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: kdelibs4-devel %description devel %{summary}. %package -n python-marble Summary: Exerimental python bindings for Marble Requires: %{name} = %{epoch}:%{version}-%{release} Requires: pykde4 >= %{version} %{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}} %description -n python-marble %{summary}. %prep %setup -q %patch50 -p1 -b .opt %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} \ %{?python:-DEXPERIMENTAL_PYTHON_BINDINGS:BOOL=ON} \ -DIGNORE_CMAKE_INSTALL_PREFIX_FOR_DECLARATIVE_PLUGINS:BOOL=ON \ -DWITH_DESIGNER_PLUGIN:BOOL=ON \ .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --with-kde --without-mo %check desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/marble.desktop %post touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || : %posttrans gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || : gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : fi %files -f %{name}.lang %doc LICENSE.txt %doc CREDITS MANIFESTO.txt TODO USECASES %{_kde4_appsdir}/marble/ %{_kde4_bindir}/marble %{_kde4_bindir}/marble-touch %{_kde4_bindir}/routing-instructions %{_kde4_bindir}/tilecreator %{_kde4_datadir}/applications/kde4/marble.desktop %{_kde4_datadir}/config.kcfg/marble.kcfg %{_kde4_datadir}/kde4/services/marble_part.desktop %{_kde4_libdir}/kde4/libmarble_part.so %{_kde4_iconsdir}/hicolor/*/*/marble.* # worldclock links against libmarblewidget, include here %{_kde4_libdir}/kde4/plasma_applet_worldclock.so %{_kde4_datadir}/kde4/services/plasma-applet-kworldclock.desktop %{_kde4_libdir}/kde4/plasma_runner_marble.so %{_kde4_datadir}/kde4/services/plasma-runner-marble.desktop %{_qt4_importdir}/org/ %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files libs %{_kde4_libdir}/libmarblewidget.so.* %{_kde4_libdir}/kde4/plugins/marble/ %{_kde4_libdir}/kde4/plugins/designer/*.so %files devel %doc docs/* %{_kde4_appsdir}/cmake/modules/FindMarble.cmake %{_includedir}/marble/ %{_kde4_libdir}/libmarblewidget.so %if 0%{?python} %files -n python-marble %{python_sitearch}/PyKDE4/marble.so %endif %changelog * Wed Jul 11 2012 Rex Dieter - 1:4.8.97-1 - 4.8.97 * Wed Jun 27 2012 Rex Dieter - 1:4.8.95-1 - 4.8.95 * Sat Jun 09 2012 Rex Dieter - 1:4.8.90-1 - 4.8.90 * Tue May 29 2012 Rex Dieter 1:4.8.80-1 - 4.8.80 * Mon Apr 30 2012 Jaroslav Reznik - 1:4.8.3-1 - 4.8.3 * Fri Mar 30 2012 Rex Dieter - 1:4.8.2-1 - 4.8.2 * Tue Mar 27 2012 Rex Dieter 1:4.8.1-2 - enable designer plugin (#807128) * Mon Mar 05 2012 Jaroslav Reznik - 1:4.8.1-1 - 4.8.1 * Thu Feb 09 2012 Jaroslav Reznik 1:4.8.0-6 - more qt 4.8 fixes (show proper icons for MarbleLegendBrowser) * Tue Feb 07 2012 Rex Dieter 1:4.8.0-5 - upstream qt48_transparency patch (fix display of water/ocenas in atlas view) * Mon Feb 06 2012 Rex Dieter 1:4.8.0-4 - drop hard-coded -O3 optimization * Fri Feb 03 2012 Rex Dieter 1:4.8.0-3 - python-marble: fix versioned dependency * Fri Feb 03 2012 Rex Dieter 1:4.8.0-2 - enable (experimental) python bindings - s/kdebase-runtime/kde-runtime/ * Sun Jan 22 2012 Rex Dieter - 1:4.8.0-1 - 4.8.0 * Wed Jan 04 2012 Radek Novacek - 1:4.7.97-1 - 4.7.97 * Wed Dec 21 2011 Radek Novacek - 1:4.7.95-1 - 4.7.95 * Mon Dec 05 2011 Rex Dieter 1:4.7.90-2 - set IGNORE_CMAKE_INSTALL_PREFIX_FOR_DECLARATIVE_PLUGINS * Sun Dec 04 2011 Rex Dieter - 1:4.7.90-1 - 4.7.90 * Fri Nov 25 2011 Rex Dieter 1:4.7.80-1 - 4.7.80 * Sat Oct 29 2011 Rex Dieter 1:4.7.3-1 - 4.7.3 - pkgconfig-style deps * Tue Oct 04 2011 Rex Dieter 1:4.7.2-1 - 4.7.2 * Sat Sep 17 2011 Rex Dieter 1:4.7.1-2 - Provides: kdeedu-marble%%{?_isa} * Fri Sep 16 2011 Rex Dieter 1:4.7.1-1 - 4.7.1 * Wed Sep 14 2011 Rex Dieter 1:4.7.0-11 - update URL * Tue Aug 30 2011 Rex Dieter 1:4.7.0-10 - first try