summaryrefslogtreecommitdiff
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:20:22 +0200
commitd5a322417c00a441d34dd01acd13e18474efb233 (patch)
tree93ccab691882539d574a80b5d97f5a097ad0916a
parent589c11d03dbe07ec2cb063c198df76bd21e0e8af (diff)
downloadnavit-Sailfish-v0.5.3-1.tar.gz
Add %pre section to sailfish spec fileSailfish-v0.5.3-1
This fixes updating from v0.5.1 as espeak version was changed in between.
-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.