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