mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Sync subsurfacedaily.spec with current OBS file
This commit is contained in:
parent
0671739e02
commit
e01963ca02
1 changed files with 11 additions and 7 deletions
|
@ -4,11 +4,9 @@
|
||||||
# Copyright (c) 2014 Dirk Hohndel
|
# Copyright (c) 2014 Dirk Hohndel
|
||||||
#
|
#
|
||||||
|
|
||||||
%define latestVersion 4.5.2.1475
|
%define latestVersion 4.6.4.1031
|
||||||
|
|
||||||
|
|
||||||
%define gitVersion 1475
|
|
||||||
|
|
||||||
|
%define gitVersion 1031
|
||||||
|
|
||||||
|
|
||||||
Name: subsurfacedaily
|
Name: subsurfacedaily
|
||||||
|
@ -73,6 +71,7 @@ BuildRequires: libqt5-qtscript-devel
|
||||||
BuildRequires: libqt5-qtdeclarative-devel
|
BuildRequires: libqt5-qtdeclarative-devel
|
||||||
BuildRequires: libqt5-qtconnectivity-devel
|
BuildRequires: libqt5-qtconnectivity-devel
|
||||||
BuildRequires: libqt5-qtlocation-devel
|
BuildRequires: libqt5-qtlocation-devel
|
||||||
|
BuildRequires: libqt5-qtlocation-private-headers-devel
|
||||||
%endif
|
%endif
|
||||||
# Recommends Qt5 translations package
|
# Recommends Qt5 translations package
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
|
@ -84,7 +83,7 @@ Recommends: qt5-qttranslations
|
||||||
BuildRoot: %{_tmppath}/subsurface%{version}-build
|
BuildRoot: %{_tmppath}/subsurface%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is the official Subsurface build, including our own custom libdivecomputer
|
This is the official Subsurface test build, including our own custom libdivecomputer
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
@ -103,6 +102,9 @@ mkdir -p install-root
|
||||||
.. ; \
|
.. ; \
|
||||||
make %{?_smp_mflags} ; \
|
make %{?_smp_mflags} ; \
|
||||||
make install)
|
make install)
|
||||||
|
( cd googlemaps ; mkdir -p build ; cd build ; \
|
||||||
|
qmake-qt5 "INCLUDEPATH=$INSTALL_ROOT/include" ../googlemaps.pro ; \
|
||||||
|
make -j4 )
|
||||||
(mkdir subsurface-build ; cd subsurface-build ; \
|
(mkdir subsurface-build ; cd subsurface-build ; \
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DLRELEASE=lrelease-qt5 \
|
-DLRELEASE=lrelease-qt5 \
|
||||||
|
@ -115,13 +117,14 @@ mkdir -p install-root
|
||||||
-DCMAKE_C_FLAGS:STRING="%optflags" \
|
-DCMAKE_C_FLAGS:STRING="%optflags" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
|
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
|
||||||
-DNO_PRINTING=OFF \
|
-DNO_PRINTING=OFF \
|
||||||
|
-DNO_MARBLE=ON \
|
||||||
.. ; \
|
.. ; \
|
||||||
make VERBOSE=1 %{?_smp_mflags} subsurface)
|
make VERBOSE=1 %{?_smp_mflags} subsurface)
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_libdir}
|
mkdir -p %{buildroot}/%{_libdir}
|
||||||
|
(cd googlemaps/build ; make install_target INSTALL_ROOT=$RPM_BUILD_ROOT )
|
||||||
(cd subsurface-build ; make VERBOSE=1 install )
|
(cd subsurface-build ; make VERBOSE=1 install )
|
||||||
install $RPM_BUILD_DIR/install-root/lib/libssrf* %{buildroot}/%{_libdir}
|
|
||||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
desktop-file-install --dir=%{buildroot}/%{_datadir}/applications subsurface.desktop
|
desktop-file-install --dir=%{buildroot}/%{_datadir}/applications subsurface.desktop
|
||||||
%else
|
%else
|
||||||
|
@ -141,6 +144,7 @@ desktop-file-install --dir=%{buildroot}/%{_datadir}/applications subsurface.desk
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc gpl-2.0.txt README ReleaseNotes/ReleaseNotes.txt
|
%doc gpl-2.0.txt README ReleaseNotes/ReleaseNotes.txt
|
||||||
%{_bindir}/subsurface*
|
%{_bindir}/subsurface*
|
||||||
|
%{_libdir}/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so
|
||||||
%{_datadir}/applications/subsurface.desktop
|
%{_datadir}/applications/subsurface.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/subsurface-icon.*
|
%{_datadir}/icons/hicolor/*/apps/subsurface-icon.*
|
||||||
%{_datadir}/subsurface/
|
%{_datadir}/subsurface/
|
||||||
|
|
Loading…
Add table
Reference in a new issue