Skip to content

Commit

Permalink
Do not hardcode version number in sources
Browse files Browse the repository at this point in the history
Also no need to pass version explicitly to pkgconfig creator
  • Loading branch information
martyone committed Aug 23, 2018
1 parent ef9b056 commit 7e024d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions lib/lib.pro
Expand Up @@ -7,8 +7,6 @@ QT -= gui
QMAKE_CXXFLAGS += -Wno-unused-parameter -Wno-psabi
INCLUDEPATH += include

include(version.pri)

TEMPLATE = lib
DEFINES += QMCE_LIBRARY

Expand Down Expand Up @@ -59,6 +57,5 @@ QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESCRIPTION = Qt bindings for mce
QMAKE_PKGCONFIG_PREFIX = $$PREFIX
QMAKE_PKGCONFIG_VERSION = $$VERSION

INSTALLS += target headers pkgconfig
1 change: 0 additions & 1 deletion lib/version.pri

This file was deleted.

2 changes: 1 addition & 1 deletion rpm/libmce-qt5.spec
Expand Up @@ -42,7 +42,7 @@ This package contains the development header files for libmce-qt5
%setup -q -n %{name}-%{version}

%build
%qtc_qmake5
%qtc_qmake5 "VERSION=$(sed 's/+.*//' <<<"%{version}")"
%qtc_make %{?_smp_mflags}

%install
Expand Down

0 comments on commit 7e024d4

Please sign in to comment.