# # spec file for package libmarblewidget # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %define _so 22 Name: libmarblewidget Version: 15.08.0 Release: 0 Summary: Generic map viewer library for libkgeomapr License: LGPL-2.1+ Group: Amusements/Teaching/Other Url: http://edu.kde.org # PATCH-FIX-UPSTREAM marble_fix_ppc64_build.patch -- Don't expect LIB_SUFFIX to be set Patch0: marble_fix_ppc64_build.patch Source0: marble-%{version}.tar.xz BuildRequires: fdupes BuildRequires: gpsd-devel BuildRequires: perl BuildRequires: libkde4-devel BuildRequires: quazip-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The shared library for the MarbleWidget shared library. %package devel Summary: Generic map viewer: Build Environment Group: Development/Libraries/KDE Requires: libmarblewidget%{_so} = %{version} Conflicts: marble-devel %description devel Development headers and libraries for Marble. %package -n libmarblewidget%{_so} Summary: Generic map viewer: Shared Library Group: Development/Libraries/KDE %description -n libmarblewidget%{_so} The shared library for the MarbleWidget shared library. %prep %setup -q -n marble-%{version} %patch0 -p1 %build %ifarch ppc ppc64 export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" %endif %cmake_kde4 -d build -- -DQT5BUILD=OFF cd src/lib/marble make %install pushd build/src/lib/marble %kde4_makeinstall popd mkdir -p %{buildroot}%{_kde4_appsdir}/cmake/modules cp build/FindMarble.cmake %{buildroot}%{_kde4_appsdir}/cmake/modules/ %fdupes -s %{buildroot} %post -n libmarblewidget%{_so} -p /sbin/ldconfig %postun -n libmarblewidget%{_so} -p /sbin/ldconfig %files devel %defattr(-,root,root) %doc BUGS CODING %{_includedir}/marble/ %{_libdir}/libmarblewidget.so %{_kde4_appsdir}/cmake/modules/FindMarble.cmake %files -n libmarblewidget%{_so} %defattr(-,root,root) %doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt %{_libdir}/libmarblewidget.so.* %changelog