Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[libqofono] Revert "Do not hardcode version number in sources". JB#41605
This reverts commit 6591e70.

There's nothing wrong with hardcodiing version numbers in sources
as long as those are being properly maintained and match the reality.
  • Loading branch information
monich committed Jun 22, 2018
1 parent 441598f commit ca4ecdf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/libqofono-qt5.spec
Expand Up @@ -55,7 +55,7 @@ This package contains qml test for ofono Qt bindings.

%build
export QT_SELECT=5
%qmake5 "VERSION=$(sed 's/+.*//' <<<"%{version}")"
%qmake5
make %{?_smp_mflags}

%install
Expand Down
3 changes: 3 additions & 0 deletions src/src.pro
Expand Up @@ -8,6 +8,8 @@ QT += dbus xmlpatterns
QT -= gui
QMAKE_CXXFLAGS += -Wno-unused-parameter -Wno-psabi

include(version.pri)

equals(QT_MAJOR_VERSION, 4): {
TARGET = qofono
pkgconfig.path = $$[QT_INSTALL_LIBS]/pkgconfig
Expand Down Expand Up @@ -60,6 +62,7 @@ XML_FILES += \
dbus/ofono_voicecallmanager.xml

OTHER_FILES += $$XML_FILES\
version.pri \
qofono.prf \
qofono-qt5.prf

Expand Down
1 change: 1 addition & 0 deletions src/version.pri
@@ -0,0 +1 @@
VERSION = 0.92

0 comments on commit ca4ecdf

Please sign in to comment.