summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorStefan Wildemann <gta04@metalstrolche.de>2018-10-01 23:20:22 +0200
committerStefan Wildemann <gta04@metalstrolche.de>2018-10-01 23:33:36 +0200
commit6389ce56cb6681695734d02b7223ad35b69241e2 (patch)
tree6a60da2aff363cb9c73c66e632ff464df6e0dfb2 /contrib
parent98e7489e1098e22ec13097ea09c2af49a8889a59 (diff)
downloadnavit-6389ce56cb6681695734d02b7223ad35b69241e2.tar.gz
Add %pre section to sailfish spec file
This fixes updating from v0.5.1 as espeak version was changed in between.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/sailfish/navit-sailfish.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/sailfish/navit-sailfish.spec b/contrib/sailfish/navit-sailfish.spec
index 4f97499e4..11980a77c 100755
--- a/contrib/sailfish/navit-sailfish.spec
+++ b/contrib/sailfish/navit-sailfish.spec
@@ -10,7 +10,7 @@ Name: harbour-navit
Summary: Open Source car navigation system
#Version: %{navit_version}_%{git_version}
Version: 0.5.3
-Release: 0
+Release: 1
License: GPL
Group: Applications/Productivity
URL: http://navit-project.org/
@@ -101,6 +101,11 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
# -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
#copy in sailfish config
@@ -125,6 +130,9 @@ 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.