forked from pool/marble
This commit is contained in:
parent
408feef971
commit
0f40778ff6
27
marble.spec
27
marble.spec
@ -17,7 +17,7 @@
|
||||
|
||||
%define with_qt5 0
|
||||
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%define _so -qt522
|
||||
%else
|
||||
%define _so 22
|
||||
@ -33,7 +33,7 @@ Url: http://edu.kde.org
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gpsd-devel
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
BuildRequires: kconfig-devel
|
||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0
|
||||
@ -95,7 +95,7 @@ Group: Amusements/Teaching/Other
|
||||
Requires: %{name} = %{version}
|
||||
Provides: marble-frontend = %{version}
|
||||
Conflicts: otherproviders(marble-frontend)
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
Supplements: packageand(marble:plasma5-desktop)
|
||||
%else
|
||||
Supplements: packageand(marble:kdebase4-workspace)
|
||||
@ -152,11 +152,8 @@ The Astronomy shared library for the MarbleWidget shared library.
|
||||
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
||||
%endif
|
||||
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
export SUSE_ASNEEDED=0
|
||||
%ifarch ppc ppc64
|
||||
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
||||
%endif
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
||||
@ -183,7 +180,7 @@ cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%kf5_makeinstall -C build
|
||||
%fdupes -s %{buildroot}
|
||||
rm -rf %{buildroot}%{_kf5_applicationsdir}/marble-mobile.desktop
|
||||
@ -205,7 +202,7 @@ cmake -DCMAKE_BUILD_TYPE=%{_kf5_build_type} \
|
||||
|
||||
%post -n libastro2 -p /sbin/ldconfig
|
||||
|
||||
n libastro2 -p /sbin/ldconfig
|
||||
%postun -n libastro2 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
@ -216,7 +213,7 @@ n libastro2 -p /sbin/ldconfig
|
||||
%dir %{_libdir}/plugins/
|
||||
%{_libdir}/plugins/designer/
|
||||
%exclude %{_datadir}/marble/data
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%{_kf5_iconsdir}/hicolor/*/apps/marble.*
|
||||
%_kf5_plugindir/libmarble*so
|
||||
%_kf5_plugindir/libplasma_runner_marble.so
|
||||
@ -257,7 +254,7 @@ n libastro2 -p /sbin/ldconfig
|
||||
%doc BUGS CODING
|
||||
%{_includedir}/marble/
|
||||
%{_includedir}/astro/
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%{_kf5_libdir}/libmarblewidget-qt5.so
|
||||
%{_kf5_libdir}/libastro.so
|
||||
%else
|
||||
@ -273,7 +270,7 @@ n libastro2 -p /sbin/ldconfig
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%{_kf5_htmldir}/en/marble/
|
||||
%else
|
||||
%{_kde4_htmldir}/en/marble/
|
||||
@ -281,7 +278,7 @@ n libastro2 -p /sbin/ldconfig
|
||||
|
||||
%files -n libmarblewidget%{_so}
|
||||
%defattr(-,root,root)
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%{_kf5_libdir}/libmarblewidget-qt5.so.*
|
||||
%else
|
||||
%{_kde4_libdir}/libmarblewidget.so.*
|
||||
@ -293,7 +290,7 @@ n libastro2 -p /sbin/ldconfig
|
||||
|
||||
%files qt
|
||||
%defattr(-,root,root)
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%{_kf5_applicationsdir}/marble-qt.desktop
|
||||
%else
|
||||
%{_kde4_applicationsdir}/marble-qt.desktop
|
||||
@ -302,7 +299,7 @@ n libastro2 -p /sbin/ldconfig
|
||||
|
||||
%files kde
|
||||
%defattr(-,root,root)
|
||||
%if 0{?with_qt5}
|
||||
%if %{with_qt5}
|
||||
%{_kf5_applicationsdir}/marble.desktop
|
||||
%else
|
||||
%{_kde4_applicationsdir}/marble.desktop
|
||||
|
Loading…
x
Reference in New Issue
Block a user