forked from pool/marble
This commit is contained in:
parent
ac899165ac
commit
f83d74c294
105
marble.spec
105
marble.spec
@ -17,6 +17,8 @@
|
||||
|
||||
%define _so -22
|
||||
|
||||
%define withqt5 0
|
||||
|
||||
Name: marble
|
||||
Version: 15.08.0
|
||||
Release: 0
|
||||
@ -29,6 +31,8 @@ Patch0: marble_fix_ppc64_build.patch
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gpsd-devel
|
||||
BuildRequires: perl
|
||||
%if 0%{?withqt5}
|
||||
BuildRequires: kconfig-devel
|
||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0
|
||||
@ -57,11 +61,15 @@ BuildRequires: ki18n-devel
|
||||
BuildRequires: phonon4qt5-devel
|
||||
BuildRequires: kservice-devel
|
||||
BuildRequires: krunner-devel
|
||||
BuildRequires: perl
|
||||
BuildRequires: libquazip-qt5-devel
|
||||
Requires: libmarblewidget-qt5%{_so} = %{version}
|
||||
%else
|
||||
BuildRequires: libkde4-devel
|
||||
BuildRequires: quazip-devel
|
||||
Requires: libmarblewidget-qt4%{_so} = %{version}
|
||||
%endif
|
||||
Requires: %{name}-data = %{version}
|
||||
Requires: libastro1 = %{version}
|
||||
Requires: libmarblewidget-qt5%{_so} = %{version}
|
||||
Requires: marble-frontend = %{version}
|
||||
Recommends: %{name}-doc = %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -116,11 +124,19 @@ BuildArch: noarch
|
||||
%description doc
|
||||
Marble is a viewer of map data. This package contains its documentation.
|
||||
|
||||
%if 0%{?withqt5}
|
||||
%package -n libmarblewidget-qt5%{_so}
|
||||
%else
|
||||
%package -n libmarblewidget%{_so}
|
||||
%endif
|
||||
Summary: Generic map viewer: Shared Library
|
||||
Group: Development/Libraries/KDE
|
||||
|
||||
%if 0%{?withqt5}
|
||||
%description -n libmarblewidget-qt5%{_so}
|
||||
%else
|
||||
%description -n libmarblewidget%{_so}
|
||||
%endif
|
||||
The shared library for the MarbleWidget shared library.
|
||||
|
||||
%package -n libastro1
|
||||
@ -139,6 +155,7 @@ The Astronomy shared library for the MarbleWidget shared library.
|
||||
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
||||
%endif
|
||||
|
||||
%if 0%{?withqt5}
|
||||
export SUSE_ASNEEDED=0
|
||||
mkdir build
|
||||
cd build
|
||||
@ -156,10 +173,14 @@ cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
||||
-DBUILD_MARBLE_TESTS=NO \
|
||||
-DWITH_KF5=TRUE \
|
||||
..
|
||||
%else
|
||||
%cmake_kde4 -d build -- -DQT5BUILD=OFF
|
||||
%endif
|
||||
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%if 0%{?withqt5}
|
||||
%kf5_makeinstall -C build
|
||||
%fdupes -s %{buildroot}
|
||||
rm -rf %{buildroot}%{_kf5_applicationsdir}/marble-mobile.desktop
|
||||
@ -167,15 +188,32 @@ cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
||||
rm -rf %{buildroot}/designer
|
||||
rm -rf %{buildroot}%{_kf5_bindir}/marble-mobile
|
||||
rm -rf %{buildroot}%{_kf5_bindir}/marble-touch
|
||||
%else
|
||||
%kde4_makeinstall -C build
|
||||
%kde_post_install
|
||||
%fdupes -s %{buildroot}
|
||||
rm -rf %{buildroot}%{_kde4_applicationsdir}/marble-mobile.desktop
|
||||
rm -rf %{buildroot}%{_kde4_applicationsdir}/marble-touch.desktop
|
||||
rm -rf %{buildroot}/designer
|
||||
rm -rf %{buildroot}%{_bindir}/marble-mobile
|
||||
rm -rf %{buildroot}%{_bindir}/marble-touch
|
||||
%endif
|
||||
|
||||
%if 0%{?withqt5}
|
||||
%post -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig
|
||||
|
||||
%postun -n libmarblewidget-qt5%{_so} -p /sbin/ldconfig
|
||||
%else
|
||||
%post -n libmarblewidget%{_so} -p /sbin/ldconfig
|
||||
|
||||
%postun -n libmarblewidget%{_so} -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
%post -n libastro1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libastro1 -p /sbin/ldconfig
|
||||
|
||||
%if 0%{?withqt5}
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt
|
||||
@ -233,5 +271,68 @@ cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
||||
%defattr(-,root,root)
|
||||
%{_kf5_applicationsdir}/marble.desktop
|
||||
%{_kf5_bindir}/marble
|
||||
%else
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CREDITS ChangeLog COPYING* LICENSE* MANIFESTO.txt
|
||||
%dir %{_libdir}/plugins/
|
||||
%exclude %{_datadir}/marble/data
|
||||
%exclude %{_datadir}/marble/cmake
|
||||
%{_kde4_applicationsdir}/marble_geo.desktop
|
||||
%{_kde4_applicationsdir}/marble_gpx.desktop
|
||||
%{_kde4_applicationsdir}/marble_kml.desktop
|
||||
%{_kde4_applicationsdir}/marble_kmz.desktop
|
||||
%{_kde4_applicationsdir}/marble_osm.desktop
|
||||
%{_kde4_applicationsdir}/marble_worldwind.desktop
|
||||
%{_kde4_configkcfgdir}/
|
||||
%{_kde4_iconsdir}/hicolor/*/apps/marble.*
|
||||
%{_kde4_kxmlguidir}/marble/
|
||||
%{_libdir}/marble/
|
||||
%{_libdir}/plugins/designer/
|
||||
%{_kde4_plugindir}/libmarble*so
|
||||
%{_kde4_plugindir}/libplasma_runner_marble.so
|
||||
%{_kde4_servicesdir}/*desktop
|
||||
%{_datadir}/appdata/
|
||||
%{_datadir}/marble/
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc BUGS CODING
|
||||
%{_includedir}/marble/
|
||||
%{_includedir}/astro/
|
||||
%{_libdir}/libmarblewidget.so
|
||||
%{_libdir}/libastro.so
|
||||
%{_datadir}/marble/cmake/
|
||||
|
||||
%files data
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/marble/data
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%{_kde4_htmldir}/en/marble/
|
||||
|
||||
%files -n libmarblewidget%{_so}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libmarblewidget.so.*
|
||||
|
||||
%files -n libastro1
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libastro.so.*
|
||||
|
||||
%files qt
|
||||
%defattr(-,root,root)
|
||||
%{_kde4_applicationsdir}/marble-qt.desktop
|
||||
%{__bindir}/marble-qt
|
||||
|
||||
%files kde
|
||||
%defattr(-,root,root)
|
||||
%{_kde4_applicationsdir}/marble.desktop
|
||||
%{_bindir}/marble
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user