Skip to content

Commit

Permalink
Merge pull request #42 from thp/about-rpm-version
Browse files Browse the repository at this point in the history
[spec] Inject RPM version number to version.h (Fixes #30)
  • Loading branch information
thp committed Feb 17, 2015
2 parents 92173a9 + bf02f7b commit 919a73c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpm/fingerterm.spec
Expand Up @@ -34,6 +34,8 @@ Provides: meego-terminal > 0.2.2
%build
sed -i 's,/opt/fingerterm/,/usr/,' fingerterm.pro
qmake -qt=5 MEEGO_EDITION=nemo
# Inject version number from RPM into source
sed -i -e 's/PROGRAM_VERSION="[^"]*"/PROGRAM_VERSION="%{version}"/g' version.h
make %{?_smp_mflags}


Expand Down

0 comments on commit 919a73c

Please sign in to comment.