SHA256
1
0
forked from pool/marble
marble/libmarblewidget.spec

117 lines
3.1 KiB
RPMSpec

#
# 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.2
Release: 0
Summary: Generic map viewer library for libkgeomapr
License: LGPL-2.1+
Group: Amusements/Teaching/Other
Url: http://edu.kde.org
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}
Requires: libastro1 = %{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.
%package -n libastro1
Summary: Astronomy: Shared Library
Group: Development/Libraries/KDE
%description -n libastro1
The Astronomy shared library for the MarbleWidget shared library.
%prep
%setup -q -n marble-%{version}
%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
%cmake_kde4 -d build -- -DQT5BUILD=OFF
pushd src/lib/marble
make
popd
pushd src/lib/astro
make
%install
pushd build/src/lib/marble
%kde4_makeinstall
popd
pushd build/src/lib/astro
%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
%post -n libastro1 -p /sbin/ldconfig
%postun -n libastro1 -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%doc BUGS CODING
%{_includedir}/marble/
%{_libdir}/libmarblewidget.so
%{_libdir}/libastro.so
%{_kde4_appsdir}/cmake/modules/FindMarble.cmake
%files -n libmarblewidget%{_so}
%defattr(-,root,root)
%doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt
%{_libdir}/libmarblewidget.so.*
%files -n libastro1
%defattr(-,root,root)
%doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt
%{_libdir}/libastro.so.*
%changelog