diff options
-rw-r--r-- | dist/vespa.spec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec index fcfe13fedd4..92713517988 100644 --- a/dist/vespa.spec +++ b/dist/vespa.spec @@ -489,6 +489,15 @@ nearest neighbor search used for low-level benchmarking. %setup -c -D -T %else %setup -q +echo '%{version}' > VERSION +case '%{version}' in + *.0) + : + ;; + *) + sed -i -e 's,<version>[0-9].*-SNAPSHOT</version>,<version>%{version}</version>,' $(find . -name pom.xml -print) + ;; +esac %endif %build |