diff options
Diffstat (limited to 'contrib/sailfish')
| -rwxr-xr-x | contrib/sailfish/build_on_sailfish_sdk.sh | 15 | ||||
| -rwxr-xr-x | contrib/sailfish/build_sailfish_ci.sh | 22 | ||||
| -rwxr-xr-x | contrib/sailfish/navit-sailfish.spec | 50 |
3 files changed, 77 insertions, 10 deletions
diff --git a/contrib/sailfish/build_on_sailfish_sdk.sh b/contrib/sailfish/build_on_sailfish_sdk.sh index 663d31b48..4198f9924 100755 --- a/contrib/sailfish/build_on_sailfish_sdk.sh +++ b/contrib/sailfish/build_on_sailfish_sdk.sh @@ -1,7 +1,16 @@ #! /bin/sh -#run on the Sailfish OS sdk virtual machine. Check that rpmbuild directory exists. +#run on the Sailfish OS sdk virtual machine. Check that rpmbuild directory exists. Remember to export VERSION_ID + +# please don't mess around with those lines without testing, +# even if some fancy tool tells you to do so to save some pipes. +# -metalstrolch- + +if [ -z ${VERSION_ID+x} ]; then echo "VERSION_ID not set. Forgot to export VERSION_ID?"; exit 1; fi + #arm devices -sb2 -t SailfishOS-armv7hl -m sdk-build rpmbuild --define "_topdir /home/src1/rpmbuild" --define "navit_source `pwd`/../.." -bb navit-sailfish.spec +sb2 -t SailfishOS-${VERSION_ID}-armv7hl -m sdk-install -R zypper in $(grep "^BuildRequires: " navit-sailfish.spec | sed -e "s/BuildRequires: //") +sb2 -t SailfishOS-${VERSION_ID}-armv7hl -m sdk-build rpmbuild --define "_topdir /home/src1/rpmbuild" --define "navit_source $(pwd)/../.." -bb navit-sailfish.spec #intel devices -sb2 -t SailfishOS-i486 -m sdk-build rpmbuild --define "_topdir /home/src1/rpmbuild" --define "navit_source `pwd`/../.." -bb navit-sailfish.spec +sb2 -t SailfishOS-${VERSION_ID}-i486 -m sdk-install -R zypper in $(grep "^BuildRequires: " navit-sailfish.spec | sed -e "s/BuildRequires: //") +sb2 -t SailfishOS-${VERSION_ID}-i486 -m sdk-build rpmbuild --define "_topdir /home/src1/rpmbuild" --define "navit_source $(pwd)/../.." -bb navit-sailfish.spec diff --git a/contrib/sailfish/build_sailfish_ci.sh b/contrib/sailfish/build_sailfish_ci.sh new file mode 100755 index 000000000..58d1022f3 --- /dev/null +++ b/contrib/sailfish/build_sailfish_ci.sh @@ -0,0 +1,22 @@ +#!/bin/sh +#run on the Sailfish OS sdk docker container. Check that rpmbuild directory exists. Remember to export VERSION_ID +# please don't mess around with those lines without testing, +# even if some fancy tool tells you to do so to save some pipes. +# -hoehnp- + +if [ -z ${VERSION_ID+x} ]; then echo "VERSION_ID not set. Forgot to export VERSION_ID?"; exit 1; fi + +# First we need to cd to the directory containing this script and the spec file. +# Makes calling it directly from docker easier. +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" +cd $SCRIPTPATH +ls -lah /navit +mkdir $HOME/rpmbuild + +#arm devices +sb2 -t SailfishOS-${VERSION_ID}-armv7hl -m sdk-install -R zypper --non-interactive in $(grep "^BuildRequires: " navit-sailfish.spec | sed -e "s/BuildRequires: //") +sb2 -t SailfishOS-${VERSION_ID}-armv7hl -m sdk-build rpmbuild --define "_topdir /home/nemo/rpmbuild" --define "navit_source ${SCRIPTPATH}/../.." -bb navit-sailfish.spec +#intel devices +sb2 -t SailfishOS-${VERSION_ID}-i486 -m sdk-install -R zypper --non-interactive in $(grep "^BuildRequires: " navit-sailfish.spec | sed -e "s/BuildRequires: //") +sb2 -t SailfishOS-${VERSION_ID}-i486 -m sdk-build rpmbuild --define "_topdir /home/nemo/rpmbuild" --define "navit_source ${SCRIPTPATH}/../.." -bb navit-sailfish.spec + diff --git a/contrib/sailfish/navit-sailfish.spec b/contrib/sailfish/navit-sailfish.spec index a798aa487..4f14be872 100755 --- a/contrib/sailfish/navit-sailfish.spec +++ b/contrib/sailfish/navit-sailfish.spec @@ -9,13 +9,15 @@ Name: harbour-navit Summary: Open Source car navigation system #Version: %{navit_version}_%{git_version} -Version: 0.5.1 -Release: 4 +Version: 0.5.3 +Release: 1 License: GPL Group: Applications/Productivity -URL: http://navit-projet.org/ +URL: http://navit-project.org/ -BuildRequires: gcc +#git is vor version info while building +BuildRequires: git +#BuildRequires: gcc BuildRequires: cmake BuildRequires: glib2-devel BuildRequires: gettext-devel @@ -73,7 +75,7 @@ mkdir navit-build %build %define debug_package %{nil} %{__rm} -rf %{buildroot} -#cmake git files directly +#cmake git files directly cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DPACKAGE:STRING=harbour-navit \ -DNAVIT_BINARY:STRING=harbour-navit \ @@ -97,7 +99,12 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ %{navit_real_source} %{__make} -# -DMAN_DIR:PATH=share/harbour-navit/man1 +# -DMAN_DIR:PATH=share/harbour-navit/man1 + +%pre +if [ -d %{_datadir}/harbour-navit/espeak-data ]; then + rm -rf %{_datadir}/harbour-navit/espeak-data +fi %install %make_install @@ -107,6 +114,12 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ %files %defattr(644, root, root, 755) %{_datadir}/harbour-navit/navit.xml +%{_datadir}/harbour-navit/navit_layout_bike.xml +%{_datadir}/harbour-navit/navit_layout_car.xml +%{_datadir}/harbour-navit/navit_layout_car_android.xml +%{_datadir}/harbour-navit/navit_layout_car_dark.xml +%{_datadir}/harbour-navit/navit_layout_car_simple.xml +%{_datadir}/harbour-navit/navit_layout_th.xml %{_datadir}/harbour-navit/icons/ %{_datadir}/harbour-navit/maps/osm_bbox_11.3,47.9,11.7,48.2.bin %{_datadir}/harbour-navit/espeak-data/ @@ -123,6 +136,29 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ %changelog +*Mon Oct 01 2018 metalstrolch 0.5.3-1 +- fix rpm updating from 0.5.1 by adding %pre section + +*Fri Aug 31 2018 metalstrolch 0.5.3-0 + +Release 0.5.2 was missing the version number update in the CMakefile. This release fixes this. + +*Fri Aug 31 2018 metalstrolch 0.5.2-0 + +This release has seen a big work on code quality and homogeneity. + +If you want to know what has changed see the Changelog at: https://github.com/navit-gps/navit/blob/v0.5.2/CHANGELOG.md + +For the full list of commits, see: v0.5.1...v0.5.2 + +Please report issues at http://trac.navit-project.org or https://github.com/navit-gps/navit/issues +The documentation can be found at http://navit.readthedocs.io/ + +To get the latest builds, see: http://download.navit-project.org/ + +*Tue Oct 17 2017 metalstrolch 0.5.1-5 +- Update upstream + *Tue Oct 17 2017 metalstrolch 0.5.1-4 - Fix medium GUI icon size to cope with changed icon set on upstream - Update upstream @@ -139,7 +175,7 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ *Mon Apr 10 2017 metalstrolch 0.5.1-1 - Almost harbour valid -*Mon Dec 14 2015 metalstrolch 0.5.1-0 +*Mon Dec 14 2015 metalstrolch 0.5.1-0 - Initial sailfish release - Initial package. |
